There isn''t a way of doing that currently, no. You could use the center
of
the map as the location the user requires and grab that using getCenter().
You could add a crosshair overlay image to show the center location more
clearly.
One of the github forks IDElab has an interactive extension which allows
draggable markers and I plan to get this into the main repository ASAP.
Derek
On 29 June 2010 22:19, Lance Wicks <lw at judocoach.com> wrote:
> Hi,
> I''m trying to implement a draggable marker that updates lat/long
fields
> in a form.
> Is there a Mapstraction equivalent to the following:
>
> GEvent.addListener(marker, "dragend", function() {
> var point = marker.getPoint();
> map.panTo(point);
> document.getElementById("latitude").value = point.lat();
> document.getElementById("longitude").value = point.lng();
> });
>
> Which I found at http://www.putyourlightson.net/projects/coordinates by
> the way.
> This is for my Dojolist project, the specific page I am working on is
> here:
> http://github.com/lancew/DojoList/blob/master/views/admin/create.html.php
>
> Any feedback/help would be appreciated.
>
> Lance
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
>
--
Derek Fowler
m. +44 (0) 7966 512 369
e. dezfowler at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100703/8bc57da1/attachment.htm>