mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Small fixes
This commit is contained in:
parent
54d8e37535
commit
d75faf9498
@ -21,7 +21,7 @@ It renders components on the map before (and even without) the Google Maps API l
|
||||
|
||||
### Google Maps API Loads on Demand
|
||||
|
||||
There is no need to place a `<script src=` tag at top of page. The Google Maps API loads upon the first usage of the `GoogleMap` component.
|
||||
There is no need to place a `<script src=` tag at top of page. The Google Maps API loads upon the first usage of the `GoogleMapReact` component.
|
||||
|
||||
### Internal Hover Algorithm
|
||||
|
||||
@ -29,13 +29,13 @@ Now every object on the map can be hovered (however, you can still use css hover
|
||||
|
||||
## What's it Look Like?
|
||||
|
||||
In the simple case you just need to add `lat` `lng` props to any child of `GoogleMap` component.
|
||||
In the simple case you just need to add `lat` `lng` props to any child of `GoogleMapReact` component.
|
||||
|
||||
[See it in action at jsbin](https://jsbin.com/gaxapezowo/1/edit?js,output)
|
||||
|
||||
```javascript
|
||||
import React, { Component } from 'react';
|
||||
import GoogleMap from 'google-map-react';
|
||||
import GoogleMapReact from 'google-map-react';
|
||||
|
||||
const AnyReactComponent = ({ text }) => <div>{text}</div>;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user