<template> <div> <br> <div id="container"></div> <!-- <div class="info">--> <!-- <h4 id="text"></h4>--> <!-- <p>当前级别:<span id="map-zoom">15</span></p>--> <!-- </div>--> <div id="map" class="s1">实时地图 </div> <div id="map2" class="s2">实时地图2</div> </div> </template> <script> export default { data() { return { map: {}, map2: { setZoomAndCenter(number, numbers) { } }, zoom1: [], zoom2: [], logMapinfo: {}, currentCenter1: [], currentCenter2: [] } }, mounted() { this.initAMap() this.initAMap2() console.log('00000000000000000', this.map.getZoom()) console.log('1111111111', this.map.getCenter().toSt
VUE+js高德地图2.0API两幅地图联动同步缩放
于 2022-03-17 18:21:22 首次发布