[OpenLayers-Users] Problems with svn head
Stephen Woodbridge
woodbri at swoodbridge.com
Thu Apr 19 19:12:59 EDT 2007
Christopher,
Great job! Updated svn and made the change you suggested and it works
great. Thanks. I also think this fixed the memory leak I was seeing.
Memory still grows with navigation but if I kill the browser window and
wait for a little bit the memory will drop back down to a reasonable level.
I have a new problem :( to report. While I am navigating about zooming,
panning, etc. I get random pink tiles. I have been able to determine
that these are caused by what appears to be a truncated image. If I use
FF Tools -> Page Info -> Media and scroll through the images, some of
the tiles have not loaded fully. I can copy the url to another window
and do a Shift-Reload on the tile and new good copy is put in the cache.
Then zoom out - Zoom in will reload the tiles and it will look good.
This is easy to reproduce.
BTW, we are not using tile.php, we have pre-cached all the tiles and use
an apache mod-perl handler to rewrite the url into pass the file back
directly.
This problem seems to happen more often if I do lots of quick zooms and
pans where I don't wait for all the tiles to load before the next pan/zoom.
-Steve
Christopher Schmidt wrote:
> On Thu, Apr 19, 2007 at 02:52:32PM -0400, Christopher Schmidt wrote:
>>>> 2) map attached to cursor and requires an additional click to drop -
>>>> this is VERY annoying.
>> This is the result of the ka-Map layer being broken. (I don't suppose
>> "Use TileCache instead" will get me very far as an argument :))
>
> Specifically, this was as a result of:
> * Using Overview Map
> * With ka-Map base layer.
>
> The problem was that the ka-Map clone() function was not subclassing
> properly, so it was returning a grid layer.
>
> However, this won't fix your problem totally: your overview map won't
> work, because the overview map defaults to 'maxResolution':'auto' (which
> won't work with your pre-cached ka-map tiles).
>
> To change that, you'll need to set the scales option on your layer, instead
> of your map:
> var base = new OpenLayers.Layer.KaMap(
> "Base Tiles",
> "http://st1.slippymap.com/tiles?",
> { map: "smap-01",
> i: "PNG8",
> g: "__base__"
> },
> {scales: [ 6000, 10000, 15000,
> 25000, 50000, 100000, 150000, 500000, 1000000,
> 4000000, 10000000, 20000000, 50000000
> ]}
> );
>
> Then, when the layer is cloned, it will have hte scales, and the
> maxResolution: 'auto' n the overviewMap won't affect it.
>
> Thanks for the report!
>
> Regards,
More information about the Users
mailing list