Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@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
19.0.0-next.9 "howlite-headband" (2024-10-17)
MapMarkerClusterer
class has been renamed to DeprecatedMapMarkerClusterer
.map-marker-clusterer
selector has been changed to deprecated-map-marker-clusterer
.| Commit | Type | Description | | -- | -- | -- | | a05475e76 | feat | deprecate marker cluster component | | c70aae15b | feat | implement new marker clusterer | | b9deeee85 | fix | add schematic to switch to the new clusterer name |
| Commit | Type | Description |
| -- | -- | -- |
| a58e6f671 | feat | core: add theme-overrides mixin (#29858) |
| 486990912 | feat | core: rename theme mixin (#29857) |
| 9c3af284f | feat | schematics: Switch custom theme schematic to use theme mixin instead of define-theme and add high contrast override mixins (#29642) |
| 371446a7c | feat | theming: Disambiguate token names in theme overrides (#29859) |
| cc0532bb2 | fix | badge: content incorrectly truncated in M3 (#29854) |
| 9262a018b | fix | card: elevated card container color (#29835) |
| 613cf5406 | fix | core: rename sys vars from mat-app to mat-sys (#29879) |
| da9cb714e | fix | dialog: updates dialog max-height in landscape (#29853) |
| 48b2680f6 | fix | form-field: account in cols
attribute on textarea (#29836) |
| e975bb949 | fix | radio: use tokens for focused border color (#29716) |
| Commit | Type | Description | | -- | -- | -- | | 3b4ade5a0 | fix | tree: only handle keyboard events directly from the node (#29861) |
<!-- CHANGELOG SPLIT MARKER --><a name="19.0.0-next.8"></a>
FAQs
Angular Google Maps
The npm package @angular/google-maps receives a total of 118,901 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 0 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.