This commit is contained in:
shijing 2022-06-28 14:18:13 +08:00
parent c3ad6cbac9
commit 20546f91cb
3 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -337,7 +337,7 @@
}
});
window.map.addControl(drawTool2);
// this.boxMaskerLayer();
this.boxMaskerLayer();
this.pointMaskerLayer();
});
window.map.on('mapClickNode', event => {
@ -417,9 +417,9 @@
this.showPointMarkers();
},
showPointMarkers(){
let tool = new jsmap.JSMapCoordTool(window.map);
/*let tool = new jsmap.JSMapCoordTool(window.map);
let coordinate = {x:114.63128751408715,y:38.81306617819082};
let pixel = tool.mapToScreenCoordinate(coordinate);
let pixel = tool.mapToScreenCoordinate(coordinate);*/
let pointMarker = new jsmap.JSPointMarker({
id:'point1',
color: '#00FF00', //
@ -491,11 +491,11 @@
}
}
debugger;
/*if(this.markList[5]){
if(this.markList[5]){
this.boxMarkerLayer.show=true;
}else{
this.boxMarkerLayer.show=false;
}*/
}
if(this.markList[2]){
this.pointMarkerLayer.show=true;
}else{