[OpenLayers-Users] Markers with dymamically changing appearance

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Wed Aug 11 04:00:11 EDT 2010


Hi,

please always cc the list, since I don't know all the answers and people
with similar issues can find it in the e-mail archives later on.

Your first question: I don't know.

Redrawing can be done using:

feature.layer.drawFeature(feature);

http://dev.openlayers.org/docs/files/OpenLayers/Layer/Vector-js.html#OpenLayers.Layer.Vector.drawFeature

Best regards,
Bart

> On Aug 11, 2010, at 0:16 , Bart van den Eijnden (OSGIS) wrote:
>
>> please check out:
>>
>> http://docs.openlayers.org/library/feature_styling.html
>>
>> Labels can be drawn as well with vector features, see e.g.:
>>
>> http://openlayers.org/dev/examples/vector-features-with-text.html
>
> Thanks.
>
> Two more questions:
>
> - how do I draw in screen coordinates (I need to draw a polygon starting
> from a latlong, then draw 2em up and to the right etc), and have it stay
> the same size on-screen when the user zooms (ie make markers)?
> - how do I redraw these things? Just erase them and draw new ones, or do I
> replace their graphics properties?


-- 
Looking for flexible support on OpenLayers or GeoExt? Please check out
http://www.osgis.nl/support.html

Bart van den Eijnden
OSGIS
bartvde at osgis.nl




More information about the Users mailing list