[OpenLayers-Dev] Drawing a line using code

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


This is more complicated than just drawing a line, but you could use if 
for inspiration:


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