mirror of
https://github.com/RustyRaptor/react-leaflet-google.git
synced 2026-12-03 23:45:17 -07:00
0af5d10fb978c2467abfc00a1fa198ab7f4a9268
react-leaflet-google
GoogleMaps layer as React component for Leaflet build on top of React-Leaflet. Also it uses google-maps a wrapper for asynchronously used Google Maps API in browser.
Getting started
import { Map, TileLayer, LayersControl } from 'react-leaflet'
import {GoogleLayer} from '../src'
const { BaseLayer } = LayersControl;
const key = 'Your Key goes here';
....
<BaseLayer checked name='Google Maps Roads'>
<GoogleLayer type='ROADMAP'/>
</BaseLayer>
<BaseLayer name='Google Maps Hydrid'>
<GoogleLayer googlekey={key} type='ROADMAP'/>
</BaseLayer>
For more details on how to use this plugin check the example.
Description
Mirror of github.com/RustyRaptor/react-leaflet-google — GoogleMaps layer as React component for Leaflet
7.1 MiB
0 Stars
1 Watchers
0 Forks
Languages
JavaScript
98.1%
HTML
1.9%