Hi Christian,

You're doing a getZoom() just after created the map and before a zooming function, so the zoom property of the map is logically 0. 

Anyway, I think you use a wrong way of managing scale dependent size. 


Hope this helps.

Tschuuss

Le 19 juin 2012 à 15:05, christian bleau a écrit :

Hi, i'm just trying to use OL and I meet a problem with map.getZoom here's url of my test. for adapt an size of an OpenLayers.Layer.Vector and an externalGraphic I call a var zoom with map.getZoom line: 159 I call var z= map.getZoom(); for change the size of an image But they don't work "Error: Invalid value for attribute height="Infinity" If I try to see the z'value Firebug give me "0" ..... Thank a lot if you have the solution I search it since two days.

View this message in context: pb with map.getZoom
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Olivier Terral


 
GEOMATIC Ingénierie SA
Société du groupe Ringier
Chemin des Croisettes 26
1066 Epalinges
www.geomatic.ch
www.thevirtualcity.ch
Tél:: +41 (21) 651 30 00
Fax: +41 (21) 651 30 09




_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to