[OpenLayers-Users] Ka-Map layer issues
Ehud Shabtai
eshabtai at gmail.com
Tue Aug 29 16:44:07 CDT 2006
On 8/28/06, Ehud Shabtai <eshabtai at gmail.com> wrote:
> The display issue does look like a rounding problem. When I'm able to
> reproduce the problem, if I use the Permalink URL and open the map in
> another tab, the map displays fine.
> Moreover, it's easier to reproduce when I'm zooming in by double
> clicking rather than using the zoom mouse bar.
I have made two changes and it now seems to work fine.
1. In getURL() instead of using the upper left point of the tile, I'm
using the center point and then I round the result to nearest tile
size (that's how ka-map does it).
This fixes the rounding problem.
2. In _initTiles(), when a new scale is chosen, it seems that not all
of the grid may be used. That's strange as I would expect the grid's
size to be the same for any scale?
Anyway, I just destroy the unused columns and rows of the grid.
--
Ehud Shabtai
http://www.freemap.co.il/map/
More information about the Users
mailing list