load_geojson
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 | Required | Default | Description |
|---|---|---|---|
filepath | yes | - | Path to JSON 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) |