Openlayers not functioning

What happened to the openlayers scripts? I use openlayers a lot to show gpx tracks. They now dont show the map and the track. Clicking the + shows only Mapnik.

See http://wiki.openstreetmap.org/wiki/Openlayers_Track_example
and try one of the examples there: http://oms.wff.ch/ol_track.htm

Also on a webpage of mine the map and the three borders of NL, BE and D are not visible.
http://web.inter.nl.net/users/jgalema/osm/Gpx2SlippyMap.html

I think this is because Tiles@Home / Osmarender has now been shut down.

Try removing these lines from the webpage:

layerTilesAtHome = new OpenLayers.Layer.OSM.Osmarender("Osmarender");
map.addLayer(layerTilesAtHome);

I think that will fix it.

That did it.

Thanks.

Osmarender has disappeared from http://www.openstreetmap.org indeed.

I owe you a beer!

This worked for months ok.

But now again no map and track shown.

Whats the evel?

OpenLayers released a new version in which they removed a lot of deprecated functions (for which they have warned for many months that it would happen).

There are a few possible solutions:

  • Update your javascript to use the alternative (non-deprecated) OpenLayers functions.
  • Include the deprecated.js script available from OpenLayers.org in your site so that you can use the deprecated functions.
  • Get an older version of OpenLayers and put it on the webserver of your website and include this version instead of including the OpenLayers.js from openlayers.org.

Added the deprecated.js but it did not help.
I`m in Russia and have to to this all on my phone.
Investigating is not easy.
Will see if i can find a real computer somewhere.
Anyhow: thanks.

I don’t see the deprecated.js file being loaded, this may be a caching problem on my side (although I cleared my browser cache), but it could also be that your change hasn’t reached the server yet.

My firebug says:

OpenLayers documentation says:

Have fun in the Orient!

I cannot add it to my gpxtoslippymap site as i found no android app that could handle that inter.nl server. On my greencaps site the url is to long to type. I will do later.

http://www.greencaps.nl/reizen/2012.begeerdereis/garmin/showgpxtrack.php?album=20120621.gpx

Here i added the deprecated.js with no succes.

That is giving a 404 not found error for http://www.openlayers.org/api/deprecated.js
If you change it to this URL, it should work: http://dev.openlayers.org/releases/OpenLayers-2.12/lib/deprecated.js

Or you could download OpenLayers-2.12.zip, then find deprecated.js in the lib directory, then you can host it on your own website.

Thanks Vclaw that finally did it. Now the ‘thuisfront’ can follow me again. I owe you two beer now. And Lambertus heeft ook nog wat tegoed.