| src/store/modules/openlayerData.js | ●●●●● patch | view | raw | blame | history |
src/store/modules/openlayerData.js
@@ -33,6 +33,7 @@ import OlSourceOSM from "ol/source/OSM.js"; import OlLayerTile from "ol/layer/Tile.js"; import OlMap from "ol/Map.js"; import { defaults as defaultInteractions } from "ol/interaction"; import XYZ from "ol/source/XYZ"; @@ -49,6 +50,9 @@ }, openlayers: { map2D: new OlMap({ interactions: defaultInteractions({ pinchRotate: false, // 移动端禁止地图旋转 }), layers: [ /** * new OlLayerTile({