Home > @magiclane/maps-sdk > PolygonGeographicArea > toJSON

PolygonGeographicArea.toJSON() method

JSON.stringify hook: native calls receive the toJson() form (lowercase keys plus type), which is what the engine's area parser expects.

Signature:

toJSON(): Record<string, any>;

Returns:

Record<string, any>