
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
react-googlemaps
Advanced tools
A declarative React interface to Google Maps.
Check it out:
This is an alpha release. The API and organizational structure are subject to change. Comments and contributions are much appreciated.
npm install react-googlemaps --save
This library is written with CommonJS modules. If you are using browserify, webpack, or similar, you can consume it like anything else installed from npm.
var React = require('react');
var ReactGoogleMaps = require('react-googlemaps');
var GoogleMapsAPI = window.google.maps;
var Map = ReactGoogleMaps.Map;
var Marker = ReactGoogleMaps.Marker;
var OverlayView = ReactGoogleMaps.OverlayView;
function handleClick(e) {
console.log('Clicked at position', e.latLng);
}
React.render(
<Map
initialZoom={10}
initialCenter={new GoogleMapsAPI.LatLng(-41.2864, 174.7762)}>
<Marker
onClick={handleClick}
position={new GoogleMapsAPI.LatLng(-41.2864, 174.7762)} />
<OverlayView
style={{backgroundColor: '#fff'}}
position={new GoogleMapsAPI.LatLng(-41.2864, 174.7762)}>
<p>Some content</p>
</OverlayView>
</Map>,
mountNode
);
Checkout the API docs or the examples
directory for more detailed usage.
Licensed under MIT. Full license here »
0.4.0
FAQs
A declarative React interface to Google Maps
The npm package react-googlemaps receives a total of 26 weekly downloads. As such, react-googlemaps popularity was classified as not popular.
We found that react-googlemaps demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.