Javascript 使用角度openlayers指令(ol3)为标记创建群集层

Javascript 使用角度openlayers指令(ol3)为标记创建群集层,javascript,angularjs,angularjs-directive,openlayers-3,Javascript,Angularjs,Angularjs Directive,Openlayers 3,我正在使用来自的Angular Openlayers指令来制作一个简单的地图应用程序。我正在尝试使用ol layer指令创建群集层,该指令使用ol marker with ng repeat创建群集标记: <body ng-app="theApp" ng-Controller="appController as appCtrl"> ... <ol-layer ol-layer-properties="appCtrl.clusterProp"></ol-layer&g

我正在使用来自的Angular Openlayers指令来制作一个简单的地图应用程序。我正在尝试使用ol layer指令创建群集层,该指令使用ol marker with ng repeat创建群集标记:

<body ng-app="theApp" ng-Controller="appController as appCtrl">
...
<ol-layer ol-layer-properties="appCtrl.clusterProp"></ol-layer>
<ol-marker ng-repeat="marker in appCtrl.markers"></ol-marker>
...
问题是没有直接的方法将向量层传递到clusterProp对象,这与中的层聚类示例不同

集群功能对我的应用程序非常重要,但ol marker的HTML弹出功能也是如此。如果可能的话,我不想放弃使用这个angular openlayers指令库


有人成功地将ol marker与集群ol层结合起来了吗?

我还没有开始使用集群(我可能很快就会需要它),但我对框架云弹出式集成非常感兴趣。如果有任何机会,你实现了类似的东西,并希望交换数字,请联系。
var vm = this;
...
vm.clusterProp = {
clustering: true,
clusteringDistance: 40,
source: {
    type: 'Vector'//Does not work
    //What else to put here?
}
};