Render as image #851
Unanswered
matburnham
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to use react-icons for markers within a react-map-gl map. This means I need to render them as raster images as react-map-gl doesn't support vector images for GeoJSON layers.
I've got fairly close with this:
Apart from the fact it doesn't quite render right, it's rather fragile to using other icons (e.g. CiAirportSign1 has more than one path in it). I think I might be going about this the wrong way. How can I get a reart-icons image into a HTMLImageElement to render inside react-map-gl rather than rendering it in my HTML?
Beta Was this translation helpful? Give feedback.
All reactions