NPM角图bing聚类

时间:2018-03-09 16:22:17

标签: maps bing-maps bing markerclusterer

使用角度贴图(https://www.npmjs.com/package/angular-maps)模块,但未找到有关如何聚类标记的任何文档。据说它支持Bing聚类,但我不能让它工作。它是在IBOX上设置的选项还是直接在x-marker指令上设置的布尔值?

this.iBox = IBox;

this._options = {
    disableBirdseye: true,
    disableStreetside: true,
    navigationBarMode: 1,
    //center: 'Microsoft.Maps.Location(54, -4)',
    mapTypeId: 'Microsoft.Maps.MapTypeId.aerial',
    zoom: 2,
    disableScrollWheelZoom: true
};

this._box  = {
  maxLatitude: 48,
  maxLongitude: -86,
  minLatitude: 28,
  minLongitude: -98
  //center: 'Microsoft.Maps.Location(54, -4)',
};
 <div id="myMap" style='width: 100%; height: 400px;'>
    <x-map #xmap [Options]="_options" [Box]="_box">
        <x-map-marker *ngFor="let marker of dataGrid" [Latitude]="marker.Latitude" [Longitude]="marker.Longitude" [IconInfo]="_iconInfo">
            <x-info-box [DisableAutoPan]="true" [Title]="marker.L_NAME">
                <x-info-box-action [Label]="'Click Me'" (ActionClicked)="_click()"></x-info-box-action>
            </x-info-box>
        </x-map-marker>
    </x-map>
</div>

0 个答案:

没有答案