[OpenLayers-Users] [OpenLayers-Dev] How to change the
display-style of gml-files
Christopher Schmidt
crschmidt at metacarta.com
Tue Mar 20 07:46:23 EDT 2007
On Tue, Mar 20, 2007 at 11:20:08AM +0100, Dipl.-Inf.(FH) Carsten Eider wrote:
> Hi folks,
>
> the example http://openlayers.org/dev/examples/gml-layer.html shows
> a gml-file within openlayers.
> Any hint how to change the color and style of the displayed features ?
If you look at:
http://openlayers.org/dev/examples/openmnnd.html
You'll see 'onFeatureInsert' functions on the layer. These functions
change the style and redraw the feature. This is (at the moment) the
best way to alter the style for a layer on the fly.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list