Angular 角度2+;Openlayers没有SourceVectorComponent的提供程序
我是Angular 2的新手,我正在用openstreet map构建仪表板应用程序,因此我使用这个 当我尝试实现此代码时Angular 角度2+;Openlayers没有SourceVectorComponent的提供程序,angular,openlayers,Angular,Openlayers,我是Angular 2的新手,我正在用openstreet map构建仪表板应用程序,因此我使用这个 当我尝试实现此代码时 <aol-map [width]="'100%'"> <aol-view [zoom]="4.98"> <aol-coordinate [x]="118.015776" [y]="-2.600029" [srid]="'EPSG:4326'"></aol-coordinate>
<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没有提供程序
你们能帮我一下吗
而且,如果你们有更多的例子使用这个插件,我真的很感谢你们给我一些链接
谢谢我不知道您是否还在寻找答案,但我遇到了同样的错误并解决了它 您必须将aol功能放在2个标记(aol层向量和aol源向量)内
希望有帮助 谢谢你的回复,顺便说一句,我不再使用这个组件了,我使用的是原生openlayer。所以,我不能测试你的答案,但谢谢。如果有人认为这个答案有帮助,别忘了投赞成票。
<aol-layer-vector>
<aol-source-vector>
//your <aol-feature> here
</aol-source-vector>
</aol-layer-vector>