Catalog npm
Back to packageRELEASE DETAILS

15.0.1

npm

@007.surajit2023/agm-markerclusterer

Angular Google Maps (AGM) extension for markerclusterer support

agmangularangular-google-mapsgoogle-mapsmarkerclusterer
Published3 Dec 2023
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

Marker Clusterer for AGM


this package levereges the @google/markerclustererplus to add clustering support to AGM.

Installation

@agm/markerclusterer has a peer depedency on markerclustererplus

npm install @google/markerclustererplus @agm/markerclusterer --save
# or
yarn add @google/markerclustererplus @agm/markerclusterer

Usage

  1. Add assets command to your angular.json In your angular.json file, go to projects/<yourproject>/architect/build/options/assets and add the following line:

    {"input": "./node_modules/@google/markerclustererplus/images", "glob": "*", "output": "/images"}
    
  2. 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 '@007.surajit2023/agm-core';
    import { AgmMarkerClustererModule } from '@agm/markerclusterer';
    
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        AgmCoreModule.forRoot({
          apiKey: ['YOUR_API_KEY_HERE']
        }),
        AgmMarkerClustererModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
    
  3. 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>
    

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
tslib
Environment
{
  "local_name": "tslib",
  "alias": false,
  "peer_metadata": null
}
^2.0.0runtime
@007.surajit2023/agm-core
Environment
{
  "local_name": "@007.surajit2023/agm-core",
  "alias": false,
  "peer_metadata": null
}
15.0.0peer
@angular/common
Environment
{
  "local_name": "@angular/common",
  "alias": false,
  "peer_metadata": null
}
^15.0.0peer
@angular/core
Environment
{
  "local_name": "@angular/core",
  "alias": false,
  "peer_metadata": null
}
^15.0.0peer
@google/markerclustererplus
Environment
{
  "local_name": "@google/markerclustererplus",
  "alias": false,
  "peer_metadata": null
}
^5.0.4peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-Lejzq+5+XY/2M59pp8YRN6LRugOk83LxR529dh/XBsRV/F28CF2SljBuZ5TZZX3e9vvo/QD5EPEMrf8FlJPqSg==",
  "shasum": "08fd63975b35704a30289de52044d836e642ec1c",
  "tarball": "https://registry.npmjs.org/@007.surajit2023/agm-markerclusterer/-/agm-markerclusterer-15.0.1.tgz",
  "fileCount": 20,
  "unpackedSize": 139092,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDtt05Sk6Vl7bu7Nu/7rOfgVb6IhwBAb7djXoYVHQ0mTAIhANt24/WZcrE/zVGTywhavquXm8GRV9f/y42qEIJLbZgY"
    }
  ]
}

Repository

PENDING
sebastianm/angular-google-maps

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:53 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ce626fccee44e5fdf826bd5caea3ec43b488f4036514d1f061138d93646bd680

Other collected versions

15.0.24 Dec15.0.03 DecView all collected versions →