[OpenLayers-Users] Vector select styles

Eric Lemoine eric.c2c at gmail.com
Thu Apr 10 11:16:46 EDT 2008


On Thu, Apr 10, 2008 at 4:35 PM, Tim Schaub <tschaub at openplans.org> wrote:
> Hey Bjorn-
>
>  Glad to see you find it useful.
>
>  For those who haven't followed recent style changes, the page below is a
>  very nice use of "advanced context" for styles.
>
>  http://www.thematicmapping.org/experiments/openlayers/piecharts.html
>
>  Basically, you can have any value in a symbolizer (a symbolizer is what
>  we used to call feature.style) be derived by any function that evaluates
>  a feature for any feature property.  This includes feature attributes,
>  feature geometry, or anything else you choose to store on a feature.
>
>  If you give an OpenLayers.Style instance a context property, then the
>  all symbolizers will be evaluated in this context.  The
>  styles-context.html example in our examples dir shows another use.
>
>  Bjorn, can you contribute these examples to our examples directory?  Any
>  contributions of examples and documentation are greatly appreciated.
>
>  http://trac.openlayers.org/wiki/HowToContribute

For information, I just updated MapFish GeoStat code to use
OpenLayers' new style framework. I do have examples showing the
result, it's available in my MapFish sandbox. The code is available in
my sandbox, see [2]. This code will soon go into MapFish trunk.

[1] http://dev.mapfish.org/sandbox/elemoine/MapFish02/client/examples/geostat/
[2] http://trac.mapfish.org/trac/mapfish/browser/sandbox/elemoine/MapFish02/client/mfbase/mapfish/core/GeoStat

--
Eric



More information about the Users mailing list