
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-simple-google-maps
Advanced tools
Simple components for rendering Google Maps via the Google Maps JavaScript API
Simple components for rendering Google Maps via the Google Maps JavaScript API
npm install react react-addons-shallow-compare react-simple-google-maps
Ensure the Google Maps JS API script is already loaded. react-simple-google-maps
will use a global named google.maps
.
To create a new map, just render a <Map>
component. Markers and Polylines are children of the Map, and an InfoWindow can be a child of a Marker. An InfoWindow's children will be rendered into the InfoWindow when it is displayed.
Coordinates are passed using the native Google Maps coordinates or bounds objects.
bounds = new google.maps.LatLngBounds();
position = new google.map.LatLng(65, -100);
bounds.extend(position);
position = new google.map.LatLng(40, -125);
bounds.extend(position);
markerPosition = new google.map.LatLng(50, -115);
<Map
bounds={bounds}
panControlOptions={position: google.maps.ControlPosition.LEFT_BOTTOM}
ref="map"
scrollwheel={true}
streetViewControl={false}
style={height: 500}
zoomControlOptions={position: google.maps.ControlPosition.LEFT_BOTTOM} >
<Marker
position={markerPosition}
title='Start'
zIndex=1
<InfoWindow>
<h1>I am a marker!</h1>
</InfoWindow>
</Marker>
</Map>
FAQs
Simple components for rendering Google Maps via the Google Maps JavaScript API
The npm package react-simple-google-maps receives a total of 0 weekly downloads. As such, react-simple-google-maps popularity was classified as not popular.
We found that react-simple-google-maps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.