1
내 프로젝트에 Openlayers 지시문을 사용하고 있습니다. 지도에서 지오메트리를 그릴 수 있었으므로 이제 확대하고 싶습니다.angular - openLayers : 지오메트리 확대
나는이 example을 보았고 정확하게하고 싶습니다 (가장 잘 맞는 부분). 하지만 Angular Directive를 사용하는 방법을 모르겠습니다.
_this.perimeterLayer = {
source: {
type: 'GeoJSON',
geojson: {
object: {
type: 'Feature',
geometry: {
type: 'Polygon',
coordinates: transformedCoords
}
}
}
},
style: new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'blue',
width: 3
}),
fill: new ol.style.Fill({
color: 'rgba(0, 0, 255, 0.1)'
})
})
};
를 어떻게 난 내보기에서 사용 :
여기 내 계층 내 구성 요소 컨트롤러의
<ol-layer ol-layer-properties="$ctrl.perimeterLayer"></ol-layer>
당신이 날 도와 드릴까요?
많이!