mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
652 B
652 B
uMap advanced usages
Preloading a map with data {: #preloading-data }
You can preload a map using the dataUrl
parameter, that parameter must link
to an encoded URL (using JavaScript’s encodeURIComponent()
for instance).
You can also set the dataFormat
parameter given the resource you are linking to:
geojson
(default)csv
gpx
georss
kml
osm
This example will load a map with borders for Arles, dynamically fetched from geo.api.gouv.fr :