Page MenuHomePhabricator

Add button to move map to current location
Open, LowPublicFeature

Assigned To
None
Authored By
TheDJ
Nov 5 2018, 10:32 AM
Referenced Files
None
Tokens
"Like" token, awarded by MartinJacobson."Heartbreak" token, awarded by Traveler100."Like" token, awarded by Naseweis520."Like" token, awarded by Trockennasenaffe."Love" token, awarded by OhanaUnited."Like" token, awarded by Yuriy_kosygin."Like" token, awarded by Liuxinyu970226.

Description

On devices that support it,

add a button to request the users' current location and move and zoom the map to that location.

Easy to do with: https://github.com/domoritz/leaflet-locatecontrol

Event Timeline

MSantos moved this task from Unsorted to Feature requests on the Maps (Kartographer) board.
Yuriy_kosygin added a subscriber: Yuriy_kosygin.

Wikivoyage are about to become a travel guide for any traveler, and I think the destination map needs to add a person's location (like a Google Map) to help travelers find the places they want to visit.

When will it be officially activated? This is very import about Wikivoyage.

@Yuriy_kosygin: Someone needs to volunteer to write a software change, which in theory anyone can do who is interested. You are very welcome to use developer access to submit the proposed code changes as a Git branch directly into Gerrit which makes it easier to review them quickly and provide feedback.

Because the mobile version of the page does not display the Geo icon, and some pages will display the Mapframe, so I think the Mapframe needs to add the function of Show me where I am; visitors can use the mobile phone to watching the map of the Wikivoyage when they in outdoors, and know which one they are in location and destination location. Can add the Show me where I am function of {{geo}} to {{Mapframe}}?

Sure, go right ahead implement the feature and submit a patch. Everyone can contribute.

Change 575836 had a related patch set uploaded (by Abbe98; owner: Abbe98):
[mediawiki/extensions/Kartographer@master] wip: Initial support for locate me/gps

https://gerrit.wikimedia.org/r/575836

I have created an initial patch for this. GPS locator can now be enabled on a wiki with $wgKartographerGPSLocator = true; Following that the <mapframe> tag now takes an additional argument "gps" that adds the gps button/control to the map.

There is a few things that's needs more work but it would be great if someone could take an early look at the patch to see if I'm at the right track at all.

TODOs:

Abbe98 moved this task from Inbox to WiP on the User-Abbe98 board.
TheDJ changed the subtype of this task from "Task" to "Feature Request".Mar 8 2020, 11:55 PM

Removing task assignee due to inactivity as this open task has been assigned for more than two years. See the email sent to the task assignee on August 22nd, 2022.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome!
If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!

@Aklapper as far as I know this is still blocked by T187582. No sign of your email btw.