<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><A
href="http://n2.nabble.com/GML%2C-Point-and-Change-the-Size-of-the-Circle...-tc791275.html#a791275">http://n2.nabble.com/GML%2C-Point-and-Change-the-Size-of-the-Circle...-tc791275.html#a791275</A></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV><SPAN class=968184418-08102008><FONT face=Arial color=#0000ff size=2>listen
to the zoom event and redraw the feature with the new styleMap, where the
pointRadius is a function of the zoom level:</FONT></SPAN></DIV>
<DIV><SPAN class=968184418-08102008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=968184418-08102008><FONT face=Arial color=#0000ff size=2>new
OpenLayers.StyleMap({<BR> "default":
OpenLayers.Util.applyDefaults({<BR>
pointRadius: faktor*map.getZoom()<BR> },
OpenLayers.Feature.Vector.style["default"]<BR>});<BR></FONT></SPAN></DIV>
<DIV><SPAN class=968184418-08102008></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>A<SPAN class=968184418-08102008>rnd
Wippermann</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Chris
Streeter<BR><B>Gesendet:</B> Mittwoch, 8. Oktober 2008 07:04<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] Dynamically Sized
Points With Styles<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>I was wondering if it is possible to dynamically resize a point
based on the zoom level of the map.<BR><BR>With the example at <A
href="http://www.openlayers.org/dev/examples/styles-unique.html">http://www.openlayers.org/dev/examples/styles-unique.html</A>,
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.<BR><BR>Thanks,<BR><BR>- Chris<BR></DIV></BODY></HTML>