地图问题以及样式修改

This commit is contained in:
BianLzhaoMin 2025-08-22 09:41:37 +08:00
parent e546b82d81
commit 19e34dc36b
792 changed files with 253658 additions and 120 deletions

View File

@ -362,6 +362,9 @@ function initMap(list) {
// }); // });
// } // }
const mars3d = window.mars3d; // 静态资源引入时对象都是挂载在window中
const Cesium = window.mars3d.Cesium;
if (!mars3d.Util.webglreport()) { if (!mars3d.Util.webglreport()) {
mars3d.Util.webglerror(); mars3d.Util.webglerror();
return; return;
@ -395,14 +398,14 @@ function initMap(list) {
map.addLayer(graphicLayer); map.addLayer(graphicLayer);
// 先把杆塔进行标点 然后连线 // 先把杆塔进行标点 然后连线
initTowerLine(list); initTowerLine(list, mars3d, Cesium);
if (objParams.points) { if (objParams.points) {
let points = JSON.parse(objParams.points); let points = JSON.parse(objParams.points);
$.each(points, function (i, item) { $.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) { map.on(mars3d.EventType.click, function (event) {
@ -415,12 +418,12 @@ function initMap(list) {
const lng = position.lng; // 经度 const lng = position.lng; // 经度
const lat = position.lat; // 纬度 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); // console.log("markers标点集合", markers);
// var point = new BMapGL.Point(lng, lat); // 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 = []; // var linePoints = [];
// // 添加点覆盖物和标签 // // 添加点覆盖物和标签
@ -684,10 +687,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
// 预览标点连线 // 预览标点连线
document.getElementById("viewPoint").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) { if (markers && markers.length === 0) {
return layer.msg("请先创建点位", { icon: 7 }); return layer.msg("请先创建点位", { icon: 7 });
} }

View File

@ -365,6 +365,9 @@ function initMap(list) {
// }); // });
// } // }
const mars3d = window.mars3d; // 静态资源引入时对象都是挂载在window中
const Cesium = window.mars3d.Cesium;
if (!mars3d.Util.webglreport()) { if (!mars3d.Util.webglreport()) {
mars3d.Util.webglerror(); mars3d.Util.webglerror();
return; return;
@ -398,14 +401,14 @@ function initMap(list) {
map.addLayer(graphicLayer); map.addLayer(graphicLayer);
// 先把杆塔进行标点 然后连线 // 先把杆塔进行标点 然后连线
initTowerLine(list); initTowerLine(list, mars3d, Cesium);
if (objParams.points) { if (objParams.points) {
let points = JSON.parse(objParams.points); let points = JSON.parse(objParams.points);
$.each(points, function (i, item) { $.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) { map.on(mars3d.EventType.click, function (event) {
@ -420,12 +423,12 @@ function initMap(list) {
console.log("点击位置坐标-----", lng, lat); 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); // console.log("markers标点集合", markers);
// var point = new BMapGL.Point(lng, lat); // 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 = []; // var linePoints = [];
// // 添加点覆盖物和标签 // // 添加点覆盖物和标签
@ -682,10 +685,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
// 预览标点连线 // 预览标点连线
document.getElementById("viewPoint").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) { if (markers && markers.length === 0) {
return layer.msg("请先创建点位", { icon: 7 }); return layer.msg("请先创建点位", { icon: 7 });
} }

View File

@ -353,6 +353,9 @@ function initMap(list) {
// }); // });
// } // }
const mars3d = window.mars3d; // 静态资源引入时对象都是挂载在window中
const Cesium = window.mars3d.Cesium;
if (!mars3d.Util.webglreport()) { if (!mars3d.Util.webglreport()) {
mars3d.Util.webglerror(); mars3d.Util.webglerror();
return; return;
@ -386,14 +389,14 @@ function initMap(list) {
map.addLayer(graphicLayer); map.addLayer(graphicLayer);
// 先把杆塔进行标点 然后连线 // 先把杆塔进行标点 然后连线
initTowerLine(list); initTowerLine(list, mars3d, Cesium);
if (objParams.points) { if (objParams.points) {
let points = JSON.parse(objParams.points); let points = JSON.parse(objParams.points);
$.each(points, function (i, item) { $.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) { map.on(mars3d.EventType.click, function (event) {
@ -408,12 +411,12 @@ function initMap(list) {
console.log("点击位置坐标-----", lng, lat); 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); // console.log("markers标点集合", markers);
// var point = new BMapGL.Point(lng, lat); // 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 = []; // var linePoints = [];
// // 添加点覆盖物和标签 // // 添加点覆盖物和标签
@ -675,10 +678,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
// 预览标点连线 成为区域 // 预览标点连线 成为区域
document.getElementById("viewPoint").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) { if (markers && markers.length === 0) {
return layer.msg("请先创建点位", { icon: 7 }); return layer.msg("请先创建点位", { icon: 7 });
} }

View File

@ -364,6 +364,9 @@ function initMap(list) {
// }); // });
// } // }
const mars3d = window.mars3d; // 静态资源引入时对象都是挂载在window中
const Cesium = window.mars3d.Cesium;
if (!mars3d.Util.webglreport()) { if (!mars3d.Util.webglreport()) {
mars3d.Util.webglerror(); mars3d.Util.webglerror();
return; return;
@ -397,14 +400,19 @@ function initMap(list) {
map.addLayer(graphicLayer); map.addLayer(graphicLayer);
// 先把杆塔进行标点 然后连线 // 先把杆塔进行标点 然后连线
initTowerLine(list); initTowerLine(list, mars3d, Cesium);
if (objParams.points) { if (objParams.points) {
let points = JSON.parse(objParams.points); let points = JSON.parse(objParams.points);
$.each(points, function (i, item) { $.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) { map.on(mars3d.EventType.click, function (event) {
@ -419,12 +427,12 @@ function initMap(list) {
console.log("点击位置坐标-----", lng, lat); 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); // console.log("markers标点集合", markers);
// var point = new BMapGL.Point(lng, lat); // 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 = []; // var linePoints = [];
// // 添加点覆盖物和标签 // // 添加点覆盖物和标签
@ -684,10 +692,12 @@ document.getElementById("clearMarkers").addEventListener("click", function () {
// 预览标点连线 // 预览标点连线
document.getElementById("viewPoint").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) { if (markers && markers.length === 0) {
return layer.msg("请先创建点位", { icon: 7 }); return layer.msg("请先创建点位", { icon: 7 });
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Some files were not shown because too many files have changed in this diff Show More