Is it possible to set marker at ANY position on the GMaps Point field, if there is geocoder option enabled in the input settings of the GMaps field?

I had a following experience: if I set marker at random position, the geocoder widget show nearby addresses. But if I do not select any address, then the marker is not installed in position. But if I select address then the marker jumps to the "address" position.
If I switch off geocoder option, then the marker could be set at any position.
In my situation the address is necessary only for preliminary search of district (as helper), and after that set marker at any exact position.

So, is it possible to use/make any “address helper” for fast district search before setting any marker position by coordinates?

CommentFileSizeAuthor
#1 screen.jpg22.43 KBvatavale

Comments

vatavale’s picture

StatusFileSize
new22.43 KB
xmarket’s picture

Disable the "Enable reverse search" option on the widget (under the gocoder's search field), then you can move the marker to any arbitrary position.

ailgm’s picture

How can I prevent the "Enable reverse search" option from being offered to a user?

On a related note, how can I prevent the other options from being offered in the search: the search domain, and "Restrict search to viewport"?

vatavale’s picture

Aha! Thank you! But it looks like no way to disable this option by default? (I try to disable it in map preset but it not remembered.)

xmarket’s picture

You should overwrite the client side js code of the geocoder widget.

vatavale’s picture

Ок. If this is the only option, then thank you!

xmarket’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.