Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add Support For Marker Bitmaps #2744

Closed
bleege opened this issue Oct 23, 2015 · 2 comments
Closed

Add Support For Marker Bitmaps #2744

bleege opened this issue Oct 23, 2015 · 2 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@bleege
Copy link
Contributor

bleege commented Oct 23, 2015

Now that the setSprite() issue has been resolved we need to add support for custom images (aka Drawable) in the Marker API.

@bleege bleege added the Android Mapbox Maps SDK for Android label Oct 23, 2015
@bleege bleege added this to the android-v2.2.0 milestone Oct 23, 2015
@bleege bleege added the P1 label Oct 23, 2015
@ljbade
Copy link
Contributor

ljbade commented Oct 23, 2015

@bleege I have already implemented this via Marker.setIcon(Sprite icon). I called it setIcon to remain consistent with Google Maps.

To get a Sprite you call one of the SpriteFactory.fromEtc(etc) methods. There isn't one for a Drawable but we can add a fromDrawable easily.

@ljbade ljbade self-assigned this Oct 23, 2015
@ljbade
Copy link
Contributor

ljbade commented Oct 23, 2015

I added a fromDrawable.

I used it in the InfoWindowAdapter activity to add colored city markers that match the color of the InfoWindow.

device-2015-10-23-163206

ljbade pushed a commit that referenced this issue Oct 23, 2015
Used in InfoWindowAdapter activity
Fixes #2744
@bleege bleege mentioned this issue Oct 28, 2015
7 tasks
AndwareSsj pushed a commit to AndwareSsj/mapbox-gl-native that referenced this issue Nov 6, 2015
Used in InfoWindowAdapter activity
Fixes mapbox#2744
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

2 participants