fix(boundry): fix peer dependencies

This commit is contained in:
thinkinggis 2020-06-22 10:26:50 +08:00
parent 303ea17437
commit 8d86be542f
3 changed files with 3 additions and 5 deletions

View File

@ -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"
},

View File

@ -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(

View File

@ -323,7 +323,6 @@ export default class L7MapService implements IMapService<Map> {
// mapbox 中固定相机高度为 viewport 高度的 1.5 倍
cameraHeight: 0,
});
// set coordinate system
if (this.viewport.getZoom() > LNGLAT_OFFSET_ZOOM_THRESHOLD) {
this.coordinateSystemService.setCoordinateSystem(