MCPcopy
hub / github.com/antvis/L7 / updateCoordinateSystemService

Function updateCoordinateSystemService

packages/maps/src/utils/BaseMapService.ts:368–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 }
367
368 protected updateCoordinateSystemService() {
369 const { offsetCoordinate = true } = this.config;
370 // set coordinate system
371 if ((this.viewport as IViewport).getZoom() > LNGLAT_OFFSET_ZOOM_THRESHOLD && offsetCoordinate) {
372 this.coordinateSystemService.setCoordinateSystem(CoordinateSystem.LNGLAT_OFFSET);
373 } else {
374 this.coordinateSystemService.setCoordinateSystem(CoordinateSystem.LNGLAT);
375 }
376 }
377}

Callers

nothing calls this directly

Calls 2

getZoomMethod · 0.65
setCoordinateSystemMethod · 0.65

Tested by

no test coverage detected