addGeoJsonAsMarkerCollection

fun addGeoJsonAsMarkerCollection(path: String, listener: ProgressListener, filters: ArrayList<String> = ArrayList(), prefix: String = "", jsonParams: ParameterList? = null, importPolygonAsArea: Boolean = false): Pair<ArrayList<MarkerCollection>, Int>?

Adds a GeoJSON file as a marker collection.

Return

A pair of a list of MarkerCollection objects and an integer result code.

Parameters

path

The path to the GeoJSON file.

listener

The progress listener for the operation.

filters

Filters for the useful data from "properties" GeoJSON.

prefix

The prefix for "features" in the GeoJSON (e.g. "/data/collection/"). If empty, "features" is considered to be in the json root.

jsonParams

Additional JSON params to parse.

importPolygonAsArea

If true, polygons are imported as areas.


fun addGeoJsonAsMarkerCollection(data: DataBuffer, name: String, listener: ProgressListener, filters: ArrayList<String> = ArrayList(), prefix: String = "", jsonParams: ParameterList? = null, importPolygonAsArea: Boolean = false): Pair<ArrayList<MarkerCollection>, Int>?

Adds a GeoJSON data buffer as a marker collection.

Return

A pair of a list of MarkerCollection objects and an integer result code.

Parameters

data

The GeoJSON data buffer.

name

The name of the marker collection.

listener

The progress listener for the operation.

filters

Filters for the useful data from "properties" GeoJSON.

prefix

The prefix for "features" in the GeoJSON. If empty, "features" is considered to be in the json root.

jsonParams

Additional JSON params to parse.

importPolygonAsArea

If true, polygons are imported as areas.


fun addGeoJsonAsMarkerCollection(grabber: (DataBuffer) -> Int, size: Int, name: String, listener: ProgressListener, filters: ArrayList<String> = ArrayList(), prefix: String = "", jsonParams: ParameterList? = null, importPolygonAsArea: Boolean = false): Pair<ArrayList<MarkerCollection>, Int>?

Creates a marker collection from a GeoJSON data grabber.

Return

A pair of a list of MarkerCollection objects and an integer result code.

Parameters

grabber

A function that fills the given DataBuffer and returns 0 on success.

size

The expected data size in bytes.

name

The name of the marker collection.

listener

The progress listener for the operation.

filters

Filters for the useful data from "properties" GeoJSON.

prefix

The prefix for "features" in the GeoJSON. If empty, "features" is considered to be in the json root.

jsonParams

Additional JSON params to parse.

importPolygonAsArea

If true, polygons are imported as areas.