[OpenLayers-Users] Dragging a DOM element onto an OpenLayers map

bradleyspencer brad at cubewerx.com.au
Tue Jul 29 18:01:14 EDT 2008


Kevin,

I do this a lot. I use dom-drag.js lib that does this very well. You just
have to make sure the map Div z-index is set to 0 for FF3.

Script featured on Dynamic Drive (http://www.dynamicdrive.com) Just get to
the dom-drag.js stuff.

Cheers,

Brad Spencer





-----Original Message-----
From: users-bounces at openlayers.org
[mailto:users-bounces at openlayers.org]On Behalf Of Kevin Marsh
Sent: Monday, 28 July 2008 11:31 PM
To: users at openlayers.org
Subject: [OpenLayers-Users] Dragging a DOM element onto an OpenLayers
map


I have a list of items in an unordered list (ul) on the same page as
my OpenLayers maps. I'd like to be able to drag a list item (li) onto
OpenLayers, send an AJAX request (to store the coordinate info on the
server), then place a marker on the map in that position.

Is this possible? I've looked through the examples and didn't find
anything similar.

Kevin Marsh
Partner, <form> && f(x)
Web Incubation, Design, and Development
Toledo, Ohio
http://formandfx.com

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list