Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

show icons on geocode result #53

Open
carocad opened this issue Jul 15, 2017 · 3 comments
Open

show icons on geocode result #53

carocad opened this issue Jul 15, 2017 · 3 comments

Comments

@carocad
Copy link
Collaborator

carocad commented Jul 15, 2017

The mapbox geocode response contains the name of the maki icon appropiate to display for the specific result. Those icons are in SVG format. Last time I tried I couldnt get those to work with react-native + figwheel. Probably due to SVG being mentioned as one of pain points of react native.

It could be possible though to convert the SVG images to PNG and then use those directly.

https://www.mapbox.com/maki-icons/

@carocad
Copy link
Collaborator Author

carocad commented Jan 26, 2018

I think this would be too much right now. A simple marker icon with the distance below should suffice

@mehdisadeghi
Copy link
Contributor

@carocad there is an expo svg example: https://snack.expo.io/r1hCVAaEZ

@carocad
Copy link
Collaborator Author

carocad commented Aug 11, 2018

yeah I have seen some examples around, but the main problem with those is that they assume that you coded the SVG directly in react native.

The problem that we have is that we already have an svg in xml format and want to render it.

So far I have not found a good solution for it. I think it might be possible to just download all assets on build and let the react native packager do its job but I have not tried it 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants