[OpenLayers-Users] Use WMS or WFS? In combination with style

Ian Turton ijturton at gmail.com
Wed Aug 28 05:19:27 PDT 2013


You should be able to avoid this by passing in the scale parameter with
your getlegend request - see
http://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/legendgraphic.htmlfor
more details.

Ian


On 28 August 2013 12:07, Paul Meems <bontepaarden at gmail.com> wrote:

> Thanks Diego,
>
> I did see the StyleMap framework, but did miss the custom rules option.
> I'll have a look at this.
>
> You say it is easy to modify my sld to make the point size depending on
> the zoom level.
> Do you have an example of that, because I couldn't find one that did not
> added an entry in the legend graphic as well.
>
>
> Thanks,
>
> Paul
>
>
> 2013/8/28 Diego Guidi <diegoguidi at gmail.com>
>
>> On Wed, Aug 28, 2013 at 11:44 AM, Paul Meems <bontepaarden at gmail.com>
>> wrote:
>> > Display my points using my SLD and resize my points at different zoom
>> levels.
>> To me, you have no need to duplicate code.
>> WMS serves images, and need a SLD to style the features, and you can
>> easily modify your SLD to show points with great size depending on
>> zoom level.
>>
>> WFS serves objects, and the style is depending on how you write client
>> (ie: javascript) code.
>>
>> Why you should use SLD to style client code, when you can use this?
>> http://docs.openlayers.org/library/feature_styling.html
>>
>>
>>
>>
>>
>> Diego Guidi
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
Ian Turton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130828/4e18c8d8/attachment.html>


More information about the Users mailing list