diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 8ae00f66..6f18ff04 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -58,7 +58,7 @@ import $ from 'jquery' import preventClick from './api/clickOnceAtime' // gisMap // import gisMap from 'gis-map-tunnel' -import gisMap from 'gis-map-admin' +// import gisMap from 'gis-map-admin' import config from '../public/config' @@ -118,7 +118,7 @@ Vue.component(CollapseTransition.name, CollapseTransition) Vue.use(directive) Vue.use(plugins) -Vue.use(gisMap) +// Vue.use(gisMap) Vue.use(VueMeta) DictData.install() /** diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/loadAMap.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/loadAMap.js index d13c6323..928b3ce0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/loadAMap.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/loadAMap.js @@ -13,7 +13,7 @@ export function loadAMap() { AMapLoader.load({ key: "3b5479d9ad9f01d138fef5e70daed7bd", // 申请好的Web端开发者Key,首次调用 load 时必填 // key: "b8053e4abb974f8a4346209ff5af93e9", // 申请好的Web端开发者Key,首次调用 load 时必填 - // version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15 + version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15 // plugins: ["AMap.MarkerCluster"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等 plugins: ["AMap.MarkerClusterer"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等 })