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?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | screen.jpg | 22.43 KB | vatavale |
Comments
Comment #1
vatavale commentedComment #2
xmarket commentedDisable the "Enable reverse search" option on the widget (under the gocoder's search field), then you can move the marker to any arbitrary position.
Comment #3
ailgm commentedHow 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"?
Comment #4
vatavale commentedAha! 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.)
Comment #5
xmarket commentedYou should overwrite the client side js code of the geocoder widget.
Comment #6
vatavale commentedОк. If this is the only option, then thank you!
Comment #7
xmarket commented