You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Yes, this is exactly what that is for. You can maybe fake it at screen center for tracking for now (i.e. put the marker above the map) but that won't help when you want to pan the map while showing the user.
GPS Marker is now in the SDK as of #1940. It's missing the Accuracy Circle for now, but am holding off as we need the location tech first for testing as well as I want to look into redoing the User Location marker artwork to make it more Material Design friendly.
Also we should try to get some nice compass and location marker artwork that matches Material design.
For reference in Google Maps:
Accuracy circle is blue with white ring and drop shadow. it has a small translucent blue ring around it. There is also a separate arrow that can be optionally enabled and shows current compass or GPS heading.
Finally there is a separate lighter translucent blue accuracy circle with a thin darker border. I think this can be drawn in the app so no need for a image here.
The compass is smaller than what we use and partially translucent, and overall 'simpler'. When you tap on it and the map rotates to north you get a brief compass with a 'N`:
This then fades out and disappears when map is fully north.
List of images:
small white circle with background, grey border and drop shadow for compass background
a compass red and white needle with slight shading - this will be rotated as needed in the app
a compass red needle with black "N" - I think the N can be rendered in app or use baked image with correct Android font
a position marker with blue circle, white border, drop shadow and darker transparent outer ring
a small blue arrow surrounded by transparent and aligned to be able to be rotated around the position marker
If we calculate the correct virtual size, then we can work out the dimensions needed for the images at each DPI level.
@bleege Who is best to task with creating us these images?
Heading / User Location Following first pass of implementation was graciously provided by @erf . It's on hold for the time being until we can make the processing more efficient. Please recall #2049.
Activity
ljbade commentedon Jan 18, 2015
I changed the GPS button to toggle location updates on or off. The updates are once a second and keep the map centre updated.
I used the https://github.com/mapzen/LOST that @bleege found.
Now I need to figure out how to add a marker to the map with compass direction and accuracy circle.
@incanus I guess this would be a good use of the client-side data stuff you are working on?
incanus commentedon Jan 20, 2015
Yes, this is exactly what that is for. You can maybe fake it at screen center for tracking for now (i.e. put the marker above the map) but that won't help when you want to pan the map while showing the user.
ljbade commentedon Jan 20, 2015
Yeah I was thinking about faking it @incanus. To get around the scrolling issue I may calculate screen coord from the zoom level and lat/lon
incanus commentedon Jan 20, 2015
Yeah, for a single marker, I'll bet that will work fine for now. I'll be watching as that could be useful on iOS as a stopgap too.
ljbade commentedon Jan 29, 2015
Will need to use these conversions:
#476
ljbade commentedon Jan 29, 2015
Related iOS ticket: #147
19 remaining items
closes #1082, refs #756: user dot on map in iOS
Merge pull request #1110 from mapbox/user-dot
bleege commentedon Aug 5, 2015
GPS Marker is now in the SDK as of #1940. It's missing the Accuracy Circle for now, but am holding off as we need the location tech first for testing as well as I want to look into redoing the User Location marker artwork to make it more Material Design friendly.
erf commentedon Aug 6, 2015
@incanus i've implemented tracking as you describe, and with using the material design floating action button at the bottom right to toggle the modes, with material design icons from google (https://www.google.com/design/icons/). Would you be interested in me adding this to a branch?
bleege commentedon Aug 6, 2015
@erf This is great! Thank you for doing this. We'll look to add this as part of #1856 .
erf commentedon Aug 6, 2015
Glad to help!
I'm working on the Android version of Embark (http://letsembark.io), so i'm happy to see this project moving forward.
ljbade commentedon Aug 14, 2015
@bleege Can we add some sort of optional heading marker arrow to the location dot like you get in Google Maps?
ljbade commentedon Aug 14, 2015
Also we should try to get some nice compass and location marker artwork that matches Material design.
For reference in Google Maps:

Accuracy circle is blue with white ring and drop shadow. it has a small translucent blue ring around it. There is also a separate arrow that can be optionally enabled and shows current compass or GPS heading.
Finally there is a separate lighter translucent blue accuracy circle with a thin darker border. I think this can be drawn in the app so no need for a image here.
The compass is smaller than what we use and partially translucent, and overall 'simpler'. When you tap on it and the map rotates to north you get a brief compass with a 'N`:

This then fades out and disappears when map is fully north.
List of images:
If we calculate the correct virtual size, then we can work out the dimensions needed for the images at each DPI level.
@bleege Who is best to task with creating us these images?
bleege commentedon Aug 14, 2015
@ljbade New imagery for UserLocation has already been ticketed internally. :-)
Heading / User Location Following first pass of implementation was graciously provided by @erf . It's on hold for the time being until we can make the processing more efficient. Please recall #2049.
ljbade commentedon Aug 15, 2015
@bleege Ah I understand! I'm getting mixed up with these different location tickets.
bleege commentedon Aug 31, 2015
GPS Marker has been long implemented. Will implement Heading / User Location Following in
0.2.0.