I wanted to use the OpenLayers.Layer.Markers, and also make them draggable, and once positioned I will also need it’s respective lat long values, so I’ll also need the drag events.
But by going through the samples and reading about this over the internet, I found that to use draggable markers, we can’t use OpenLayers.Layer.Markers directly. Instead we need to use OpenLayers.Layer.Vector and then pass it on to the OpenLayers.Control.DragFeature to make it draggable. Is this the correct approach ?
Also I need to draw box over certain regions on the map, for which I intend to use OpenLayers.Control.DrawFeature and then drawing a regular polygon through it. All seems fine, but is there a way to change the background color of each polygon ?