Drag 'n Drop marker

thePanz - March 31, 2008 - 12:26
Project:GMap Module
Version:6.x-1.1-rc1
Component:User interface
Category:feature request
Priority:normal
Assigned:bdragon
Status:postponed (maintainer needs more info)
Description

Hi, is there a way to have a Drag 'n Drop functionality while positioning a Marker? I'm using Location.module, map_location.module and gMap.module to let users locate their contents:

  • initially they choose Region/City (I added some ActiveSelect AJAX loading for them)
  • then click "Locate this on the Map"
  • then they have only to move the marker to the right position.
    • Is this a planned feature? Let me know!

      Regards

#1

Wouter - April 23, 2008 - 07:13

/subscribing

I'd love to see this as well. I'm developing a citizen participation website and usertests just showed that the bulk of people instinctively want to drag and drop the marker after its first positioning on the map.

#2

farf - April 29, 2008 - 07:34

subiscribing

#3

bdragon - June 26, 2008 - 20:38
Assigned to:Anonymous» bdragon
Status:active» postponed (maintainer needs more info)

How's this? (Committed to DRUPAL-5, copy of changed file attached)

Are there any other changes that you can think of to improve usability?

AttachmentSize
locpick.js_.txt 3.88 KB

#4

Wouter - July 2, 2008 - 11:14

Just tested your new code.

It works great for points you manually add to the map by clicking on it directly.

But just like the original poster of this issue, I use the map_location module which allows me to enter an address, press a button and have a marker appear on my map (on the right spot of course).

What isn't possible for some reason is dragging a marker that was placed on the map in this fashion.

I can however (funnily enough) click once next to the marker (so it relocates) and from then on it *is* draggable as well.

Any idea on how you could make markers that are placed on the map via map_location draggable from the start ?

Would be great if this was possible.

One minor usability issue that came up in our tests was the fact that people found the autozoom feature a bit disorienting. Probably because we already start on a pretty high zoom value. Hence we deleted the two zoomIn calls you have at line 30 and 31. But I could figure that other people do find this a helpful feature (especially when you start from higher up).

Cheers for the work so far!

Wouter

#5

tinem - April 24, 2009 - 12:44

I'm new to Drupal and haven't made my site yes but have made a lot of Google Maps API sites and would like if this has been solved, please?

#6

upperholme - October 18, 2009 - 08:21
Version:5.x-1.x-dev» 6.x-1.1-rc1

I'm also very keen to see the functionality described by Wouter above.

I have a site where each node has a map block driven by a postal code via Gmap Location. What I'm seeing in practice is that many of the markers are inaccurately positioned (is this a weakness in Google's API?) and the users want to move them to the correct position on the map.

I was wondering whether this is a configurable option via a Gmap macro behavior, but I can't locate a complete definition of what's possible using the macro feature.

I would be happy to consider a financial contribution to support any required development time on this.

 
 

Drupal is a registered trademark of Dries Buytaert.