This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

uMap: programmatically updating layer content

2

Hi,

I've used http://umap.openstreetmap.fr/en/ service to create a map containing several layers.
Each layer has a name and specific graphic customization. The content of the layers has been created uploading GeoJSON files (using "Import data" feature).
This really fill my needs.

The GeoJSON files I used to create the map are programmatically generated every day. I can use uMap editing interface to update layer content ("Import data", "replace layer content") manually but I'm looking to automatize the process (e.g. using a script).

Is there an API I could use to update layer content programmatically?

Thanks in advance for your help
Pierre Dittgen

asked 14 Aug '18, 10:30

Pid's gravatar image

Pid
41113
accept rate: 0%


One Answer:

0

I think this is a built in feature of umap. Check this bit of documentation: https://wiki.openstreetmap.org/wiki/UMap/Guide#Use_external_data

answered 14 Aug '18, 11:38

joost%20schouppe's gravatar image

joost schouppe
3.4k245087
accept rate: 12%

Thanks Joost for your answer.

But, as I can read: - using external data, uMap refreshes URL content for each zoom or move action. As my GeoJSON files weight over 40Mb together, it will eat bandwidth and slow down map display - OverPass Turbo is designed to query OpenStreetMap, so not external GeoJSON files.

Any clue?

(14 Aug '18, 13:18) Pid