Skip to content

Commit 77215a8

Browse files
authored
feat: map add stringifyView method (#2695)
1 parent 3c55c42 commit 77215a8

File tree

1 file changed

+4
-0
lines changed
  • packages/maptalks/src/map

1 file changed

+4
-0
lines changed

packages/maptalks/src/map/Map.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,10 @@ export class Map extends Handlerable(Eventable(Renderable(Class))) {
10701070
};
10711071
}
10721072

1073+
stringifyView() {
1074+
return JSON.stringify(this.getView());
1075+
}
1076+
10731077
//@internal
10741078
_validateView(view: MapViewType) {
10751079
if (!view || !isObject(view)) {

0 commit comments

Comments
 (0)