Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ios,v10): add new Image component, to generate mapbox images using react-native #2648

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

mfazekas
Copy link
Contributor

@mfazekas mfazekas commented Mar 1, 2023

Introduce a new Image component to generate mapbox images using react-native views. It's v10 only and will not be implemented on other platforms. It's iOS only for now.

This means SVG or Skia, etc can used to generate symbols that appear on mapbox layers.

<Mapbox.Images>
  <Mapbox.Image name="rn-image" sdf>
    <View style={{backgroundColor:'red', width: 40, height: 40, borderRadius: 10}}></View>
  </Mapbox.Image>
</Mapbox.Images>

For stretching options see: mapbox/mapbox-gl-js#8917

@mfazekas mfazekas force-pushed the mfazekas/images-update branch 6 times, most recently from e553610 to a10a9d5 Compare March 1, 2023 14:38
@mfazekas mfazekas force-pushed the mfazekas/images-update branch from a10a9d5 to 8e7678a Compare March 1, 2023 14:44
@mfazekas mfazekas merged commit 788e48f into main Mar 1, 2023
@mfazekas mfazekas deleted the mfazekas/images-update branch March 1, 2023 20:44
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.

1 participant