Commit e6ea68a3 authored by Administrator's avatar Administrator

更换成高德地图

parent 31deb0ed
...@@ -242,15 +242,15 @@ var map = { ...@@ -242,15 +242,15 @@ var map = {
mapContainer: 'map', mapContainer: 'map',
instance: null, instance: null,
initMap: function () { initMap: function () {
var satelliteTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=y&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var satelliteTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'satelliteTile', id: 'satelliteTile',
maxZoom: 20 maxZoom: 20
}); });
var terrainTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=p&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var terrainTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'terrainTile', id: 'terrainTile',
maxZoom: 20 maxZoom: 20
}); });
var googleTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=m&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var googleTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'googleTile', id: 'googleTile',
maxZoom: 20 maxZoom: 20
}); });
......
...@@ -291,15 +291,15 @@ var map = { ...@@ -291,15 +291,15 @@ var map = {
instance: null, instance: null,
initMap: function () { initMap: function () {
console.log(map.mapContainer) console.log(map.mapContainer)
var satelliteTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=y&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var satelliteTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'satelliteTile', id: 'satelliteTile',
maxZoom: 20 maxZoom: 20
}); });
var terrainTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=p&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var terrainTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'terrainTile', id: 'terrainTile',
maxZoom: 20 maxZoom: 20
}); });
var googleTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=m&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var googleTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'googleTile', id: 'googleTile',
maxZoom: 20 maxZoom: 20
}); });
......
...@@ -23,15 +23,15 @@ $(document).ready(function () { ...@@ -23,15 +23,15 @@ $(document).ready(function () {
instance: null, instance: null,
initMap: function () { initMap: function () {
console.log(map.mapContainer) console.log(map.mapContainer)
var satelliteTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=y&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var satelliteTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'satelliteTile', id: 'satelliteTile',
maxZoom: 20 maxZoom: 20
}); });
var terrainTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=p&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var terrainTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'terrainTile', id: 'terrainTile',
maxZoom: 20 maxZoom: 20
}); });
var googleTile = L.tileLayer('https://mt0.google.cn/vt/lyrs=m&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Galil&scale=2', { var googleTile = L.tileLayer('http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
id: 'googleTile', id: 'googleTile',
maxZoom: 20 maxZoom: 20
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment