1.1.0 • Published 4 years ago

@agm/js-marker-clusterer v1.1.0

Weekly downloads
10,348
License
MIT
Repository
github
Last release
4 years ago

Marker Clusterer for AGM


this package levereges the js-marker-clusterer to add clustering support to AGM.

Installation

@agm/js-marker-clusterer has a peer depedency on js-marker-clusterer

npm install js-marker-clusterer @agm/js-marker-clusterer --save
# or
yarn add js-marker-clusterer @agm/js-marker-clusterer

Usage

  1. Import the module

    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    import { AppComponent } from './app.component';
    
    // add these imports
    import { AgmCoreModule } from '@agm/core';
    import { AgmJsMarkerClustererModule } from '@agm/js-marker-clusterer';
    
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        AgmCoreModule.forRoot({
          apiKey: ['YOUR_API_KEY_HERE']
        }),
        AgmJsMarkerClustererModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
  2. use it in your template

    <agm-map style="height: 300px" [latitude]="51.673858" [longitude]="7.815982">
      <agm-marker-cluster imagePath="https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markerclustererplus/images/m">
        <agm-marker [latitude]="51.673858" [longitude]="7.815982">
        </agm-marker><!-- multiple markers -->
      </agm-marker-cluster>
    </agm-map>
abp-zero-templates-gabp-zero-template-gmanualabp-zero-templat-gabp-zero-template-g@infinitebrahmanuniverse/nolb-_agmchay-templateabp-zero-cardsabp-zero-jpacs04abp-zero-jpacs10abp-zero-jpacs11abp-zero-jpacs2abp-zero-manualabp-zero-manual-publishabp-zero-sprinthubtestingabp-zero-sprinthubtesting2abp-zero-templat-cardsabp-zero-template-aabp-zero-template-ababp-zero-template-abcabp-zero-template-asdabp-zero-template-babp-zero-template-bcabp-zero-template-bcdabp-zero-template-bnmabp-jpacs-214abp-jpacs357abp-jpacs362abp-jpacs363abp-jpacs364abp-jpacs394abp-jpacs395abp-jpacs477abp-jpacs478abp-jpacs520abp-antech-jpacsabp-zero-template-cabp-zero-template-cardingabp-zero-template-cardsabp-zero-template-ccmcabp-zero-template-cdabp-zero-template-cdeabp-zero-template-chayabp-zero-template-chay1abp-zero-template-cpabp-zero-template-dabp-zero-template-deabp-zero-template-defabp-zero-template-eabp-zero-template-efabp-zero-template-efgabp-zero-template-efraiabp-zero-template-fabp-zero-template-fgabp-zero-template-fghabp-zero-template-ghabp-zero-template-ghiabp-zero-template-habp-zero-template-hiabp-zero-template-hijabp-zero-template-hjkabp-zero-template-hubabp-zero-template-iabp-zero-template-jklabp-zero-template-kabp-zero-template-klabp-zero-template-klmabp-zero-template-komabp-zero-template-labp-zero-template-lmabp-zero-template-lmnabp-zero-template-mabp-zero-template-manual-publishabp-zero-template-mlpabp-zero-template-mnabp-zero-template-mnoabp-zero-template-mokabp-zero-template-nabp-zero-template-noabp-zero-template-nopabp-zero-template-oabp-zero-template-okmabp-zero-template-oknabp-zero-template-opabp-zero-template-opqabp-zero-template-pabp-zero-template-pcabp-zero-template-plmabp-zero-template-polabp-zero-template-pqabp-zero-template-pqrabp-zero-template-preroabp-zero-template-qrabp-zero-template-qrsabp-zero-template-qweralabp-zero-template-qwertyabp-zero-template-qwertyuabp-zero-template-qwertyuiabp-zero-template-rabp-zero-template-ralph3abp-zero-template-ralphr
1.1.0

4 years ago

1.0.0

5 years ago

1.0.0-beta.7

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.5

6 years ago

1.0.0-beta.4

6 years ago

1.0.0-beta.3

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

7 years ago