nativescript-community / nativescript-community/ui-mapbox

Unable to load marker icon from custom style

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.