-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Leaflet.VectorGrid for rendering medium to large datasets efficiently in Leaflet #7
Comments
Hey, thank you. Yes I think I could add this plugin here, I tried some GeoJson files and it worked pretty straightforward, although currently I'm not sure how to implement the coloring method and so far I couldn't get a Protobuf example to work. I'll have to dig a little deeper but I keep you posted. |
Hi @trafficonese . That Sounds amazing! I will help testing as soon as there is a first version implemented. Unfortunately I do not have JavaScript Knowledge. Otherwise I could help developing as well. |
I'm not sure the plugin does what you want it to do. If you are plotting spatial data (which will be converted to GeoJSON) I don't think it will be faster than the basic leaflet functions and possibly might even be slower. I think the best choice for large spatial data might be As I understand it, the only advantage of the plugin is that you can use vector tiles from Mapbox, Maptiler or Nextzen for example via protobuf and define the styles inline. I've already included the Tangram plugin which does the same thing but requires using a Anyway, I'll try to publish my current state during this weekend, then you can check it out. |
I just published the branch "vectorgrid", but I am afraid it is far less efficient than You can install the branch with: I also included 2 examples in But you will see that even with 100k polygons, the map is already struggling a lot. An idea would be to create your own tile-server, upload the big data there, convert it to protobuf and display the data like that. But that would restrict you from using fancy labels, popups etc. |
Hi @trafficonese. Sounds like progress!! The option with the tile server was exactly what I was thinking about when requesting that feature. I knew about leafgl but documentation suggests it’s quite experimental still. As far as I can see there is no real other option then using an own tile server... is that something that would already work in the current version? I’ll have a look at your examples on the upcoming weekend. |
@s5joschi Hey, did you manage to try out the |
Hi @trafficonese . Sorry for keeping you waiting so long. We are still at setting up the servers. It's taking a bit longer because there had been some unforeseen things to be finished at the end of the year. But I'm positive that we will be able to test it in the upcoming weeks. I will get back to you, as soon as they are finished, Promise! |
Hello @trafficonese . My friend did a setup with a Geoserver and we are starting to test with a vector and a raster dataset. Just a Short question. In the two examples you have two different functions. One is using Protobuf with A WMS request could typically look something like: http://XX.XXX.XXX.XXX/geoserver/test/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=test%3Aifl_2016_sa&maxFeatures=50&outputFormat=application%2Fjson We are also looking into Protobuf but that has much less Learning material online yet. |
You should use the The URL should look something like this: |
HI @trafficonese. We are still working on the geoserver side. Seems to be mainly a challenge of creating the correct url. Meanwhile i'd also like to test it with mapbox which might be an easier option and also more relevant to a larger group of users. I was able to load all default tilesets with your example code but not a custom tileset created with own data in mapbox studio, which I can sucessfully access via an api request. Have you tried it with a custom tileset from data that you uploaded to mapbox as well? Some example api request from the mapbox reference: maybe this is also some missing option or step in mapbox studio to make the data available via the form that you use in your code?
|
Hi guys. First: Great work. Thanks for this library!
Any chance rendering vector tiles could make it into the project here?
https://github.com/Leaflet/Leaflet.VectorGrid.
It's one of the most important features besides raster tiles to display large datasets. Otherwise, Leaflet in R/Shiny is always bound to work with very small polygon datasets or operate with a very low/unusable rendering speed.
This issue was moved from the leaflet repo for R here as suggested by @tim-salabim
The text was updated successfully, but these errors were encountered: