From 3c454069f4f0dc30258e1baf2f924bee856f9af3 Mon Sep 17 00:00:00 2001 From: hu de yi Date: Thu, 6 Nov 2025 16:07:23 +0800 Subject: [PATCH] feat: map add stringifyView method --- packages/maptalks/src/map/Map.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/maptalks/src/map/Map.ts b/packages/maptalks/src/map/Map.ts index 40837dae70..4520f77ccf 100644 --- a/packages/maptalks/src/map/Map.ts +++ b/packages/maptalks/src/map/Map.ts @@ -1070,6 +1070,10 @@ export class Map extends Handlerable(Eventable(Renderable(Class))) { }; } + stringifyView() { + return JSON.stringify(this.getView()); + } + //@internal _validateView(view: MapViewType) { if (!view || !isObject(view)) {