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

Method getTopLeft

src/mapboxgl/overlay/MapvLayer.js:210–218  ·  view source on GitHub ↗

* @function MapvLayer.prototype.getTopLeft * @description 获取左上的坐标。

()

Source from the content-addressed store, hash-verified

208 * @description 获取左上的坐标。
209 */
210 getTopLeft() {
211 var map = this.map;
212 var topLeft;
213 if (map) {
214 var bounds = map.getBounds();
215 topLeft = bounds.getNorthWest();
216 }
217 return topLeft;
218}
219
220 /**
221 * @function MapvRenderer.prototype.bindEvent

Callers 11

MapvLayerSpec.jsFile · 0.45
MapVLayerSpec.jsFile · 0.45
MapvLayerSpec.jsFile · 0.45
toGeoJSONFunction · 0.45
transformFunction · 0.45
_canvasUpdateMethod · 0.45
mapv.min.jsFile · 0.45
mapv.jsFile · 0.45
leaflet.jsFile · 0.45
leaflet-src.jsFile · 0.45
mapv.min.jsFile · 0.45

Calls 1

getBoundsMethod · 0.45

Tested by

no test coverage detected