地图问题以及样式修改
|
|
@ -362,6 +362,9 @@ function initMap(list) {
|
|||
// });
|
||||
// }
|
||||
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
|
||||
if (!mars3d.Util.webglreport()) {
|
||||
mars3d.Util.webglerror();
|
||||
return;
|
||||
|
|
@ -395,14 +398,14 @@ function initMap(list) {
|
|||
map.addLayer(graphicLayer);
|
||||
|
||||
// 先把杆塔进行标点 然后连线
|
||||
initTowerLine(list);
|
||||
initTowerLine(list, mars3d, Cesium);
|
||||
|
||||
if (objParams.points) {
|
||||
let points = JSON.parse(objParams.points);
|
||||
$.each(points, function (i, item) {
|
||||
addMarker(item.lng, item.lat);
|
||||
addMarker(item.lng, item.lat, mars3d, Cesium);
|
||||
});
|
||||
viewPointLine();
|
||||
viewPointLine(mars3d, Cesium);
|
||||
}
|
||||
|
||||
map.on(mars3d.EventType.click, function (event) {
|
||||
|
|
@ -415,12 +418,12 @@ function initMap(list) {
|
|||
const lng = position.lng; // 经度
|
||||
const lat = position.lat; // 纬度
|
||||
|
||||
addMarker(lng, lat);
|
||||
addMarker(lng, lat, mars3d, Cesium);
|
||||
});
|
||||
}
|
||||
|
||||
// 添加点坐标
|
||||
function addMarker(lng, lat) {
|
||||
function addMarker(lng, lat, mars3d, Cesium) {
|
||||
// console.log("markers标点集合", markers);
|
||||
// var point = new BMapGL.Point(lng, lat);
|
||||
// // 创建点标记
|
||||
|
|
@ -509,7 +512,7 @@ function addMarker(lng, lat) {
|
|||
}
|
||||
|
||||
// 杆塔连线
|
||||
function initTowerLine(points) {
|
||||
function initTowerLine(points, mars3d, Cesium) {
|
||||
// // 存储所有点的坐标用于连线
|
||||
// var linePoints = [];
|
||||
// // 添加点覆盖物和标签
|
||||
|
|
@ -684,10 +687,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
|
|||
|
||||
// 预览标点连线
|
||||
document.getElementById("viewPoint").addEventListener("click", function () {
|
||||
viewPointLine();
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
viewPointLine(mars3d, Cesium);
|
||||
});
|
||||
|
||||
function viewPointLine() {
|
||||
function viewPointLine(mars3d, Cesium) {
|
||||
if (markers && markers.length === 0) {
|
||||
return layer.msg("请先创建点位", { icon: 7 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -365,6 +365,9 @@ function initMap(list) {
|
|||
// });
|
||||
// }
|
||||
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
|
||||
if (!mars3d.Util.webglreport()) {
|
||||
mars3d.Util.webglerror();
|
||||
return;
|
||||
|
|
@ -398,14 +401,14 @@ function initMap(list) {
|
|||
map.addLayer(graphicLayer);
|
||||
|
||||
// 先把杆塔进行标点 然后连线
|
||||
initTowerLine(list);
|
||||
initTowerLine(list, mars3d, Cesium);
|
||||
|
||||
if (objParams.points) {
|
||||
let points = JSON.parse(objParams.points);
|
||||
$.each(points, function (i, item) {
|
||||
addMarker(item.lng, item.lat);
|
||||
addMarker(item.lng, item.lat, mars3d, Cesium);
|
||||
});
|
||||
viewPointLine();
|
||||
viewPointLine(mars3d, Cesium);
|
||||
}
|
||||
|
||||
map.on(mars3d.EventType.click, function (event) {
|
||||
|
|
@ -420,12 +423,12 @@ function initMap(list) {
|
|||
|
||||
console.log("点击位置坐标-----:", lng, lat);
|
||||
|
||||
addMarker(lng, lat);
|
||||
addMarker(lng, lat, mars3d, Cesium);
|
||||
});
|
||||
}
|
||||
|
||||
// 添加点坐标
|
||||
function addMarker(lng, lat) {
|
||||
function addMarker(lng, lat, mars3d, Cesium) {
|
||||
// console.log("markers标点集合", markers);
|
||||
// var point = new BMapGL.Point(lng, lat);
|
||||
// // 创建点标记
|
||||
|
|
@ -509,7 +512,7 @@ function addMarker(lng, lat) {
|
|||
}
|
||||
|
||||
// 杆塔连线
|
||||
function initTowerLine(points) {
|
||||
function initTowerLine(points, mars3d, Cesium) {
|
||||
// // 存储所有点的坐标用于连线
|
||||
// var linePoints = [];
|
||||
// // 添加点覆盖物和标签
|
||||
|
|
@ -682,10 +685,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
|
|||
|
||||
// 预览标点连线
|
||||
document.getElementById("viewPoint").addEventListener("click", function () {
|
||||
viewPointLine();
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
viewPointLine(mars3d, Cesium);
|
||||
});
|
||||
|
||||
function viewPointLine() {
|
||||
function viewPointLine(mars3d, Cesium) {
|
||||
if (markers && markers.length === 0) {
|
||||
return layer.msg("请先创建点位", { icon: 7 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -353,6 +353,9 @@ function initMap(list) {
|
|||
// });
|
||||
// }
|
||||
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
|
||||
if (!mars3d.Util.webglreport()) {
|
||||
mars3d.Util.webglerror();
|
||||
return;
|
||||
|
|
@ -386,14 +389,14 @@ function initMap(list) {
|
|||
map.addLayer(graphicLayer);
|
||||
|
||||
// 先把杆塔进行标点 然后连线
|
||||
initTowerLine(list);
|
||||
initTowerLine(list, mars3d, Cesium);
|
||||
|
||||
if (objParams.points) {
|
||||
let points = JSON.parse(objParams.points);
|
||||
$.each(points, function (i, item) {
|
||||
addMarker(item.lng, item.lat);
|
||||
addMarker(item.lng, item.lat, mars3d, Cesium);
|
||||
});
|
||||
viewPointLine();
|
||||
viewPointLine(mars3d, Cesium);
|
||||
}
|
||||
|
||||
map.on(mars3d.EventType.click, function (event) {
|
||||
|
|
@ -408,12 +411,12 @@ function initMap(list) {
|
|||
|
||||
console.log("点击位置坐标-----:", lng, lat);
|
||||
|
||||
addMarker(lng, lat);
|
||||
addMarker(lng, lat, mars3d, Cesium);
|
||||
});
|
||||
}
|
||||
|
||||
// 添加点坐标
|
||||
function addMarker(lng, lat) {
|
||||
function addMarker(lng, lat, mars3d, Cesium) {
|
||||
// console.log("markers标点集合", markers);
|
||||
// var point = new BMapGL.Point(lng, lat);
|
||||
// // 创建点标记
|
||||
|
|
@ -501,7 +504,7 @@ function addMarker(lng, lat) {
|
|||
}
|
||||
|
||||
// 杆塔连线
|
||||
function initTowerLine(points) {
|
||||
function initTowerLine(points, mars3d, Cesium) {
|
||||
// 存储所有点的坐标用于连线
|
||||
// var linePoints = [];
|
||||
// // 添加点覆盖物和标签
|
||||
|
|
@ -675,10 +678,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
|
|||
|
||||
// 预览标点连线 成为区域
|
||||
document.getElementById("viewPoint").addEventListener("click", function () {
|
||||
viewPointLine();
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
viewPointLine(mars3d, Cesium);
|
||||
});
|
||||
|
||||
function viewPointLine() {
|
||||
function viewPointLine(mars3d, Cesium) {
|
||||
if (markers && markers.length === 0) {
|
||||
return layer.msg("请先创建点位", { icon: 7 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -364,6 +364,9 @@ function initMap(list) {
|
|||
// });
|
||||
// }
|
||||
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
|
||||
if (!mars3d.Util.webglreport()) {
|
||||
mars3d.Util.webglerror();
|
||||
return;
|
||||
|
|
@ -397,14 +400,19 @@ function initMap(list) {
|
|||
map.addLayer(graphicLayer);
|
||||
|
||||
// 先把杆塔进行标点 然后连线
|
||||
initTowerLine(list);
|
||||
initTowerLine(list, mars3d, Cesium);
|
||||
|
||||
if (objParams.points) {
|
||||
let points = JSON.parse(objParams.points);
|
||||
$.each(points, function (i, item) {
|
||||
addMarker(item.lng || item.lon, item.lat || item.lat);
|
||||
addMarker(
|
||||
item.lng || item.lon,
|
||||
item.lat || item.lat,
|
||||
mars3d,
|
||||
Cesium
|
||||
);
|
||||
});
|
||||
viewPointLine();
|
||||
viewPointLine(mars3d, Cesium);
|
||||
}
|
||||
|
||||
map.on(mars3d.EventType.click, function (event) {
|
||||
|
|
@ -419,12 +427,12 @@ function initMap(list) {
|
|||
|
||||
console.log("点击位置坐标-----:", lng, lat);
|
||||
|
||||
addMarker(lng, lat);
|
||||
addMarker(lng, lat, mars3d, Cesium);
|
||||
});
|
||||
}
|
||||
|
||||
// 添加点坐标
|
||||
function addMarker(lng, lat) {
|
||||
function addMarker(lng, lat, mars3d, Cesium) {
|
||||
// console.log("markers标点集合", markers);
|
||||
// var point = new BMapGL.Point(lng, lat);
|
||||
// // 创建点标记
|
||||
|
|
@ -514,7 +522,7 @@ function addMarker(lng, lat) {
|
|||
}
|
||||
|
||||
// 杆塔连线
|
||||
function initTowerLine(points) {
|
||||
function initTowerLine(points, mars3d, Cesium) {
|
||||
// // 存储所有点的坐标用于连线
|
||||
// var linePoints = [];
|
||||
// // 添加点覆盖物和标签
|
||||
|
|
@ -684,10 +692,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
|
|||
|
||||
// 预览标点连线
|
||||
document.getElementById("viewPoint").addEventListener("click", function () {
|
||||
viewPointLine();
|
||||
const mars3d = window.mars3d; // 静态资源引入时,对象都是挂载在window中
|
||||
const Cesium = window.mars3d.Cesium;
|
||||
viewPointLine(mars3d, Cesium);
|
||||
});
|
||||
|
||||
function viewPointLine() {
|
||||
function viewPointLine(mars3d, Cesium) {
|
||||
if (markers && markers.length === 0) {
|
||||
return layer.msg("请先创建点位", { icon: 7 });
|
||||
}
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 191 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
|
||||
<Title>NE2_HR_LC_SR_W_DR_recolored.tif</Title>
|
||||
<Abstract></Abstract>
|
||||
<SRS>EPSG:4326</SRS>
|
||||
<BoundingBox miny="-90.00000000000000" minx="-180.00000000000000" maxy="90.00000000000000" maxx="180.00000000000000"/>
|
||||
<Origin y="-90.00000000000000" x="-180.00000000000000"/>
|
||||
<TileFormat width="256" height="256" mime-type="image/jpg" extension="jpg"/>
|
||||
<TileSets profile="geodetic">
|
||||
<TileSet href="0" units-per-pixel="0.70312500000000" order="0"/>
|
||||
<TileSet href="1" units-per-pixel="0.35156250000000" order="1"/>
|
||||
<TileSet href="2" units-per-pixel="0.17578125000000" order="2"/>
|
||||
</TileSets>
|
||||
</TileMap>
|
||||
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 936 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |