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", "lodash": "^4.6.2",
"pbf": "^3.2.1" "pbf": "^3.2.1"
}, },
"peerDependencies": {
"@antv/l7": "^2.2.3"
},
"bugs": { "bugs": {
"url": "https://github.com/antvis/L7/issues" "url": "https://github.com/antvis/L7/issues"
}, },

View File

@ -766,6 +766,9 @@ export default class Transform {
return coord.toLngLat(); 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. * Calculate the posMatrix that, given a tile coordinate, would be used to display the tile on a map.
* @param {UnwrappedTileID} unwrappedTileID; * @param {UnwrappedTileID} unwrappedTileID;
@ -952,7 +955,6 @@ export default class Transform {
this.worldSize, this.worldSize,
this.worldSize, this.worldSize,
]); ]);
// scale vertically to meters per pixel (inverse of ground resolution): // scale vertically to meters per pixel (inverse of ground resolution):
mat4.scale( mat4.scale(

View File

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