|
@@ -100,12 +100,12 @@ export default {
|
|
|
addWaterSurface(map) {
|
|
addWaterSurface(map) {
|
|
|
const geoJsonLayer = new this.mars3d.layer.GeoJsonLayer({
|
|
const geoJsonLayer = new this.mars3d.layer.GeoJsonLayer({
|
|
|
name: '渭河',
|
|
name: '渭河',
|
|
|
- url: './geojson/weihe.geojson',
|
|
|
|
|
|
|
+ url: '/geojson/weihe.geojson',
|
|
|
crs: 'EPSG:4326',
|
|
crs: 'EPSG:4326',
|
|
|
symbol: {
|
|
symbol: {
|
|
|
type: 'water',
|
|
type: 'water',
|
|
|
styleOptions: {
|
|
styleOptions: {
|
|
|
- normalMap: '//data.mars3d.cn/img/textures/waterNormals.jpg',
|
|
|
|
|
|
|
+ normalMap: '/img/waterNormals.jpg',
|
|
|
addHeight: 120,
|
|
addHeight: 120,
|
|
|
frequency: 8000.0, // 控制波数的数字。
|
|
frequency: 8000.0, // 控制波数的数字。
|
|
|
animationSpeed: 0.04, // 控制水的动画速度的数字。
|
|
animationSpeed: 0.04, // 控制水的动画速度的数字。
|