<div dir="ltr"><div><div><div><div><div><div><div><div>I have Geoserver layers of points. Most layers have less than 500 features so using WFS should be possible.<br><br></div></div>My problem is that I need to select a point and show its attributes, this is not smoothly working on a mobile device because the points are very small at hight zoom levels.<br>
</div>I tried solving this using additional rules in my SLD but those new rules are also shown in my legend graphic, creating a new problem.<br><br></div>Next I tried using WFS. After registering to the zoomend event I can dynamically resize my points:<br>
function zoomChanged() {<br> zoom = map.getZoom();<br> if (zoom >= 15){<br> wfs.styleMap.styles["default"].defaultStyle.pointRadius = zoom - 10; <br> } else {<br> // Reset to default values.<br> wfs.styleMap.styles["default"].defaultStyle.pointRadius = 4; <br>
} <br> wfs.redraw(); <br>}<br></div>This works great, but now my SLD is not used so I have all black points instead of green, yellow and red ones (depending on an attribute).<br><br></div>What I think I need is a combination of the above.<br>
Display my points using my SLD and resize my points at different zoom levels.<br><br></div>I will have 10+ layers which all have the same attributes structure and will be using the same SLD.<br></div>I'm looking for a solution that will not require a lot of duplicate code.<br>
<div><div><div><div><br clear="all"><div><div><div><div><div><div><div>Any idea will be much appreciated.<br></div><div><br>
Thanks,<br><br>
Paul</div>
</div></div></div></div></div></div></div></div></div></div></div>