toGeoJSON

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

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