http://n2.nabble.com/GML%2C-Point-and-Change-the-Size-of-the-Circle...-tc791 275.html#a791275 listen to the zoom event and redraw the feature with the new styleMap, where the pointRadius is a function of the zoom level: new OpenLayers.StyleMap({ "default": OpenLayers.Util.applyDefaults({ pointRadius: faktor*map.getZoom() }, OpenLayers.Feature.Vector.style["default"] });
Arnd Wippermann _____ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Chris Streeter Gesendet: Mittwoch, 8. Oktober 2008 07:04 An: [email protected] Betreff: [OpenLayers-Users] Dynamically Sized Points With Styles I was wondering if it is possible to dynamically resize a point based on the zoom level of the map. With the example at http://www.openlayers.org/dev/examples/styles-unique.html, can we make the points change their radius as we zoom in? I'd like to keep the circles the same relative size to the underlying map layer. Thanks, - Chris
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
