重新鼓捣地图
This commit is contained in:
@@ -20,6 +20,7 @@ export default {
|
|||||||
const {THREE, d3, axios, TWEEN} = window
|
const {THREE, d3, axios, TWEEN} = window
|
||||||
const rootEl = this.$el
|
const rootEl = this.$el
|
||||||
const root = this
|
const root = this
|
||||||
|
const scale = 8
|
||||||
|
|
||||||
class GeoMap {
|
class GeoMap {
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -190,7 +191,7 @@ export default {
|
|||||||
});
|
});
|
||||||
// areaGroup.add(that.transLayer(areaData));
|
// areaGroup.add(that.transLayer(areaData));
|
||||||
// areaGroup.add(that.tipsSprite(areaData));
|
// areaGroup.add(that.tipsSprite(areaData));
|
||||||
areaGroup.scale.set(4, 4, 4)
|
areaGroup.scale.set(scale, scale, scale)
|
||||||
that.mapGroup.add(areaGroup);
|
that.mapGroup.add(areaGroup);
|
||||||
});
|
});
|
||||||
that.scene.add(that.mapGroup);
|
that.scene.add(that.mapGroup);
|
||||||
@@ -384,7 +385,7 @@ export default {
|
|||||||
const marker = new THREE.Mesh(markerGeometry, markerMaterial);
|
const marker = new THREE.Mesh(markerGeometry, markerMaterial);
|
||||||
marker.position.set(...this.lnglatToVector3([longitude, latitude]))
|
marker.position.set(...this.lnglatToVector3([longitude, latitude]))
|
||||||
marker.position.z = -0.995
|
marker.position.z = -0.995
|
||||||
marker.scale.set(4, 4, 4)
|
marker.scale.set(scale, scale, scale)
|
||||||
return marker
|
return marker
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user