|
@@ -17,7 +17,8 @@ export default {
|
|
|
canvasID: '',
|
|
|
key: '23f30a832a862c58637a4aadbf50a566',
|
|
|
appName: '万达可视化系统',
|
|
|
- mapServerURL: `http://map.wanda.cn/editor`
|
|
|
+ mapServerURL: `http://map.wanda.cn/editor`,
|
|
|
+ mapthemeUrl: `http://map.wanda.cn/editor/webtheme`
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -53,7 +54,7 @@ export default {
|
|
|
},
|
|
|
getMap() {
|
|
|
if (!window.fengmapData) {
|
|
|
- window.fengmapData = new SFengParser(`fengMap${this.id}`, `${this.mapServerURL}/fmap/${this.fmapID}`, this.key, this.appName, null)
|
|
|
+ window.fengmapData = new SFengParser(`fengMap${this.id}`, `${this.mapServerURL}/fmap/${this.fmapID}`, this.key, this.appName, null, this.mapthemeUrl)
|
|
|
window.fengmapData.loadMap(this.fmapID, () => {
|
|
|
// 获取主题数据
|
|
|
window.fengmapData.loadTheme(`${this.mapServerURL}/webtheme/${this.fmapID}/${this.fmapID}.theme`).then(res => {
|