[OpenLayers-Users] KML layer and zoom in hassle

Christopher Schmidt crschmidt at metacarta.com
Sat Jul 12 08:35:09 EDT 2008


On Fri, Jul 11, 2008 at 04:59:31PM +0200, Frank Broniewski wrote:
> Dear list,
> 
> I am having some kind of weird issue with my KML layer in Openlayers. My 
> application consists of two layers, an OpenStreetmap Layer and a "handmade" 
> kml file with a Linestring. The KML Layer displays fine, but whenever I zoom 
> in one level, the KML layer disappears from the map. Zooming out works 
> though.
> 

Your layer is going out of range. Probably, you have a default map
numZoomLevels: You should instead set numZoomLevels to the number of
zoom levels in your layer in the map object. (19 should do it for OSM.) 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list