This commit is contained in:
Yq 2025-01-16 16:44:45 +08:00
commit e8712c38f5
3 changed files with 0 additions and 5 deletions

View File

@ -183,7 +183,6 @@ const drawQuYu = (zbs, collorStr) => {
// radiusInMeters
const drawCircle = (center, type, radiusInMeters = 3000) => {
console.log(type)
const steps = 64
const coordinates = [];
for (let i = 0; i < steps; i++) {
@ -201,7 +200,6 @@ const drawCircle = (center, type, radiusInMeters = 3000) => {
//
const drawPrjIcon = (data) => {
console.log(data);
const dian = []
for (const datum of data) {
dian.push({
@ -228,7 +226,6 @@ const openInfo = e => {
popupDOM.remove()
}
const data = e.features[0].properties
console.log(data)
setTimeout(() => {
popupDOM.setLngLat([Number(data.lon), Number(data.lat)]).setHTML(`<di>${data.name == 'null' ? '数据暂无' : data.name}</div>`).addTo(map)
}, 100)

View File

@ -47,7 +47,6 @@ const initMap = async () => {
const initData = async () => {
const {data} = await getJiShuYuJingApi()
let layerData = []
console.log(data);
for (const jgObj of data) {
layerData.push({type: 'Feature', geometry: {type: 'Point', coordinates: [Number(jgObj.lon), Number(jgObj.lat)]}, properties: {text: jgObj.sum}})
}

View File

@ -47,7 +47,6 @@ const initMap = async () => {
const initData = async () => {
const {data} = await getJiShuYuJingApi()
let layerData = []
console.log(data);
for (const jgObj of data) {
layerData.push({type: 'Feature', geometry: {type: 'Point', coordinates: [Number(jgObj.lon), Number(jgObj.lat)]}, properties: {text: jgObj.sum}})
}