
Security News
Knip Hits 500 Releases with v5.62.0, Improving TypeScript Config Detection and Plugin Integrations
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
@angular/google-maps
Advanced tools
@angular/google-maps is an Angular package that provides a set of Angular components and services for integrating Google Maps into Angular applications. It allows developers to easily add maps, markers, and other map-related functionalities to their Angular projects.
Displaying a Google Map
This feature allows you to display a basic Google Map in your Angular application. The map's height and width can be customized using the height and width attributes.
{
"template": "<google-map height='400px' width='750px'></google-map>",
"component": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-map',\n templateUrl: './map.component.html',\n styleUrls: ['./map.component.css']\n})\nexport class MapComponent {}"
}
Adding Markers to the Map
This feature allows you to add markers to the Google Map. The position of the marker is specified using latitude and longitude coordinates.
{
"template": "<google-map height='400px' width='750px'>\n <map-marker [position]="{lat: 37.421995, lng: -122.084092}"></map-marker>\n</google-map>",
"component": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-map',\n templateUrl: './map.component.html',\n styleUrls: ['./map.component.css']\n})\nexport class MapComponent {}"
}
Handling Map Events
This feature allows you to handle events on the Google Map, such as clicks. The example shows how to log the event details when the map is clicked.
{
"template": "<google-map height='400px' width='750px' (mapClick)='onMapClick($event)'></google-map>",
"component": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-map',\n templateUrl: './map.component.html',\n styleUrls: ['./map.component.css']\n})\nexport class MapComponent {\n onMapClick(event: google.maps.MapMouseEvent) {\n console.log('Map clicked', event);\n }\n}"
}
ngx-google-maps is an Angular package that provides components and services for integrating Google Maps into Angular applications. It offers similar functionalities to @angular/google-maps, such as displaying maps and adding markers, but with a different API and additional customization options.
The sources for this package are in the main Angular Material repo. Please file issues and pull requests against that repo.
License: MIT
20.0.0 "calcium-carrot" (2025-05-28)
SelectionModel.clear
now returns a boolean.SelectionModel.deselect
now returns a boolean.SelectionModel.select
now returns a boolean.SelectionModel.setSelection
now returns a boolean.SelectionModel.toggle
now returns a boolean.DIALOG_SCROLL_STRATEGY_PROVIDER
has been removed.DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY
has been removed.DragDropRegistry
is no longer generic.DragDropRegistry.scroll
has been removed. Use the scrolled
method instead.DomPortalHost
has been removed. Use DomPortalOutlet
instead.PortalInjector
has been removed. Use Injector.create
instead.PortalHost
has been removed. Use PortalOutlet
instead.BasePortalHost
has been removed. Use BasePortalOutlet
instead.Constructor
symbol has been removed.CanStickCtor
symbol has been removed.mixinHasStickyInput
has been removed. Implement the CanStick
interface instead.CanStick
has been removed.CDK_TABLE_TEMPLATE
has been removed.StickyDirection
has been removed.StickyStyler
has been removed.ButtonVariant
which is returned by MatButtonHarness.getVariant
no longer includes the appearance of the button. Use MatButtonHarness.getAppearance
instead.tabindex
values set as [attr.tabindex]
set on a Material button might not work as expected. Use tabindex
for static values, or [tabindex]
/[tabIndex]
for dynamic ones.MAT_CHECKBOX_REQUIRED_VALIDATOR
has been removed.MAT_CHECKBOX_VALUE_ACCESSOR
has been removed.MatCheckboxRequiredValidator
has been removed._MatCheckboxRequiredValidatorModule
has been removed.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER
has been removed.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY
has been removed.matSelectAnimations.transformPanelWrap
has been removed.MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR
has been removed.MAT_SLIDE_TOGGLE_VALUE_ACCESSOR
has been removed.MatSlideToggleRequiredValidator
has been removed._MatSlideToggleRequiredValidatorModule
has been removed.DialogConfig.componentFactoryResolver
has been removed.DomPortalOutlet
has changed.ComponentPortal.componentFactoryResolver
has been removed.ComponentPortal
has changed.MatDialogConfig.componentFactoryResolver
has been removed.| Commit | Type | Description | | -- | -- | -- | | e456c751c | feat | listbox: add cdk-active class (#30932) | | 6ac4c1ae2 | feat | listbox: readonly mode (#30803) | | 96fa9fc55 | feat | popover-edit: Support skipping over annotated rows when the user moves focus up/down. (#30916) | | 025010b64 | feat | tabs: add cdk-active class and update example styles (#30950) | | 9a94bb76a | feat | tabs: support initial tab selection and add unit tests (#31023) | | 1833aa32e | feat | ui-patterns: add expansion behavior and refactor tabs (#30962) | | fc4699744 | feat | ui-patterns: listbox ui pattern (#30495) | | 9caed2a8a | feat | ui-patterns: tabs ui pattern (#30568) | | e0446ecfc | fix | listbox: change shift+nav behavior (#30854) | | 184ceee3a | fix | listbox: ignore spaces during typeahead (#30766) | | 44e9ccbf5 | fix | listbox: initial listbox focus state (#30764) | | a7df65f3e | fix | listbox: use meta as alternative to ctrl (#30852) | | 149fe6129 | fix | popover-edit: use MutationObserver to detect table rows (#30713) | | 16493ecab | fix | scrolling: Fix ExpressionChangedAfterItWasCheckedError (#31076) | | 0e391700c | fix | tabs: handle space and enter events (#30889) | | 2e34b20cb | fix | ui-patterns: add missing event handlers (#30786) | | 4bf3591c7 | fix | ui-patterns: add modifier checks for regexps (#30738) | | ae8f9dd28 | fix | ui-patterns: fix lint and build config (#30877) | | 10890983c | fix | ui-patterns: listbox pointer event handler (#30843) | | 7343657f5 | fix | ui-patterns: small fixes for internal compatibi… (#30625) |
| Commit | Type | Description | | -- | -- | -- | | 18ddea330 | fix | use safevalues (#30773) |
| Commit | Type | Description | | -- | -- | -- | | fb81ab4f2 | feat | button: add support for tonal button (#30638) | | e79f60558 | feat | button: allow appearance to be set dynamically | | 663585a1c | feat | card: support filled variant (#29868) | | 82f0fa6fa | feat | core: handle prefers-reduced-motion automatically (#30796) | | 3daa36030 | feat | core: introduce custom token for controlling animations (#30749) | | 764a1ccd1 | feat | dialog: add closePredicate option | | 097f49d90 | fix | autocomplete: allow overlay backdrop by setting hasBackdrop option (#30631) | | 7d360ac77 | fix | button-toggle: changed after checked error when updating tabindex (#31172) | | 2c7199c02 | fix | button: align harness with new terminology | | 6a5943d8b | fix | button: combine MatButton and MatAnchor (#30492) | | 3aecb3521 | fix | button: tonal touch target token transgression (#30688) | | 77d6b69e7 | fix | checkbox: breaking changes for v20 | | 907815dc5 | fix | checkbox: hardcode token renames (#30752) | | f01ac6e9c | fix | checkbox: resolve change after checked error | | aba4c4437 | fix | chips: chip input not showing placeholder (#30664) | | 33795a1a1 | fix | chips: implement disabledInteractive in chip input (#30665) | | 92bcc67c2 | fix | core: include density tokens in system theme (#30845) | | 5bc01c398 | fix | datepicker: resolve change after checked errors | | 227e83d24 | fix | dialog: breaking changes for v20 | | a5aade2df | fix | form-field: preserve aria-describedby set externally across all form controls (#30699) | | ec538b598 | fix | form-field: use ResizeObserver for label offset calculation (#30702) | | d120f973f | fix | list: resolve changed after checked error | | fd162d201 | fix | schematics: add schematic to rename tokens (#31051) | | db090cac3 | fix | select: breaking changes for v20 | | 688c430fe | fix | select: close panel on detach output event (#30634) | | 12f96e229 | fix | select: resolve change after checked errors | | 404868707 | fix | sidenav: resolve changed after checked error | | c6ad44c68 | fix | slide-toggle: breaking changes for v20 | | d3a8c5b89 | fix | slide-toggle: opacity tokens not being used (#30946) | | 2d86ad441 | fix | slider: fix clobbered token for hover/focus/pressed (#30754) | | 0e985f2c6 | fix | slider: handle null values in slider input (#30621) | | 8b033742b | fix | snack-bar: change politeness level (#30851) | | 40d0ab4fc | fix | snack-bar: rename snackbar token prefix (#30750) | | 0cf6ba107 | fix | stepper: done icon tokens not emitted in M3 (#30996) | | e1f97f920 | fix | stepper: resolve changed after checked errors | | c63b1fe7b | fix | tabs: flicker when animationDuration is set to zero (#30966) | | 922c678c0 | fix | tabs: not emitting token in M3 (#31136) | | 1a800decc | fix | tabs: resolve change after checked errors | | 6c9678e69 | perf | form-field: set notch outline variable only on relevant element (#30955) | | 10a6ea493 | perf | form-field: split DOM accesses into read and write (#31086) |
| Commit | Type | Description |
| -- | -- | -- |
| 06821d85a | feat | dialog: add closePredicate option |
| cf619601a | feat | drag-drop: introduce resetToBoundary
(#30436) |
| 77c8534ff | fix | accordion: resolve changed after checked error |
| 1167d0638 | fix | collections: breaking changes for v20 |
| 79e887219 | fix | dialog: breaking changes for v20 |
| a2ab84da1 | fix | dialog: provide proper shaped Directionality (#30898) |
| b3e516f2d | fix | drag-drop: breaking changes for v20 |
| 69eedd75f | fix | drag-drop: incorrect type DragConstrainPosition (#30510) |
| f9973ee23 | fix | overlay: use MutationObserver to detach overlay (#30703) |
| 11599f808 | fix | portal: remove deprecated symbols (#30584) |
| 87501e866 | fix | schematics: support project index file discovery for object-form and default (#30967) |
| 8078efc21 | fix | table: breaking changes for v20 |
| 0f48b04dd | fix | table: move out unused style scheduler (#30963) |
| 6ffe9c748 | fix | table: remove private symbols from public API (#30956) |
| 08f4acfef | perf | overlay: add tree-shakeable alternatives for overlay APIs (#30904) |
| Commit | Type | Description | | -- | -- | -- | | 3a1a0b368 | fix | streamline directive and component metadata handling in dgeni (#30661) |
| Commit | Type | Description | | -- | -- | -- | | e1cf2844f | fix | avoid repeating selectors in m3 themes (#30645) | | 3465f9271 | fix | ensure mat-option parents are the offsetParent (#30977) | | cb3b0a87a | fix | ensure re-exported module symbols can be imported (#30667) | | 590971359 | fix | remove backwards-compatibility code (#30747) | | cda5c8e68 | fix | remove remaining references to ComponentFactoryResolver (#30569) | | 5229fe0a0 | fix | rename hardcoded tokens that were renamed (#30807) | | 9bf4be9e2 | fix | rename token prefixes to match components (#30802) | | 32353fb3a | fix | resolve directive host binding issues (#30606) | | 48894ad55 | fix | use DI token for tag name (#30892) |
<!-- CHANGELOG SPLIT MARKER --><a name="19.2.18"></a>
FAQs
Angular Google Maps
The npm package @angular/google-maps receives a total of 0 weekly downloads. As such, @angular/google-maps popularity was classified as not popular.
We found that @angular/google-maps demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.