Current collected state Current
Observed since 20 Oct, 21:53 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@007.surajit2023/agm-markerclusterer
Angular Google Maps (AGM) extension for markerclusterer support
this package levereges the @google/markerclustererplus to add clustering support to AGM.
@agm/markerclusterer has a peer depedency on markerclustererplus
npm install @google/markerclustererplus @agm/markerclusterer --save
# or
yarn add @google/markerclustererplus @agm/markerclusterer
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"}
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 { }
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>
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
tslibEnvironment{
"local_name": "tslib",
"alias": false,
"peer_metadata": null
} | ^2.0.0 | runtime |
@007.surajit2023/agm-coreEnvironment{
"local_name": "@007.surajit2023/agm-core",
"alias": false,
"peer_metadata": null
} | 15.0.0 | peer |
@angular/commonEnvironment{
"local_name": "@angular/common",
"alias": false,
"peer_metadata": null
} | ^15.0.0 | peer |
@angular/coreEnvironment{
"local_name": "@angular/core",
"alias": false,
"peer_metadata": null
} | ^15.0.0 | peer |
@google/markerclustererplusEnvironment{
"local_name": "@google/markerclustererplus",
"alias": false,
"peer_metadata": null
} | ^5.0.4 | peer |
Source distribution
{
"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"
}
]
}Shared repository data · GitHub
Observed since 20 Oct, 21:53 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:ce626fccee44e5fdf826bd5caea3ec43b488f4036514d1f061138d93646bd680