I further tested the behavior and it seems that the described behavior is shown in firefox (3.5.5) and IE (8) only. In chrome and safari layer.redraw() works perfectly.
?? ridsch wrote: > > Hi list, > > i extended the OpenLayers.Layer.OSM class to provide my own layer and > overrid the getURL(bounds) function as I load the osm tiles from my own > server. > The strategy is as follows: > When getURL is called on the browser an ajax request is called to my osm > server and the necessary tiles are loaded and stored to the webserver. > This > works pretty well and I can see tiles lying around on my webserver. But of > course this takes some time and is too late for openlayers to render this > specific tile in the scope of the getURL method. So there are no tiles > visible in the browser which is logical. > I now tried to call layername.redraw() in firebug after all tiles where > loaded. I see in firebug that all the necessary tiles are again requested > within the getURL function. The URLs are alright and the tiles are at the > right place. But again nothing is visible in the browser! > But now comes the strange thing. When I copy one url string of a tile from > the firebug console and open it in a new browser window, the tile (.png) > is > shown in the browser! And even more strange (at least for me) when I *now* > call layername.redraw() this tile is shown in the map. But only this tile > and not the others. When I open another tile in a new tab and call > redraw() > again two tiles are visible and so on. > It seems that tiles are visible only when they are requested before. > > Somebody has an idea? > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Layer-redraw-strange-behavior-tp4027120p4083202.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
