Hi Yves, Perhaps that's what you search:
http://openlayers.org/pipermail/users/2008-September/007482.html var style = new OpenLayers.Style(OpenLayers.Util.applyDefaults({ pointRadius: "${scaledSize}" }, OpenLayers.Feature.Vector.style["default"]), { context: { scaledSize: function(feature) { return feature.layer.map.getResolution() * feature.attributes.size; } } }); var styleMap = new OpenLayers.StyleMap({"default": style}); Arnd -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Jacolin Yves Gesendet: Freitag, 10. April 2009 09:59 An: [email protected] Betreff: Re: [OpenLayers-Users] Dynamic size of point using StyleMap Le Thursday 09 April 2009 18:03:32 Christopher Schmidt, vous avez écrit : > On Thu, Apr 09, 2009 at 05:49:20PM +0200, Jacolin Yves wrote: > > Hello, > > > > Is it possible to use zoomLevel variable in a symbolizer object in > > StyleMap? :) > > You can use min and max scale. > > -- Chris Hi Chris, Thanks for your answer. May be I wasn't clear on what I want to do or I don't understand your answer ;) . I wrote a Style object applied to my vector layer. I would like that the point radius change for each zoomLevel. i.e. the point symbol become bigger when zoomLevel is bigger. Y. -- Yves Jacolin Ne demandez pas si vous pouvez contribuer, contribuer ! :) --- http://softlibre.gloobe.org _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
