Flutter_map: Vector support?

Created on 6 Nov 2018  Â·  20Comments  Â·  Source: fleaflet/flutter_map

Hi, is there any plan to support Vector Tile format? (as per https://www.mapbox.com/vector-tiles/)

Leaflet has support via https://github.com/Leaflet/Leaflet.VectorGrid

enhancement

Most helpful comment

This sounds like a useful feature. It's not currently on the roadmap but we accept pull requests if you would like to add it. It could also be written using the plugin API

All 20 comments

This sounds like a useful feature. It's not currently on the roadmap but we accept pull requests if you would like to add it. It could also be written using the plugin API

This would be really useful! +1

@johnpryan Ok, I will look into it. If I decide to start with it, I will mention it here

+1 for me

+1

+1

Definitely interested in this as well

Is there any plan to support esri basemaps from local files on my pc with features such as leaflet supports?

@ginakuhn ESRI basemaps are implemented differently IIRC. I'm not planning to work on it, but please feel free to file a separate issue to see if others are interested

Thank you
I will wait for your vector tiles plug in.
Regards
Ina

On 25 Apr 2019, at 21:24, John Ryan notifications@github.com wrote:

@ginakuhn ESRI basemaps are implemented differently IIRC. I'm not planning to work on it, but please feel free to file a separate issue to see if others are interested

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi, is there any update on this? Thanks!

I think I might have a need for this. (In particular, my use case is rotated maps. I'd like the text to be sensible, and restyling vector tiles seems more effective than rendering my own bitmap tile set at 2-8 different orientations.)

Is anybody currently working on it? If so, glad to help. And if not, does anybody who has thought more about doing it have tips on how to approach it?

For those also wanting vector maps on Flutter, it turns out there's an unofficial Mapbox GL library that may fit your needs: https://github.com/tobrun/flutter-mapbox-gl/

@wpietri Very sad, the project has not been updated for a long time.

Hi! Any update on this feature? Thank you

@maRci002 If you are looking for a challenge this would be it.

Not sure why @MooNag tagged @maRci002 , but if he is up to this challenge, I could help. In my opinion there are two parts. The decoding and the rendering/styling. If he takes over the rendering, I would be willing to do the decoding part. :-)

I'm having a small play with this, just out of interest giving a bit of feedback, code is too messy to share currently, but I will if I get it to a state of usefulness so others can pick bits of it out...it's quite tricky :).

A lot of canvas draws/vectors can be slow, my code is pretty ropey, so there's some optimisations, but ultimately moving a canvas around with a lot of draws is very slow (to the point of being unusable). I'm experimenting with dumping the canvas to an image once processed, caching widgets, and then moving the image about as a widget, but it's likely a far cry from the fluidity of things like google maps vectors. Maybe another idea could be to stagger layers/features, i.e draw roads and rivers first, return a widget, then add other details after behind the scenes or when the tiles aren't moving.

As it's not an 'image' like a png/jpg etc, you can't seem to use the existing image providers, unless there's a trick I'm missing. I'd like to use the retry strategies etc, but unable to. I posted a question on S.O but I think it's too niche https://stackoverflow.com/questions/63137894/get-image-from-imageprovider-without-decoding if anyone has any thoughts, feel free to ping.

It's quite hard to debug some decoded geometry, I have some things looking ok, but some polygons are misplaced, and it's difficult to isolate why :).

There's different specs and formats which is fiddly as well (I'm just currently looking at mapbox vector tiles).

If anyone else is interested in combining ideas, or has played already, feel free to shout, as it's likely it's a whole project in itself.

Just for info, I've created a repo for the work I'm doing at https://github.com/ibrierley/flutter_map_vector_tiles

As a proof of concept, there are working vector tiles :). But mileage will vary, initial issues are mentioned on the readme there.

Hopefully some may have a play and find useful as a starting point, and feedback any thoughts (and code!). It's not documented yet, but I'll try and get round to some of that when I think it won't change too much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jacksos101 picture jacksos101  Â·  3Comments

reidterror picture reidterror  Â·  3Comments

SamuelRioTz picture SamuelRioTz  Â·  4Comments

JonasVautherin picture JonasVautherin  Â·  4Comments

abhijithvijayan picture abhijithvijayan  Â·  4Comments