With column supplied this is add_choropleth(); without it, add_geojson().
Provided for parity with the Python API.
Arguments
- map
A GeoLibre widget.
- data
GeoJSON as a parsed list (a
FeatureCollection,Feature, or bare geometry), a JSON string, a file path, an HTTP(S) URL, or ansfobject. A URL or file is read and inlined into the project, up to a 50 MB limit; for larger datasets preferadd_vector(), which lets the browser stream the source.- column
Optional numeric property to drive graduated symbology.
- name
Layer name.
- ...
Forwarded to
add_choropleth()oradd_geojson().