leaflet 使用高德地圖實例


let map = L.map("mapid", {
                      minZoom: 10,
                      maxZoom: 15,
                      center: [37.005646, 114.52044],
                      zoom: 11,
                      zoomDelta: 0.5,
                      fullscreenControl: false,
                      zoomControl: false,
                      attributionControl: false
                    });
            this.map = map;
            //http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}//arcgis在線地圖
            this.baseLayer=L.tileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",{
                    attribution: '© 高德地圖',
                    maxZoom: 15,
                    minZoom: 10,
                    subdomains: "1234"
                });
            this.map.addLayer(this.baseLayer);

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM