[OpenLayers-Users] KML layer and zoom in hassle

Frank Broniewski brfr at metrico.lu
Mon Jul 14 02:00:13 EDT 2008


On Saturday 12 July 2008 14:35:09 Christopher Schmidt wrote:
> 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,

Works like a charm. I would never have figured that out on myself. Thanks 
alot!

Greetings,

Frank

-- 
Frank Broniewski

Metrico s.àr.l. ( http://www.metrico.lu )
36, rue des Romains 
L-5433 Niederdonven 
Luxembourg

Fon: +352 26 74 94 1 
Fax: +352 26 74 94 99



More information about the Users mailing list