mirror of https://gitee.com/antv-l7/antv-l7
add setCenter
This commit is contained in:
parent
a93d34b821
commit
94368efb20
|
@ -13,7 +13,7 @@ export default class Scene extends Base {
|
|||
constructor(cfg) {
|
||||
super(cfg);
|
||||
this._initMap();
|
||||
this._initAttribution();
|
||||
// this._initAttribution(); // 暂时取消,后面作为组件去加载
|
||||
this.addImage();
|
||||
this._layers = [];
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ void main() {
|
|||
float scale = pow(2.0,(20.0 - u_zoom));
|
||||
mat4 matModelViewProjection = projectionMatrix * modelViewMatrix;
|
||||
vec3 newposition = position;
|
||||
// newposition.x -= 128.0;
|
||||
#ifdef SHAPE
|
||||
newposition =position + a_size * scale* a_shape;
|
||||
#endif
|
||||
|
|
|
@ -26,6 +26,9 @@ export default class GaodeMap {
|
|||
setZoom(zoom) {
|
||||
return this.map.setZoom(zoom);
|
||||
}
|
||||
setCenter(lnglat) {
|
||||
return this.map.setCenter(lnglat);
|
||||
}
|
||||
setBounds(bounds) {
|
||||
return this.map.setBounds(bounds);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue