hiposfer / hive

Your go-to routing app for public transport
GNU Lesser General Public License v3.0
10 stars 0 forks source link

show icons on geocode result #53

Open carocad opened 7 years ago

carocad commented 7 years ago

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 commented 6 years ago

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

mehdisadeghi commented 6 years ago

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

carocad commented 6 years ago

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 😅