1.1.0 • Published 5 years ago

@agm/js-marker-clusterer v1.1.0

Weekly downloads
10,348
License
MIT
Repository
github
Last release
5 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-_agmsprintteksprinttek-cardssprinttek-dev-templatessprinttek-dev-templates-cardssprinttek-dev-templates-redsprinttek-redsprinttek-templatessprinttek-templates-1sprinttek-templates-cadssprinttek-templates-cardingsprinttek-templates-cardssprinttek-templates-jursprinttek-templates-namsprinttek-templates-nambriasprinttek-templates-redsprinttek-templates-yowsprinttek-templates0cardssprinttek-templatesssprinttek-templatessxsprinttek-templatesx1sprinttektestsprinttektest1timothy.cruztimothy.cruz638timothy.cruz639@everything-registry/sub-chunk-33abp-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-habp-zero-template-hiabp-zero-template-hijabp-zero-template-hjkabp-zero-template-hubabp-zero-template-iabp-zero-template-ijabp-zero-template-ijbabp-zero-template-ijkabp-zero-template-jabp-zero-template-jkabp-zero-template-jklabp-zero-template-kabp-zero-template-klabp-zero-template-klmabp-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-babp-zero-template-bcabp-zero-template-bcdabp-zero-template-bnmabp-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-antech-jpacsabp-jpacs-214abp-jpacs357abp-jpacs362abp-jpacs363abp-jpacs364abp-jpacs394
1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-beta.7

5 years ago

1.0.0-beta.6

6 years ago

1.0.0-beta.5

6 years ago

1.0.0-beta.4

6 years ago

1.0.0-beta.3

7 years ago

1.0.0-beta.2

7 years ago

1.0.0-beta.1

7 years ago