mapbox / mapbox/mapbox-annotation-extension

Runtime styling

Open
#60 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
11
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Is there already a way to dynamically style a symbol?

How would I dynamically show/hide an icon? Formerly, with expression, it worked like this:
symbols.iconOpacity = NSExpression(format: "mgl_interpolate:withCurveType:parameters:stops:($zoomLevel, 'linear', nil, %@)",
[5.9: 0, 6: 1])

Contributor guide

Open the contributing guide

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

No files or tests are named. Start by checking the Mapbox Maps SDK for iOS styling and annotation APIs for runtime symbol opacity or visibility, then compare them with the former NSExpression example. Done means identifying a supported dynamic approach or documenting that the capability needs a scoped implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.