nativescript-community / nativescript-community/ui-mapbox
Unable to load marker icon from custom style
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 38
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
We have a web app and mobile app in which we use mapbox, in both apps we use a custom mapbox style. In the web app we use a custom icon for the markers that we uploaded into the style itself in the mapbox studio editor. I've tried to load the same icon into the mobile app but with little luck.
I did some digging into the index.android.js file as to how it loads the images and from what I can tell, there's no loader for the style icons rather than local/online images. Would it be possible to load icons from within the style like you can on the web version?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading index.android.js and trace how marker images are loaded for the mobile map. Compare that path with the custom icons available in the Mapbox style used by the web app. Done means a mobile app can use marker icons defined inside a custom Mapbox style, with behavior matching the web version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100