npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

angular-google-maps-v2

v4.0.0-beta.29

Published

Angular components for Google Maps

Readme

AGM - Angular Google Maps

Angular Google Maps (AGM) v2

Angular Google Maps (AGM) is a set of Angular components for Google Maps. This version is specifically designed to work with Angular 19 and provides a modern, type-safe way to integrate Google Maps into your Angular applications.

Features

  • 🗺️ Full Google Maps JavaScript API support
  • 📍 Markers, Info Windows, and Custom Controls
  • 🎯 Drawing Tools (Polygons, Polylines, Circles)
  • 📊 Marker Clustering
  • 🎨 Custom Styling
  • 🔄 Real-time Updates
  • 📱 Responsive Design
  • 🚀 Standalone Components Support
  • ⚡ Angular 19 Compatibility

Installation

# Install the core package
npm install @babluroy/[email protected]

# Optional packages
npm install @babluroy/[email protected]
npm install @babluroy/[email protected]
npm install @babluroy/[email protected]

Quick Start

1. Get a Google Maps API Key

First, you need to get a Google Maps API key from the Google Cloud Console.

2. Import the Module

For Standalone Components (Recommended for Angular 19)

import { Component } from '@angular/core';
import { AgmCoreModule } from '@babluroy/agm-core';

@Component({
  selector: 'app-map',
  standalone: true,
  imports: [
    AgmCoreModule.forRoot({
      apiKey: 'YOUR_GOOGLE_MAPS_API_KEY'
    })
  ],
  template: `
    <agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom">
      <agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
    </agm-map>
  `,
  styles: [`
    agm-map {
      height: 400px;
      width: 100%;
    }
  `]
})
export class MapComponent {
  lat = 51.678418;
  lng = 7.809007;
  zoom = 8;
}

For NgModules

import { NgModule } from '@angular/core';
import { AgmCoreModule } from '@babluroy/agm-core';

@NgModule({
  imports: [
    AgmCoreModule.forRoot({
      apiKey: 'YOUR_GOOGLE_MAPS_API_KEY'
    })
  ]
})
export class AppModule { }

Demo Project

Check out our demo project that showcases various features of AGM with Angular 19: AGM Demo Angular Project

The demo includes:

  • Basic map integration
  • Custom markers and info windows
  • Drawing tools
  • Marker clustering
  • Custom styling
  • Event handling
  • And more!

Advanced Usage

Custom Styling

const mapStyles = [
  {
    "featureType": "all",
    "elementType": "geometry",
    "stylers": [{"color": "#f5f5f5"}]
  }
];

// In your template
<agm-map [styles]="mapStyles">

Marker Clustering

import { AgmMarkerClustererModule } from '@babluroy/agm-markerclusterer';

@Component({
  // ...
  imports: [AgmMarkerClustererModule],
  template: `
    <agm-map [latitude]="lat" [longitude]="lng">
      <agm-marker-cluster>
        <agm-marker *ngFor="let marker of markers"
          [latitude]="marker.lat"
          [longitude]="marker.lng">
        </agm-marker>
      </agm-marker-cluster>
    </agm-map>
  `
})

Drawing Tools

import { AgmDrawingModule } from '@babluroy/agm-drawing';

@Component({
  // ...
  imports: [AgmDrawingModule],
  template: `
    <agm-map [latitude]="lat" [longitude]="lng">
      <agm-drawing-manager
        [drawingMode]="'polygon'"
        [drawingControl]="true">
      </agm-drawing-manager>
    </agm-map>
  `
})

Environment Configuration

Create or update your environment files:

// src/environments/environment.ts
export const environment = {
  production: false,
  googleMapsApiKey: 'YOUR_GOOGLE_MAPS_API_KEY'
};

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • IE 11 (with polyfills)

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Related Projects

Website | Demo | Twitter | Chat | API Documentation

Build Status Questions?: join the chat npm version supported angular versions: 9+

Packages

This project is a mono repo and hosts multiple packages:

| Package | Downloads | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- | | @babluroy/core | @babluroy/core | | @babluroy/snazzy-info-window | @babluroy/snazzy-info-window | | @babluroy/markerclusterer | @babluroy/markerclusterer | | @babluroy/drawing | @babluroy/drawing |

Playing with AGM (Angular Google Maps)

If you just want to play with AGM and don't want to set up a full project, you can use the following Plunker. It has all the dependencies to play with Angular, Typescript and of course AGM:

» Play with Angular Google Maps on Stackblitz