[OpenLayers-Users] OverviewMap - bad coords?

Jeff Dege jdege at korterra.com
Wed Jul 25 15:08:19 EDT 2007


On doing some websearching, I found changeset 3087, which looks like it
might be a fix for the problem I'm seeing.  But it looks like 3087 was
included in 2.4, and I'm still having the problem.

I just DLed the trunk, and with that, I still have the problem.

> -----Original Message-----
> From: users-bounces at openlayers.org 
> [mailto:users-bounces at openlayers.org] On Behalf Of Jeff Dege
> Sent: Wednesday, July 25, 2007 1:51 PM
> To: users at openlayers.org
> Subject: [OpenLayers-Users] OverviewMap - bad coords?
> 
> I'm trying to add the OverviewMap control to a map built with KaMap
> layers.
> 
> I'm using OL version 2.4.
> 
> The example - examples\overviewmap.html - works perfectly.
> 
> Mine doesn't work at all.
> 
> When the OverviewMap control requests tiles from KaMap, the tiles are
> generated correctly - or at least they seem to.  The 
> directory structure
> looks fine, and the generated GIF files look fine.
> 
> But the tiles that are actually being requested don't 
> correspond to any
> of the tiles that were generated.
> 
> The URL of the tile that was requested:
> 
> http://localhost:8080/servicearealookup/tile.php?map=mississip
> pi&g=all&i
> =gif&t=-768&l=-1536&s=19686393
> 
> Top is -768, left is -1536, scale is 19686393.
> 
> In the KaMap cache, there is a directory for scale 19686393, 
> and in that
> a subdirectory for group "all", and for layer "def".
> 
> And in that, there is a subdirectory t-1200l-2400.  In that, there are
> 36 GIF files, all of them blank except one, t-600l-1600.gif, which
> contains the image that should be being drawn in the overview map at
> this scale.  (Zoomed out all the way.)
> 
> Now I seem to remember having had a similar problem with KaMap on the
> main map, because the default tile size in OpenLayers was 
> 256x256 and in
> KaMap was 200x200.  Which I fixed by setting the tilesize 
> option to the
> OpenLayers.Map constructor.  So I passed a tilesize option to the
> OverviewMap constructor, and it made no difference.
> 
> Has anyone had any experience with the OverviewMap on KaMap layers?
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 



More information about the Users mailing list