Catch up to highlight 3.51 API change.
[ikiwiki] / doc / bugs / osm_plugin_fails_to_display_map_with_javascript_error.mdwn
1 A simple use of this plugin seems to fail now,
2 yeilding either a blank map or some javascript errors.
3
4 The javascript errors I saw are:
5
6         SyntaxError: syntax error
7         OpenLayers.js (line 476, col 64)
8
9         ReferenceError: OpenLayers is not defined
10         osm.js (line 30, col 1)
11
12 --[[Joey]]
13
14 > I guess OpenLayers made a backwards-incompatible change... At [reseaulibre](http://wiki.reseaulibre.ca/) it seems we have survived this because we have a local copy of the OpenLayers source code:
15
16 >         osm_openlayers_url: http://wiki.reseaulibre.ca/OpenLayers-2.12/OpenLayers.js
17 >
18 > Try specifying a versionned URL for the source:
19 >
20 >         osm_openlayers_url: http://openlayers.org/api/2.12/OpenLayers.js
21
22 > ... and see if that fixes the problem. Then we can start looking at the [release notes](https://github.com/openlayers/openlayers/blob/master/notes/2.13.md) to figure out what change they did that broke us and upgrade. Or pin the version on our side. Or simply [[switch to something else|todo/replace_openlayers_with_leaflet]]. --[[anarcat]]