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.
We should come up with a basic marker (blank Maki one? something else?) that looks good on all/most maps, bundle it alongside other assets like compass imagery, Mapbox logo, etc., and have the platforms fall back to using it if client code doesn't provide a raster image to use.
Ideally we'd have @3x, too, but I'm not sure that the GL backend can handle @3x sprites right now — @incanus? Might as well produce and include the asset, in any case.
An @3x marker based on the current marker will be 60x150 (1.5x larger than @2x).
Activity
ljbade commentedon Aug 18, 2015
Good idea!
nickidlugash commentedon Sep 25, 2015
Per chat, I can help out with this. Does something like this work? But probably a different color.
Where should it live?
/cc @1ec5
1ec5 commentedon Sep 25, 2015
Here’s what we’re currently using on iOS:
https://github.com/mapbox/mapbox-gl-styles/blob/mb-pages/sprites/streets-src/renders/extras/default_marker.png
https://github.com/mapbox/mapbox-gl-styles/blob/mb-pages/sprites/streets-src/renders/extras/default_marker%402x.png
PNG would be best (at both resolutions). SVG isn’t a native image format in UIKit.
For iOS, the images should live in https://github.com/mapbox/mapbox-gl-native/tree/master/platform/ios/resources and be called something like “default_marker.png” and “[email protected]”. Just PR the images and I or @incanus can take care of hooking them up to the SDK.
Per @bleege, Android has the images at various resolutions in https://github.com/mapbox/mapbox-gl-native/tree/master/android/java/MapboxGLAndroidSDKTestApp/src/main/res.
DiogoAndre commentedon Sep 25, 2015
Maybe also good to provide @3x to support the 6plus? It is not mandatory, but would be nice to have the marker in all supported resolutions.
Here's a handy guide on iPhone screen resolutions: http://iosdesign.ivomynttinen.com/
Looking forward to having default markers, and then #2250 😄
friedbunny commentedon Sep 27, 2015
Ideally we'd have
@3x, too, but I'm not sure that the GL backend can handle@3xsprites right now — @incanus? Might as well produce and include the asset, in any case.An
@3xmarker based on the current marker will be 60x150 (1.5x larger than@2x).ljbade commentedon Oct 2, 2015
@friedbunny Going to have to support arbitrary sprite sizes for Android, from <1.0, to over 4.0. So iOS support for 3x will come soon too I suspect.
ljbade commentedon Oct 2, 2015
Merged, follow up on Android scaling issue in #2506