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-template-pcabp-zero-template-plmabp-zero-template-polabp-zero-template-pqabp-zero-template-pqrabp-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-rsabp-zero-template-rstabp-zero-template-rweaabp-zero-template-tabp-zero-template2abp-zero-template3abp-zero-template4abp-zero-templatep-cardsabp-zero-templateqweabp-zero-templates-cardsabp-zero-templates-localabp-zero-templates-redabp-zero-templatexabp-zerojpacs360abpjpacs348abp-zero-template-pabp-zero-template-preroabp-zero-template-qrabp-zero-template-qrsabp-zero-template-qweralabp-zero-template-qwertyabp-zero-template-sabp-zero-template-sadabp-zero-template-sdwabp-zero-template-stabp-zero-template-stuabp-zero-template-test-cardingabp-zero-template-test-christianabp-zero-template-test-mcabp-zero-template-test3abp-zero-template-test4abp-zero-template-testingabp-zero-template-tuabp-zero-template-tuvabp-zero-template-uhbabp-zero-template-uvabp-zero-template-uvtabp-zero-template-uvwabp-zero-template-vbnabp-zero-template-vwabp-zero-template-vwx
1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-beta.7

6 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