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-33chay-templateabp-jpacs-214abp-jpacs357abp-jpacs362abp-jpacs363abp-jpacs364abp-jpacs394abp-jpacs395abp-jpacs477abp-jpacs478abp-jpacs520abp-antech-jpacsabp-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-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-cardsabp-zero-jpacs04abp-zero-jpacs10abp-zero-jpacs11abp-zero-jpacs2abp-zero-manualabp-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-ralphrabp-zero-template-ralphraabp-zero-template-raraabp-zero-template-redabp-zero-template-redsabp-zero-template-reeseabp-zero-template-reesesabp-zero-template-reesesesabp-zero-template-resaabp-zero-template-resaaabp-zero-template-resaaaabp-zero-template-resaaaaabp-zero-template-rr2abp-zero-template-rr3abp-zero-template-rr4abp-zero-template-rr6abp-zero-template-rr7abp-zero-template-rr8abp-zero-template-rralpabp-zero-template-lmabp-zero-template-lmnabp-zero-template-mabp-zero-template-manual-publish
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

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

7 years ago

1.0.0-beta.1

7 years ago