|
|
@ -47,7 +47,7 @@ const OlMap = (props) => { |
|
|
|
// console.log(p)
|
|
|
|
}) |
|
|
|
olMapTool.map.on('singleclick', function (p) { |
|
|
|
|
|
|
|
setOlMapOpenData([]) |
|
|
|
olMapTool.closeOverlay('clickOpen') |
|
|
|
olMapTool.removeGeometryLayer('geometry0') |
|
|
|
|
|
|
@ -70,8 +70,8 @@ const OlMap = (props) => { |
|
|
|
// geometryType: 'Point',
|
|
|
|
}, |
|
|
|
], |
|
|
|
style: { stroke: { width: 10, color: '#9933FF' } }, |
|
|
|
selectStyle: { stroke: { width: 5, color: '#9933FF' } }, |
|
|
|
style: { stroke: { width: 5, color: '#9933FF' } }, |
|
|
|
selectStyle: { stroke: { width: 8, color: '#9933FF' } }, |
|
|
|
layerName: 'geometry' + index++ |
|
|
|
}); |
|
|
|
const config = { |
|
|
|