|
|
@ -262,6 +262,7 @@ const OlMap = (props) => { |
|
|
|
selectStyle: { stroke: { width: 8, color: '#9933FF' } }, |
|
|
|
layerName: 'geometry' + index++ |
|
|
|
}); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -567,7 +568,7 @@ const OlMap = (props) => { |
|
|
|
layerName: 'geometry_build_road_' + renderIndex |
|
|
|
}); |
|
|
|
|
|
|
|
//
|
|
|
|
// 获取线条点位
|
|
|
|
console.log(olMap, olMap.olLayer) |
|
|
|
let feat = olMap.olLayer.geometryLayers['geometry_build_road_' + renderIndex].getSource().getFeatures() |
|
|
|
if (feat.length > 0) { |
|
|
@ -576,6 +577,8 @@ const OlMap = (props) => { |
|
|
|
console.log(start); |
|
|
|
roadPointPosition = start |
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -859,7 +862,7 @@ const OlMap = (props) => { |
|
|
|
<Carousel autoplay > |
|
|
|
{ |
|
|
|
r.scenePic?.map(v => <img className='picfileimg_' |
|
|
|
style={{ width: 80,maxHeight:70,height:70, display: 'inline-block', }} |
|
|
|
style={{ width: 80, maxHeight: 70, height: 70, display: 'inline-block', }} |
|
|
|
src={ |
|
|
|
v.startsWith("http") ? v : |
|
|
|
`${localStorage.getItem("qndmn")}/${v}` |
|
|
|