|
|
|
|
@ -474,7 +474,7 @@ |
|
|
|
|
vectorLayer.getSource().clear(); |
|
|
|
|
vectorLayer.getSource().addFeature(pFeature); |
|
|
|
|
map.getView().fit(point, { |
|
|
|
|
maxZoom: 18 |
|
|
|
|
maxZoom: 16 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (newValue.layerOpts) { |
|
|
|
|
@ -628,7 +628,7 @@ |
|
|
|
|
//天地图影像 |
|
|
|
|
var tdt = new TileLayer({ |
|
|
|
|
source: new XYZ({ |
|
|
|
|
maxZoom: 18, |
|
|
|
|
maxZoom: 16, |
|
|
|
|
url: "https://webst0{1-4}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}", |
|
|
|
|
// url: 'http://t{0-5}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=cef191b507ff5cb698811cd8a9b11ca0', |
|
|
|
|
projection: 'EPSG:3857', |
|
|
|
|
|