(cross-posting from django-users list)
I'm working on a Django hobby project on-and-off, and it makes heavy
use of GIS and OSM. The last time I worked on the project was several
weeks ago. Today, I fired up Django again to do some more work on it.
However, it seems that the display of OSM widgets in admin screens is
now broken. On pages that are supposed to display a widget, only the
navigation control buttons (pan/zoom) show, and there's just white
space where the map should get rendered. The checkboxes to toggle
layers is also not getting rendered.
Firebug is giving me this error:
OpenLayers.Layer.OSM is undefined
http://www.openstreetmap.org/openlayers/OpenStreetMap.js
Line 56
See screenshot also:
http://basement.greenash.net.au/screenshots/django_osm_error.png
I'm not aware of any changes I've made to my code, that could have
caused this behavior. I'm also not sure if this is a problem with the
code on the OSM side, or with the code on the Django side - I'm pretty
new to it all. I'm hoping that other people can reproduce this bug.
I was going to submit this straight to the Django core issue queue,
but I thought I should go through this mailing list first, in case
this is all a silly mistake on my part. But if it is a bug, then I'll
go ahead and submit it to the queue, and it would be great to get it
fixed.
Thanks,
Jeremy.
Thanks, Charlie. Fixed it with r11125 in trunk and r11126 for 1.0.X.
Springmeyer found the root cause of the problem -- the OSM JavaScript
was modified to only support OpenLayers 2.8:
http://trac.openstreetmap.org/changeset/16131
On the upside, at least it happened before the 1.1/1.0.3 releases which
are due any day now.
-Justin
The new release was for OpenLayers, not Open Street Maps. Open Street
Maps is just a map data provider used with OpenLayers (OpenLayers does
the slippy map interface; it was OpenLayers' open street maps
implementation that was broken).
I don't know about lists, but this would probably be the place to start
looking:
First glance finds no announcement list or blog that carried anything
about the API update, other than a change in the version linked as
"stable" on the front page.
-charlie
OpenLayers 2.8 was announced in their IRC chan.
But back to _my_ problem:-) does anybody having problems with running
OpenLayers in Internet Eplorer, too?