[OpenLayers-Dev] Styles Framework question

Eric Lemoine eric.c2c at gmail.com
Thu Jan 22 11:51:36 EST 2009


On Thu, Jan 22, 2009 at 5:43 PM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> Hi Eric,
>
> Eric Lemoine wrote:
>> I have a general question regarding the Styles Framework. We have
>> classes such as OpenLayers.Style, OpenLayers.Filter, OpenLayers.Rule,
>> etc. Tell me if I'm wrong but these classes have been built with SLD
>> in mind, so they follow the SLD spec. Can we image extending these
>> classes and going beyond SLD? Or do we want to strictly stick to SLD?
>>
>
> OpenLayers.Style was designed with the goal represent an SLD UserStyle
> as good as possible, same for OpenLayers.Rule. The latter has currently
> the shortcoming of allowing only one symbolizer of each type, because of
> the symbolizer hash it uses. For OpenLayers 3.0, we should change this
> to a symbolizers array. And finally, we have nothing yet to represent a
> FeatureTypeStyle.
>
> OpenLayers.Filter can also be used outside the styles framework, and
> represents OGC filters.
>
> Now to answer your question: Yes, the design goal was to support SLD.
> But I don't see a reason why all those classes should not be extended to
> support features beyond SLD and OGC filters (although I cannot think of
> any right now).

Thanks a lot for your answer Andreas.

--
Eric



More information about the Dev mailing list