[OpenLayers-Dev] Drawing a line using code

Andy Deakin andy.deakin at pcmend.net
Thu Apr 29 06:28:16 EDT 2010


Hi,

This is more complicated than just drawing a line, but you could use if 
for inspiration:
http://openlayers.org/dev/examples/rotate-features.html

Andy

Andreas Grech wrote:
> I have seen the examples 
> http://openlayers.org/dev/examples/draw-feature.html here  but they only
> show how to add a path by using the mouse.
>
> I need to find a way to draw the line directly with  JavaScript, manually.
>
> How can I accomplish this?
>
> Thanks,
> -Dreas.
>   




More information about the Dev mailing list