diff --git a/packages/boundry/package.json b/packages/boundry/package.json index 94c5c5ffc2..b19256bb73 100644 --- a/packages/boundry/package.json +++ b/packages/boundry/package.json @@ -46,9 +46,6 @@ "lodash": "^4.6.2", "pbf": "^3.2.1" }, - "peerDependencies": { - "@antv/l7": "^2.2.3" - }, "bugs": { "url": "https://github.com/antvis/L7/issues" }, diff --git a/packages/map/src/geo/transform.ts b/packages/map/src/geo/transform.ts index ec32170ae8..183a9469e7 100644 --- a/packages/map/src/geo/transform.ts +++ b/packages/map/src/geo/transform.ts @@ -766,6 +766,9 @@ export default class Transform { return coord.toLngLat(); } + public getProjectionMatrix(): mat4 { + return this.projMatrix; + } /** * Calculate the posMatrix that, given a tile coordinate, would be used to display the tile on a map. * @param {UnwrappedTileID} unwrappedTileID; @@ -952,7 +955,6 @@ export default class Transform { this.worldSize, this.worldSize, ]); - // scale vertically to meters per pixel (inverse of ground resolution): mat4.scale( diff --git a/packages/maps/src/map/map.ts b/packages/maps/src/map/map.ts index 86f8632d99..7e780f2ae0 100644 --- a/packages/maps/src/map/map.ts +++ b/packages/maps/src/map/map.ts @@ -323,7 +323,6 @@ export default class L7MapService implements IMapService { // mapbox 中固定相机高度为 viewport 高度的 1.5 倍 cameraHeight: 0, }); - // set coordinate system if (this.viewport.getZoom() > LNGLAT_OFFSET_ZOOM_THRESHOLD) { this.coordinateSystemService.setCoordinateSystem(