Gathering detailed insights and metrics for react-maps-google
Gathering detailed insights and metrics for react-maps-google
Gathering detailed insights and metrics for react-maps-google
Gathering detailed insights and metrics for react-maps-google
🗺 React components that make it easy to add Google maps and markers to your React projects.
npm install react-maps-google
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
485 Commits
1 Forks
2 Watchers
353 Branches
4 Contributors
Updated on Dec 17, 2024
Latest Version
0.4.11
Package Id
react-maps-google@0.4.11
Unpacked Size
182.85 kB
Size
36.18 kB
File Count
23
NPM Version
7.21.0
Node Version
15.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
32
React components that make it easy to add Google maps and markers to your React projects.
Via npm
1npm install --save react-maps-google
Via Yarn
1yarn add react-maps-google
This package includes the core GoogleMap
component that renders a Google Map
into your React project. Along with Marker
and MarkerClusterer
components that
make it easy to compose markers into your map instances.
<GoogleMap />
ComponentapiKey:String
Required - Google Maps Javascript API key. Guide to get an API keyasync:Bool
- True loads Google Maps script asynchronously. Defaults to true.options:Object
- Options for customizing/styling the map. MapOptions InterfaceonReady:Function
- Called when the Google Maps script has initialized (map) => {}
onBoundsChange:Function
- Called when the bounds_changed
event is fired from the map. (map) => {}
onCenterChange:Function
- Called when the change_changed
event is fired from the map. (map) => {}
onClick:Function
- Called when the click
event is fired from the map. (map, event) => {}
onDoubleClick:Function
- Called when the dblclick
event is fired from the map. (map, event) => {}
onDrag:Function
- Called when the drag
event is fired from the map. (map) => {}
onDragEnd:Function
- Called when the dragend
event is fired from the map. (map) => {}
onDragStart:Function
- Called when the dragstart
event is fired from the map. (map) => {}
onHeadingChange:Function
- Called when the heading_changed
event is fired from the map. (map) => {}
onIdle:Function
- Called when the idle
event is fired from the map. (map) => {}
onMapTypeIdChange:Function
- Called when the maptypeid_changed
event is fired from the map. (map) => {}
onMouseMove:Function
- Called when the mousemove
event is fired from the map. (map, event) => {}
onMouseOut:Function
- Called when the mouseout
event is fired from the map. (map, event) => {}
onMouseOver:Function
- Called when the mouseover
event is fired from the map. (map, event) => {}
onProjectionChange:Function
- Called when the projection_changed
event is fired from the map. (map) => {}
onRightClick:Function
- Called when the rightclick
event is fired from the map. (map, event) => {}
onTilesLoad:Function
- Called when the tilesloaded
event is fired from the map. (map) => {}
onTiltChange:Function
- Called when the tilt_changed
event is fired from the map. (map) => {}
onZoomChange:Function
- Called when the zoom_changed
event is fired from the map. (map) => {}
All callbacks return a reference to the google.maps.Map
instance rendered within the
component and the associated Event
(where supported).
1import React from 'react'; 2import GoogleMap, { Marker } from 'react-maps-google'; 3 4const ExampleMap = (props) => { 5 return ( 6 <GoogleMap apiKey="[insert your api key here]"> 7 <Marker position={{lat: 40.7174343, lng: -73.9930319}} /> 8 </GoogleMap> 9 ); 10}
<Marker />
Componentposition:Object
Required - The latitude and longitude coordinates to render the marker. {{lat: 0, lng: 0}}
map:Object
- Reference the to the google.maps.Map
instance, passed to the component within GoogleMap
.options:Object
- Options for customizing/styling the marker. MarkerOptions InterfaceonAnimationChange:Function
- Called when the animation_changed
event is fired from the marker. (marker) => {}
onClick:Function
- Called when the click
event is fired from the marker. (marker, event) => {}
onClickkableChange:Function
- Called when the clickable_changed
event is fired from the marker. (marker) => {}
onCursorChange:Function
- Called when the cursor_changed
event is fired from the marker. (marker) => {}
onDoubleClick:Function
- Called when the dblclick
event is fired from the marker. (marker, event) => {}
onDrag:Function
- Called when the drag
event is fired from the marker. (marker, event) => {}
onDragEnd:Function
- Called when the dragend
event is fired from the marker. (marker, event) => {}
onDraggableChange:Function
- Called when the draggable_changed
event is fired from the marker. (marker) => {}
onDragStart:Function
- Called when the dragstart
event is fired from the marker. (marker, event) => {}
onFlatChange:Function
- Called when the flat_changed
event is fired from the marker. (marker) => {}
onIconChange:Function
- Called when the icon_changed
event is fired from the marker. (marker) => {}
onMouseDown:Function
- Called when the mousedown
event is fired from the marker. (marker, event) => {}
onMouseOut:Function
- Called when the mouseout
event is fired from the marker. (marker, event) => {}
onMouseOver:Function
- Called when the mouseover
event is fired from the marker. (marker, event) => {}
onMouseUp:Function
- Called when the mouseup
event is fired from the marker. (marker, event) => {}
onPositionChange:Function
- Called when the position_changed
event is fired from the marker. (marker) => {}
onRightClick:Function
- Called when the rightclick
event is fired from the marker. (marker, event) => {}
onShapeChange:Function
- Called when the shape_changed
event is fired from the marker. (marker) => {}
onTitleChange:Function
- Called when the title_changed
event is fired from the marker. (marker) => {}
onVisibleChange:Function
- Called when the visible_changed
event is fired from the marker. (marker) => {}
onZIndexChange:Function
- Called when the zindex_changed
event is fired from the marker. (marker) => {}
1import React, { Component } from 'react'; 2import GoogleMap, { Marker } from 'react-maps-google'; 3 4class ExampleMap extends Component { 5 constructor(props) { 6 super(props); 7 8 this.onMarkerClick = this.onMarkerClick.bind(this); 9 } 10 11 onMarkerClick(marker, event) { 12 13 } 14 15 render() { 16 return ( 17 <GoogleMap apiKey="[insert your api key here]"> 18 <Marker 19 position={{lat: 40.7174343, lng: -73.9930319}} 20 onClick={this.onMarkerClick} 21 /> 22 </GoogleMap> 23 ); 24 } 25} 26
<MarkerClusterer />
Component[in development]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/9 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
98 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More