[OSM-talk] OpenPisteMap Down?

Lars Ahlzen lars at ahlzen.com
Thu Jul 2 17:25:04 BST 2009


Hurricane McEwen wrote:
> Hey,
> 
> I just went to visit openpistemap.org and I get a blank map. Anyone run 
> in to the same issue?

Yes. And they are probably having the same problem as I had recently 
with toposm.com.

It appears that the OpenLayers.Layer.OSM class now expects a full URL 
template for the tiles, rather than just the directory... i.e. something 
like:

OpenLayers.Layer.OSM.opm = OpenLayers.Class(OpenLayers.Layer.OSM, {
     initialize: function(name, options, args) {
         var url = [
             "http://openpistemap.org/tiles/contours/${z}/${x}/${y}.png"
         ];
         ...

instead of the current:

OpenLayers.Layer.OSM.opm = OpenLayers.Class(OpenLayers.Layer.OSM, {
     initialize: function(name, options, args) {
         var url = [
             "http://openpistemap.org/tiles/contours/"
         ];
	...

- Lars

-- 
Lars Ahlzen
lars at ahlzen.com




More information about the talk mailing list