[OpenLayers-Users] change point vector layer graphic?

Eric Lemoine eric.lemoine at camptocamp.com
Tue Jun 9 00:43:46 EDT 2009


On Monday, June 8, 2009, Wendell Turner <wendell at enflight.com> wrote:
>
> Is is possible to change the externalGraphic symbol used for
> a point symbol on a Vector layer (That is, after it has been
> drawn)?  Assigning to the value:
>
>   thefeature.style.externalGraphic = "img/newsymbol.png";

layer.drawFeature(thefeature);

Cheers,

>
> seems to have no effect.  Is there some sort of 'redraw
> yourself' function that needs to be called?
>
> Also, is there a way to just turn off one point vector
> symbol in a layer (similar to the way icon.display() is used
> on a marker)?
>
> Thanks,
>
> Wendell
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list