Projets
Voir sur GitHub React Google Maps
pieterv/react-googlemaps
À propos
A declarative React interface to Google Maps
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalReact Google Maps 
A declarative React interface to Google Maps.
Check it out:
Important Notes
This is an alpha release. The API and organizational structure are subject to change. Comments and contributions are much appreciated.
Installation
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.
Usage
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.
License
Licensed under MIT. Full license here »
Explorer des projets similaires
Chargement…