Custom SVG Icon/Marker Solution #229
tony-nz
started this conversation in
Show and tell
Replies: 1 comment
-
Following up on the caching, I guess I could do it via hashing it, see here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there
I really needed the support of custom SVG icons to be rendered on the map (custom markers with index values).
End result:
Screenshot
Files modified:
File: ios/Plugin/ImageCache/NativeImageCache.swift
File: ios/Podfile
Frontend/App code:
I'd greatly appreciated any suggestions/improvements as I've never touched Swift prior to this. Big thanks for such an awesome package!
Edit: I've disabled the caching for the svg due to an invalid key. if the svg has a two digit value (see priority within generateSvg), e.g. 10 and 12, the count of the svg will be the same and result in triggering the cache, which makes me think there isn't a need for caching in this instance?
Beta Was this translation helpful? Give feedback.
All reactions