# @duxor/agm-markerclusterer

> Angular Google Maps (AGM) extension for markerclusterer support

Latest version **18.0.0** (published 2024-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @duxor/agm-markerclusterer
pnpm add @duxor/agm-markerclusterer
yarn add @duxor/agm-markerclusterer
bun add @duxor/agm-markerclusterer
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 18.0.0 |
| Published | 2024-09-05 |
| First published | 2024-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 94.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jens Fahnenbruck |
| Maintainers | duxor |
| Keywords | angular-google-maps, angular, markerclusterer, google-maps, agm |

## Links

- npm: https://www.npmjs.com/package/@duxor/agm-markerclusterer
- Repository: https://github.com/duxor/angular-google-maps
- Homepage: https://angular-maps.com
- Issues: https://github.com/SebastianM/angular-google-maps/issues
- npm.io page: https://npm.io/package/@duxor/agm-markerclusterer

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 18.0.0 (latest) — 2024-09-05
- 17.0.3 — 2024-03-10
- 17.0.2 — 2024-03-10
- 17.0.1 — 2024-03-10
- 17.0.0 — 2024-03-10

## README

# Marker Clusterer for AGM

-----

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

## Installation

@duxor/agm-markerclusterer has a peer depedency on [markerclustererplus][markerclustererplus]

```shell
npm install @google/markerclustererplus @duxor/agm-markerclusterer --save
# or
yarn add @google/markerclustererplus @duxor/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:
    ```json
    {"input": "./node_modules/@google/markerclustererplus/images", "glob": "*", "output": "/images"}
    ```

2. Import the module

    ```typescript
    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    import { AppComponent } from './app.component';

    // add these imports
    import { AgmCoreModule } from '@duxor/agm-core';
    import { AgmMarkerClustererModule } from '@duxor/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

    ```html
    <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>
    ```


[markerclustererplus]: https://github.com/googlemaps/v3-utility-library/tree/master/markerclustererplus
[agm]: https://angular-maps.com/

---
_Source: https://npm.io/package/@duxor/agm-markerclusterer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
