[OpenLayers-Users] Problem by update ol212 - tiles not show and lost by move

Jan Tappenbeck osm at tappenbeck.net
Mon Apr 15 05:35:46 PDT 2013


Hallo !

i try to update a website from ol210->ol211 for using table-devices.

i should have make all request mimigration-edits but i have a little 
problem:

* the tiles of map will come by the wikipedia.tile-server - will not 
show, but no error-message in the firebug. when i copy the url to the 
wik-tiles a image will show !

did i have forget something in the function

   OpenLayers.Layer.OSM.Toolserver = 
OpenLayers.Class(OpenLayers.Layer.OSM, {

     initialize: function(name, options) {
         var url = [
             "http://a.www.toolserver.org/tiles/" + name + 
"/${z}/${x}/${y}.png",
             "http://b.www.toolserver.org/tiles/" + name + 
"/${z}/${x}/${y}.png",
             "http://c.www.toolserver.org/tiles/" + name + 
"/${z}/${x}/${y}.png"
         ];

         options = OpenLayers.Util.extend({numZoomLevels: 19}, options);
         OpenLayers.Layer.OSM.prototype.initialize.apply(this, [name, 
url, options]);
     },

     CLASS_NAME: "OpenLayers.Layer.OSM.Toolserver"
    });

at the mimigration to ol212 ??

* the tiles of myself (port-names on the layer "label_en") will lost, 
when move the map by middle-mouse-button. when i zoom in/out buy button 
is ok !

the side is: http://osm.tappenbeck.net/ferry2013/deu/ferry_iframe.php
(there commes a error-message window.parent.set_active_port is not a 
function - when click to a red-marker -> ignore it!!

secound-questions: when a png-file is missing there comes a message too 
- but in the screen.css-file i added:

.olImageLoadError {
   display: none;
}


did anyone could help me ?

regards Jan :-)



More information about the Users mailing list