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-gmaps

v1.0.2

Published

Angular Gmaps is a library that make google maps integration easier with angular

Readme

Angular Gmaps

Angular Gmaps is a library that make google maps integration easier with angular

Getting started

Import angular gmaps module into your app's module:

import {NgModule} from '@angular/core';
import {DrappMapsModule, AgGeocodeApiService} from 'angular-gmaps';
@NgModule({
 imports: [DrappMapsModule.forRoot({
	     apiKey: '<MAPS_API_KEY>',
	     apiUrl: '<MAPS_API_URL>'
     )],
 providers: [
	     // You can provide here a different service for google autocomplete locations
	     { provide: FORM_GEOCODE_AUTOCOMPLETE, useClass: AgGeocodeApiService }
     ]
 })
 export class AppModule{}

Finally connect the component in template:

 <ag-drapp-maps #agMap [darkMode]="true" [center]="{ lat: 0.00, lng: 0.00 }">
	 <ag-markers-list>
		 <ag-map-marker #ag-marker
				 [showInfo]="true"
				 [active]="true"
				 [animation]="0"
				 [label]="{ text: 'D', color: 'white' }"
				 [position]="{ lat: 3.00, lng: 3.00 }">
			 <ag-info-window [title]="'window title'" [content]="'hellow world'">
				 <p>more content</p>
			 </ag-info-window>
		 </ag-map-marker>
		 <ag-draw-direction [start]="startLocation"
				    [end]="endLocation">
	     </ag-draw-direction>
	 </ag-markers-list>
 </ag-drapp-maps>

Documentation

API reference for Angular Gmaps

import { DrappMapsModule } from 'angular-gmaps';

AgMapsComponent

Component responsible for managing the map

Selector: ag-drapp-maps

Properties

| Name | Description | |------|-------------| | @Input() darkMode: boolean| If is set to true the maps will have the dark mode styles applied. Default is false | | @Input() center: MapCoordinates| Map coordinates object "{ lat: 0.00, lng: 0.00 }" | | @Input() zoom: number| Maps zoom as a number. Default is "12" | @Input() zoomControl: boolean| Boolean flag which enables zooming buttons on the map | | @Input() zoomControlOptions : object | Zoom default configuration Default: "{ style: 1, position: 9 }"| | @Input() disableDefaultUI: boolean | Disable google maps default UI option. Default is 'true' | | @Input() mapTypeId: MapTypeEnum | Map types, choose one of ('roadmap', 'hybrid', 'satellite', 'terrain'). Default is 'roadmap' |

AgMapMarkerComponent

Component responsible for managing the map markers

Selector: ag-map-marker

Properties

| Name | Description | |------|-------------| | @Input() draggable: boolean| Ability to move the marker on the map. Default is false | | @Input() position: MapCoordinates| Map coordinates object "{ lat: 0.00, lng: 0.00 }" | | @Input() label: string | Marker label | @Input() animation: number| Google maps supported animations. Default is 2| | @Input() icon: MarkerIcon or MarkerPath | Icon url to render instead of the default icons for markers| | @Input() active: boolean | Flag to enable or disable the marker | | @Input() showInfo: boolean| Enable or disable info tooltip when clicking the marker |

AgDrawDirectionComponent

Component responsible for managing the directions between two points on the map

Selector: ag-draw-direction

Properties

| Name | Description | |------|-------------| | @Input() start: MapCoordinates| Map coordinates object "{ lat: 0.00, lng: 0.00 }" | | @Input() end: MapCoordinates| Map coordinates object "{ lat: 0.00, lng: 0.00 }" | | @Input() waypoints: AgWayPoints[] | Array of coordinates for stop points { location: AgCoordinates, stopover: boolean }|

AgInfoWindowComponent

Component responsible for managing the tooltip for markers on the map

Selector: ag-info-window

Properties

| Name | Description | |------|-------------| | @Input() title: string| Tooltip title | | @Input() content: string| Tooltip content| | @ViewChild() customContent: ElementRef | Custom content of the tooltip (template/component etc)|

Development

Prepare your environment

Install local dev dependencies: npm install while current directory is this repo.

Development server

Run npm start to start a development server on a port 4200.

Open http//:localhost:4200 on your browser.

Tests

Run npm test to run tests once or npm run test:watch to continually run tests.

License

MIT