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

MarkerRenderSettings.toJSON() method

Standard JS hook invoked by JSON.stringify. Delegates to toJson so nested GemImage / Color objects use their own toJSON / toJson representations and the C++ side sees the expected schema.

Signature:

toJSON(): Record<string, any>;

Returns:

Record<string, any>