Hello everyone...
I'm starting with OpenLayers, i have created some layers, presets and styles, then created some custom content types and show a map view where i can see nodes according its coordinates.
I would like to add some lines between the dots represented on the map, using a vector layer with the idea to could remove the lines using behaviors. I don't know wich is the better aproach to do this.
I was thinking on using functions from the OpenLayers API as this one http://dev.openlayers.org/docs/files/OpenLayers/Geometry/LineString-js.html, but i don't know where exactly put my custom javascript code. Would be recommended build a custom module for that or just add the code on a exported feature of some presets for example (or something else)?
Is it posible to add a vector layer throught the UI? Or at least create the base code for export where to put the custom code?
Is there a better way to do this using the API of Openlayers Drupal module?
Any ideas, articles, or code to look would be really helpful.
Thanks in advance.

Comments
Is it posible to add a vector
Yes; but putting geodata in nodes with OpenLayers CCK, other form fields, or other modules, and displaying it with OpenLayers Views.
Look into the behaviors provided with openlayers. Your best route would be creating a new behavior in a custom module.
Any examples?
Does anybody have any examples of this sort of function in action? I have a client with a similar question.