2

I have used Mapbox with great success using static datasets.

However I have a new project that I am starting and it will need to consume large weather datasets, perhaps live.

Im not certain if Mapbox is the right route but I would like to explore if other people think it might be possible? I have looking into other options such as Geoserver.

I have seen lots of examples of loading JSON on the client side. I would like to explore if its possible to dynamically load large JSON files (~500mb) from a database into mapbox then serve the resulting map on the client side with this data added in? The upload could be done daily first thing instead of being completed on the client side every time the map is loaded.

So the question is can I load datasets in the backend of Mapbox daily to be consumed on the client side?

2
  • Basically for the client to see that data, it is downloaded to the client. gzip and vector tiles will be your friends.Also using scale dependency limits may help in download smaller extents of data. Commented Sep 20, 2017 at 13:55
  • If it's only needed to be updated daily I don't see why you can't schedule this as an upload to Mapbox daily, then you get optimised maps via vector tiles. Commented Sep 21, 2017 at 2:47

2 Answers 2

1

Mapbox GL JS supports OGC WMS. however many people are generating dynamic on the fly vector tiles even with weather data. Mapbox just recently blogged about it with sample code. We've done vector tiles from geoserver or from POSTGIS and from tippecanoe on server

0

I had such a problem so often that I created martin — fast and lightweight vector tiles server. It allows you to generate vector tiles from PostGIS database and use in with Mapbox GL JS.

In your case, you can upload all of your data into a database and use martin to display this data as a vector tiles on the frontend. So there is no need to upload large GeoJSON files on the frontend directly. Also, you can add dynamic filtering using function sources.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.