<div dir="ltr">Hi all,<br><br>I seem to have some trouble with the following <br><br> var symbolizer = OpenLayers.Util.applyDefaults(<br> {externalGraphic: "./marker-blue.png", pointRadius: 20},<br> OpenLayers.Feature.Vector.style["default"]); <br>
<br> wfs_test = new OpenLayers.Layer.WFS( "WFS Test",<br> "<a href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>",<br> {typename: "topp:cities",<br>
maxfeatures: 10<br> },<br> {featureClass: OpenLayers.Feature.WFS,<br> styleMap: new OpenLayers.StyleMap({<br> "default": symbolizer<br>
})}<br> );<br> <br>I want to replace the default red marker with blue-marker.png<br>However I still get the same red marker.<br><br>Thanks in advance.<br><br>Regards,<br>Indika<br><br><div class="gmail_quote">
2008/8/21 Eric Lemoine <span dir="ltr"><<a href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi. maxfeatures tells the WFS how many features you want to receive at<br>
most. Eric<br>
<br>
2008/8/20, Indika Tantrigoda <<a href="mailto:indika85@gmail.com">indika85@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> Hi all,<br>
><br>
> I have managed to display some point data as a WFS layer using<br>
><br>
> wfs_test = new OpenLayers.Layer.WFS( "WFS Test",<br>
> "<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>",<br>
> {typename: "topp:cities",<br>
> maxfeatures: 10<br>
> },<br>
> { featureClass: OpenLayers.Feature.WFS}<br>
> );<br>
><br>
> The points are displayed as markers similar to the examples.<br>
><br>
> Would there be any way to have a custom marker instead of the traditional<br>
> one ? I plan to have multiple<br>
> point layers (as WFS layers) with different markers for each layer.<br>
><br>
> Also what exactly does the maxfeatures: 10 do ?<br>
><br>
> Thanks in advance.<br>
><br>
> Regards,<br>
> Indika<br>
><br>
</div></div></blockquote></div><br></div>