[OSM-dev] new version of OpenLayers for OSM

Christopher Schmidt crschmidt at metacarta.com
Sat Dec 2 19:13:59 GMT 2006


There are some new features in the newer version of OpenLayers that are
nice to have, like the ability to specify which layers to turn on via
the permalink.

To update to the new version:

  svn co http://svn.openlayers.org/sandbox/crschmidt/likegoogle/
  cd likegoogle/build
  ./build.sh

Then copy the OpenLayers.js that is in the build directory into whatever
feeds /javascript/OpenLayers.js .

Add the following line to index.html directly above the onImageLoaderror
line:

OpenLayers.Tile.Image.prototype = OpenLayers.Class.inherit(
  OpenLayers.Tile.Image, { checkImgURL: function() {} }); 

(This allows you to continue to use your 404 image.)

Following these steps will close bug #310.

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the dev mailing list