load_geojson
Load a geojson file and convert it in 'map' structure
load_geojson(
filepath,
width,
height,
[center],
[timeout]
)
Load a geojson file and convert it in 'map' structure
Syntaxe
var data = load_geojson("data.gejson", width=300, height=300, center=true);
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
filepath | yes | - | Path/URL to GeoJSON file containing a dictionary | |
width | yes | - | Width of the map in pixels | |
height | yes | - | Height of the map in pixels | |
center | - | - | if true, the map is centered around 0,0 | |
timeout | - | - | Network timeout in ms (optional) |