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. Your problem seems similar to this example: http://dev.openlayers.org/releases/OpenLayers-2.11/examples/label-scale.html . 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 Olivier Terral GEOMATIC Ingénierie SA Société du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch |
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
