<div dir="ltr">Thanks Eric, after I removed featureClass, got what I was looking for<br><br>Regards,<br>Indika<br><br><div class="gmail_quote">2008/8/22 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. If you use externalGraphics do not pass any featureClass to the<br>
WFS constructor. Also check the name of the external graphics prop i<br>
can't remember if there's a trailing s or not. Eric<br>
<br>
2008/8/22, Indika Tantrigoda <<a href="mailto:indika85@gmail.com">indika85@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> 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" target="_blank">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>
> 2008/8/21 Eric Lemoine <<a href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>><br>
><br>
>> 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>
>> > 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<br>
>> > 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>
>><br>
><br>
</div></div></blockquote></div><br></div>