nativescript-community / nativescript-community/ui-mapbox

mapbox.addImage() doesnt work with local storage, is this possible to load images to clustered feature ? or create clustered custom markers ?.

Open
#56 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

Loading image from from res:// or even from any other directory from projects sources works, but it failed when path point to local storage. Im using clustering points and want to load images from backend and then using "icon-image" in symbol feature to point to this image added by mapbox.addImage(), due there is no other way to add image ( adding custom marker is not a solution, or someone know how to create clustered custom markers, url to image looks like is not supported ). For me looks like there is no other way to add custom icons not predefined before application release in case of clustering option.
Summarizng, is any possibility to load icons from backend and present them using clustering ?. Workaround can be usage of query features, find unclastered point, and add custom marker to this point, but don't know how to show such custom marker on top of unclastered point ( after try it appears behind it ).

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 with the mapbox.addImage() and clustered feature behavior described in the issue, then reproduce loading an image from local storage and using it through icon-image. Compare that with loading an image from project resources and verify whether dynamically loaded icons render within clustered points; done means backend-provided icons work with clustering or the limitation is documented.

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
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.