toGeoJSON

open fun toGeoJSON(precision: Number = definedExternally): dynamic(source)

Returns a GeoJSON representation of the layer group (as a GeoJSON GeometryCollection, Feature or GeometryCollection).