Skip to content

Conversation

@pjleonard37
Copy link
Contributor

Summary

Ports the custom colorized vector icons example from GL JS to Flutter.

Implementation

Example demonstrates parameterized vector icons using the image expression with color parameters:

  • 3 flag icons at Helsinki coordinates with dynamic colors (red, yellow, purple)
  • Runtime SVG icon colorization based on GeoJSON feature properties
  • Uses custom style: mapbox://styles/mapbox-map-design/cm4r19bcm00ao01qvhp3jc2gi

Note: this is a more complex feature, and complete documentation will be added in a central place on docs.mapbox.com. We'll update these examples with a link to that when it is ready.

Simulator Screenshot - iPhone 17 Pro - 2025-11-21 at 14 19 45

@pjleonard37 pjleonard37 requested a review from a team as a code owner November 21, 2025 19:29
@pjleonard37 pjleonard37 requested a review from evil159 November 21, 2025 19:29
MAPSFLT-411

Port the custom colorized vector icons example from GL JS to Flutter.
Demonstrates parameterized SVG icons with runtime color customization using the image
expression with color parameters.
@pjleonard37 pjleonard37 force-pushed the MAPSFLT-411-create-vector-icons-example branch from 4bd89f7 to 30f2c18 Compare November 21, 2025 19:49
evil159
evil159 previously approved these changes Nov 24, 2025
Tap flags to toggle their size between 1x and 2x, matching the iOS example functionality. Renamed from "Custom Colorized Vector Icons" to reflect the added interaction capabilities.
@pjleonard37 pjleonard37 merged commit f5d1894 into main Nov 25, 2025
7 checks passed
@pjleonard37 pjleonard37 deleted the MAPSFLT-411-create-vector-icons-example branch November 25, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants