Closed MarkCupitt closed 9 years ago
Ok, I figured it out
The Example on the Web Site gave:
var osmb = new OSMBuildings-OpenLayers(map).load();
it SHOULD be:
var osmb = new OSMBuildings(map).load();
might want to fix those up .. :)
Cheers
Thanks for spotting!
Just set up OSM Buildings with code at the bottom, and get the following error.
Using Latest download of the software from the web site ## 0.2.2b @ 2014-11-25
Since it works on the Demo Site, I am obviously missing something that is staring me in he face, I guess.
Scripts loaded in following order before calling the Js Code.
Cheers
Mark
Uncaught TypeError: Cannot read property 'addLayer' of undefined
OSMBuildings-OpenLayers.js:44 kmaps.js:125 (anonymous function)jquery.min.js:2 m.Callbacks.jjquery.min.js:2 m.Callbacks.k.fireWithjquery.min.js:2 m.extend.readyjquery.min.js:2 J