Problem/Motivation
Refer to https://www.drupal.org/project/leaflet/issues/3236815 suggestion, in order to make use of GeoField proximity filtering and ordering, a meaningful "Origin Coordinates" for end-user is important, e.g.:
- A manual default origin coordinate
- Center of map after end-user moving the map by mouse click-and-move
- The client location through the browser HTML5 Geolocation API (e.g. by GPS, IP, etc)
This PR add support for Leaflet with Geolocation functionality, by introduce https://github.com/domoritz/leaflet-locatecontrol integration.
Issue fork leaflet-3252629
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3252629-add-domoritzleaflet-locatecontrol-support
changes, plain diff MR !6
Comments
Comment #3
hswong3i commentedComment #4
hswong3i commentedComment #5
hswong3i commentedComment #6
hswong3i commentedComment #9
itamair commentedThis cannot be approved as it is based on the 3.0.x-dev branch that is only experimental and not being supported now, in the short & mid term, because it doesn't provide a smooth and automatic upgrade path for all the 2.x users.
All this features requests should be also smoothly applicable to the 2.x branch, with full BW compatibility into it and upgrade/update path, to be approved ...
Comment #10
itamair commentedComment #12
itamair commented