PLAYGROUND (experimental)

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

NameTypeRequiredDefaultDescription
filepathyes-Path/URL to GeoJSON file containing a dictionary
widthyes-Width of the map in pixels
heightyes-Height of the map in pixels
center--if true, the map is centered around 0,0
timeout--Network timeout in ms (optional)