0
我是Angular 2中的新成員,並且我正在用openstreet map構建儀表板應用程序,因此我使用這個Angular2-openlayer。Angular 2 + Openlayers沒有SourceVectorComponent的提供商
當我嘗試實施這一代碼
<aol-map [width]="'100%'">
<aol-view [zoom]="4.98">
<aol-coordinate [x]="118.015776" [y]="-2.600029" [srid]="'EPSG:4326'"></aol-coordinate>
</aol-view>
<aol-layer-tile>
<aol-source-osm></aol-source-osm>
</aol-layer-tile>
<aol-feature>
<aol-geometry-point>
<aol-coordinate [x]="5" [y]="45" [srid]="'EPSG:4326'"></aol-coordinate>
</aol-geometry-point>
<aol-style>
<aol-style-circle [radius]="10">
<aol-style-stroke [color]="'black'" [width]="2"></aol-style-stroke>
<aol-style-fill [color]="'green'"></aol-style-fill>
</aol-style-circle>
</aol-style>
</aol-feature>
</aol-map>
我有這個錯誤
無提供SourceVectorComponent!
你們能幫我解答嗎?
另外,如果你們有更多的例子使用這個插件,我真的很感激,如果你給我一些鏈接。
感謝
感謝您的回覆, btw我不再使用這個組件,我使用本地的開發者。 所以,我無法測試你的答案,但謝謝。 如果有人得到這個答案有幫助,不要忘記投票。 – bagas