Compare commits
2 Commits
c5312e9109
...
5a7d4643f6
| Author | SHA1 | Date |
|---|---|---|
|
|
5a7d4643f6 | |
|
|
695748d70e |
|
|
@ -240,10 +240,7 @@
|
|||
|
||||
|
||||
function mapmouseover(e){
|
||||
console.log("eeeee",e);
|
||||
window.document.removeEventListener("wheel", (e)=>{
|
||||
console.log("e1e1e1",e);
|
||||
});
|
||||
|
||||
}
|
||||
onMounted(() => {
|
||||
|
||||
|
|
@ -616,7 +613,6 @@
|
|||
const handlerDrawLineString = () => {
|
||||
mp.draw('LineString');
|
||||
mp.on('LineString', function (e) {
|
||||
console.log("eee",e);
|
||||
Modal.confirm({
|
||||
title:'是否确认分割图斑?',
|
||||
onCancel() {
|
||||
|
|
@ -638,8 +634,6 @@
|
|||
const handlerDrawPolygon = () => {
|
||||
mp.draw('Polygon');
|
||||
mp.on('Polygon', function (e) {
|
||||
|
||||
console.log("eeeee123",e);
|
||||
let coordinates = [];
|
||||
e?.forEach((item,index)=>{
|
||||
coordinates?.push([item.lng,item.lat]);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
<div
|
||||
id="form-container"
|
||||
@mousemove="onFormContainerMouseOver"
|
||||
style="position: relative"
|
||||
:class="mapConfig?.isShowMap ? 'form-container' : ''"
|
||||
>
|
||||
|
|
@ -976,6 +977,11 @@
|
|||
onBeforeMount(() => {
|
||||
getTaskInfo();
|
||||
});
|
||||
|
||||
|
||||
function onFormContainerMouseOver(event){
|
||||
|
||||
}
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
::v-deep .ant-tabs-nav-wrap {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<div style="position: absolute; right:160px; bottom: 20px; z-index:1;">
|
||||
<div :class="`button-item ${buttonSelect == 1? 'button-select': ''}`" style="margin-bottom: 10px" @click="changeLayer(1)">导航地图</div>
|
||||
<div :class="`button-item ${buttonSelect == 2? 'button-select': ''}`" style="margin-bottom: 10px" @click="changeLayer(2)">卫星地图</div>
|
||||
<div :class="`button-item ${buttonSelect == 3? 'button-select': ''}`" @click="changeLayer(3)">航飞影像</div>
|
||||
<!-- <div :class="`button-item ${buttonSelect == 3? 'button-select': ''}`" @click="changeLayer(3)">航飞影像</div> -->
|
||||
</div>
|
||||
|
||||
<div class="legend">
|
||||
|
|
|
|||
|
|
@ -52,13 +52,13 @@ const initMap = () => {
|
|||
],
|
||||
tileSize: 256,
|
||||
},
|
||||
'raster-tiles-geo': {
|
||||
type: 'raster',
|
||||
tiles: [
|
||||
VITE_GLOB_YINGXIANG_SERVER,
|
||||
],
|
||||
tileSize: 256,
|
||||
}
|
||||
// 'raster-tiles-geo': {
|
||||
// type: 'raster',
|
||||
// tiles: [
|
||||
// VITE_GLOB_YINGXIANG_SERVER,
|
||||
// ],
|
||||
// tileSize: 256,
|
||||
// }
|
||||
},
|
||||
layers: [
|
||||
{
|
||||
|
|
@ -73,11 +73,11 @@ const initMap = () => {
|
|||
source: 'raster-tiles',
|
||||
maxZoom:32,
|
||||
},
|
||||
{
|
||||
id: 'tdt-wms-tiles',
|
||||
type: 'raster',
|
||||
source: 'raster-tiles-geo',
|
||||
},
|
||||
// {
|
||||
// id: 'tdt-wms-tiles',
|
||||
// type: 'raster',
|
||||
// source: 'raster-tiles-geo',
|
||||
// },
|
||||
],
|
||||
},
|
||||
maxZoom: 22,
|
||||
|
|
@ -517,7 +517,7 @@ function handlerLoadMaskLayer(){
|
|||
},
|
||||
paint: {
|
||||
'fill-color': '#ffffff',
|
||||
'fill-opacity': 0.8 /* 透明度 */,
|
||||
'fill-opacity': 1 /* 透明度 */,
|
||||
},
|
||||
layout: {
|
||||
visibility: 'visible',
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ const initMap = () => {
|
|||
}
|
||||
],
|
||||
},
|
||||
maxZoom:22,
|
||||
maxZoom:24,
|
||||
minZoom:8,
|
||||
zoom: 10,
|
||||
pitch:0,
|
||||
|
|
@ -317,7 +317,10 @@ function handlerLoadMaskLayer(){
|
|||
|
||||
// 加载热力图图斑数据
|
||||
function handlerLoadHeatLayer(heatdata){
|
||||
console.log("heatdata123",heatdata);
|
||||
// console.log("heatdata123",heatdata);
|
||||
// heatdata.features = heatdata.features.slice(0,2000);
|
||||
// let rediusProportion = heatdata.features.length/333;
|
||||
|
||||
if(map.getSource("heatSource")){
|
||||
map.getSource("heatSource").setData(heatdata);
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -58,6 +58,8 @@
|
|||
`http://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${TINADITU_TOKEN}`,
|
||||
],
|
||||
tileSize: 256,
|
||||
minzoom:0,
|
||||
maxzoom:15,
|
||||
},
|
||||
yingxiang: {
|
||||
type: 'raster',
|
||||
|
|
@ -66,6 +68,8 @@
|
|||
// 'http://175.27.168.120:8080/geoserver/feixian/wms?service=WMS&version=1.1.0&request=GetMap&layers=feixian:yingxiang&styles=&bbox={bbox-epsg-3857}&width=256&height=256&srs=EPSG:3857&format=image/png&TRANSPARENT=TRUE'
|
||||
],
|
||||
tileSize: 256,
|
||||
minzoom:13,
|
||||
maxzoom:24,
|
||||
},
|
||||
},
|
||||
layers: [
|
||||
|
|
@ -84,6 +88,8 @@
|
|||
layout: {
|
||||
visibility: 'visible',
|
||||
},
|
||||
maxzoom:15,
|
||||
minzoom:0
|
||||
},
|
||||
{
|
||||
id: 'yingxiang',
|
||||
|
|
@ -92,6 +98,8 @@
|
|||
layout: {
|
||||
visibility: 'visible',
|
||||
},
|
||||
minzoom:13,
|
||||
maxzoom:24
|
||||
},
|
||||
{
|
||||
id: 'dianzi',
|
||||
|
|
|
|||
Loading…
Reference in New Issue