Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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
12.0.5 "honeycomb-heart" (2021-06-16)
| | |
| ---------- | --------------------- |
| bug fix | drag-drop: error if dragged item is destroyed as a result of the entered
event (#22904) (db855c2d3371ec5ef9e1a7c236408442be78dc39), closes #22813 |
| bug fix | overlay: expand test environment check (#22927) (1208456477b618167bc44a8e5df5ed2839b81a3d), closes #22926 |
| bug fix | schematics: avoid runtime errors thrown by devkit tree (#22982) (ce1e11c2a85e769fc4a7d659ca17935d0286a975), closes #22919 |
| | | | ---------- | --------------------- | | bug fix | multiple: add inject flags to manual injector calls (#22922) (2e2f755e361f0d31edd49f140f3b678cfe7f1332), closes #22665 | | bug fix | slider: make value non-nullable (#22912) (383f7b650b46172b8ac4f91813cd485db8dba84f), closes #22444 |
| | | | ---------- | --------------------- | | bug fix | mdc-button: set proper touch target (#22931) (0012409b717bd8b5dc97ffed4e4e70afc9a84bca), closes #22799 | | bug fix | mdc-checkbox: add larger touch target (#22892) (dee60fa411bb1e81d2487f1b54faf280bfdf56c0) | | bug fix | mdc-tabs: ink bar animation not always disabled (#22848) (2af24d86e8aaf582a8ce8878d9ab9054807d2676) |
FAQs
Angular Google Maps
The npm package @angular/google-maps receives a total of 68,802 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.