
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@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.1.0-next.1 "plastic-straw" (2025-06-11)
| Commit | Type | Description | | -- | -- | -- | | 8523397fd2 | fix | button: prevents mat-icon being cut off by text-spacing (#30891) | | 0d47628d2e | fix | button: use system colors for state layers and text (#31278) | | 458a17ba46 | fix | checkbox: update tokens to system colors (#31279) | | be48108bc2 | fix | chips: update tokens to system colors (#31280) | | 21df04e787 | fix | core: output tokens from theme under same selector (#31295) | | 576a008b09 | fix | core: remove unused form field mixins (#31283) | | 4d67427cef | fix | core: update ripple tokens to system colors (#31282) | | 28f2763f96 | fix | core: update tokens to system colors (#31281) | | 009424c73e | fix | datepicker: use system colors (#31300) | | 918b625438 | fix | list: update tokens to system colors (#31284) | | 623030b50d | fix | menu: update tokens to system colors (#31285) | | 0f26b91425 | fix | paginator: update tokens to system colors (#31286) | | 3f7d2778fb | fix | radio: color tokens excluded when passing in variant (#31321) | | 010122ff2a | fix | select: use system color for arrow (#31302) | | 9ce023d977 | fix | slider: ensure disabled slider thumb input has 'auto' c⦠(#31311) | | 029e39cced | fix | slider: use system color (#31305) | | 951f37e656 | fix | tabs: update tokens to system colors (#31287) |
| Commit | Type | Description | | -- | -- | -- | | c5b2f0ac6d | feat | ui-patterns: create grid navigation behavior (#31290) | | 70841dbb5b | feat | ui-patterns: tree (#31308) |
<!-- CHANGELOG SPLIT MARKER --><a name="20.0.3"></a>
FAQs
Angular Google Maps
The npm package @angular/google-maps receives a total of 123,787 weekly downloads. As such, @angular/google-maps popularity was classified as 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.