0
현재 goolge maps 각 구성 요소를 사용하고 있으며 다음과 같이 완벽하게 작동합니다.Google지도에 WellKnownText를 표시하는 방법
POLYGON ((y x,...))
받고있는 방법이 있나요 : 문제는
polygons: [{path: [{latitude: x, longitude: y },...]
하지만 WellKnownText에서
이 (WKT) 형식처럼 .... 내 데이터들이 어떤 사용하는 형식으로되지 않는 것입니다 대신에 WKT 형식을 표시하는 Google지도가 필요합니까? '이$scope.map = {
visible: false,
coordinates: _startingCoordinates,
zoom: _zoom,
bounds: {},
polygons: [{
path: [
{ latitude: 52.39786758957449, longitude: -9.951156616210937 },
{ latitude: 52.38278195910962, longitude: -9.848846435546875 },
{ latitude: 52.32028936800865, longitude: -9.855026245117187 },
{ latitude: 52.30517723258029, longitude: -9.896911621093750 },
{ latitude: 52.24635875956514, longitude: -9.868072509765625 },
{ latitude: 52.26863493471054, longitude: -9.999908447265625 },
{ latitude: 52.33749412738444, longitude: -9.986175537109375 },
{ latitude: 52.34714264824414, longitude: -10.05895996093750 }
],
fill: {
color: "#00f274",
opacity: 0.4
},
stroke: {
color: "#cacaca",
weight: 1,
opacity: .8
},
visible: true,
}]
};
는 아마 구글 API의 설정이나 옵션이처럼
<ui-gmap-google-map center="map.coordinates" zoom="map.zoom" options="options">
<ui-gmap-polygon
ng-repeat="poly in map.polygons"
path='poly.path'
fill='poly.fill'
stroke='poly.stroke'
clickable='poly.clickable'
draggable='poly.draggable'
editable='poly.editable'>
</ui-gmap-polygon>
</ui-gmap-google-map>
AngularJS와 컨트롤러가 보이는,하지만 난 할 수 있습니다
이
내가 현재 무엇을하고 완벽하게 잘 작동 찾지?
예 나는 그것이 괜찮은 방법이라고 생각했습니다. 단지 그것을 구현하는 깔끔한 방법이 있다고 생각했습니다. 감사 – DeclanMcD