MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / getMapInfo

Method getMapInfo

src/maplibregl/overlay/DeckglLayer.js:124–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 getMapInfo() {
125 let center = this.map.getCenter();
126 let zoom = this.map.getZoom();
127 let maxZoom = this.map.getMaxZoom();
128 let pitch = this.map.getPitch();
129 let bearing = this.map.getBearing();
130 let longitude = center.lng;
131 let latitude = center.lat;
132 return { center, zoom, maxZoom, pitch, bearing, longitude, latitude };
133 }
134
135 /**
136 * @function DeckglLayer.prototype.render

Callers

nothing calls this directly

Calls 2

getZoomMethod · 0.45
getMaxZoomMethod · 0.45

Tested by

no test coverage detected