Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aviklai committed Mar 9, 2019
1 parent 21e4a53 commit 34988f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Google layer for React-Leaflet using leaflet.gridlayer.googlemutant, implemented

Installation instructions:
1. run `npm install --save react-leaflet-google-layer`
2. By default this library uses the google-maps loader library to load the google maps api. If you want to use the script tag instead, you can Add google maps js api in your index.html: `<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY" async defer></script>`
2. By default this library uses the google-maps loader library to load the google maps api. If you want to use the script tag instead, you can Add google maps js api in your index.html: <br/>
`<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY" async defer></script>` <br/>
and set the prop useGoogMapsLoader to `false`.


Expand All @@ -20,7 +21,7 @@ export class App extends React.Component {
render() {
return (
<Map zoom={15} center={[45, 20]}>
<ReactLeafletGoogleLayer googleMapsLoaderConf={{KEY: 'Your api key'}} type={'satellite'} />
<ReactLeafletGoogleLayer googleMapsLoaderConf={{KEY: 'YOUR_API_KEY'}} type={'satellite'} />
</Map>
);
}
Expand Down

0 comments on commit 34988f7

Please sign in to comment.