Home > @magiclane/maps-sdk > GemView > addGeoJsonAsMarkerCollection

GemView.addGeoJsonAsMarkerCollection() method

Adds a GeoJSON data buffer as a marker collection.

Signature:

addGeoJsonAsMarkerCollection(buffer: string, name: string): MarkerCollection[];

Parameters

Parameter

Type

Description

buffer

string

The GeoJSON data buffer to be added as a marker collection.

name

string

The name of the marker collection.

Returns:

MarkerCollection[]

The created marker collections

Exceptions

An exception if it fails.