How can I place marker on map with a mouse click?

CommentFileSizeAuthor
#5 getlocations-1763672-clickmarker.patch747 byteshutch

Comments

hutch’s picture

Getlocations does not have a function for that.

xandeadx’s picture

Category: support » feature

ok, can it be implemented?

hutch’s picture

Markers represent locations which are associated with a content type using one of the modules that Getlocations supports, eg Getlocations Fields, Location CCK, GeoField or Geolocation. When content is created information can be provided so that a Latitude and Longitude can be determined, optionally along with address information. Once this information has been saved a marker can be displayed on a map.
I think you need to ask yourself, What are you trying to achieve?

xandeadx’s picture

I trying to achieve behavior as in GMap Module - place/move marker by click on the map widget.

hutch’s picture

StatusFileSize
new747 bytes

OK, on the input map.
Please try the attached patch.

xandeadx’s picture

Thank! It works.

And would like to be able disable show default marker on node/add/* page. Place marker only after clicking or geocode.

hutch’s picture

Status: Active » Reviewed & tested by the community

And would like to be able disable show default marker on node/add/* page. Place marker only after clicking or geocode.

I do recall customers using the old v2 Gmap finding it confusing that the marker was not visible so I will not implement that. The fewer clicks the better.

The click feature is useful and will be added to the next round of commits.

xandeadx’s picture

I do recall customers using the old v2 Gmap finding it confusing that the marker was not visible so I will not implement that. The fewer clicks the better.

You can make it an option in field settings.

hutch’s picture

Status: Reviewed & tested by the community » Closed (fixed)