aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/osm_plugin_fails_to_display_map_with_javascript_error.mdwn
blob: 45a746e2ec7f69a94361eec339cf92d4452a03f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
A simple use of this plugin seems to fail now,
yeilding either a blank map or some javascript errors.

The javascript errors I saw are:

	SyntaxError: syntax error
	OpenLayers.js (line 476, col 64)

	ReferenceError: OpenLayers is not defined
	osm.js (line 30, col 1)

--[[Joey]]

> 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:
> 
>         osm_openlayers_url: http://wiki.reseaulibre.ca/OpenLayers-2.12/OpenLayers.js
>
> Try specifying a versionned URL for the source:
>
>         osm_openlayers_url: http://openlayers.org/api/2.12/OpenLayers.js
> 
> ... 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]]