Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Feb 16, 2017
1 parent 54d8e37 commit d75faf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ 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

Now every object on the map can be hovered (however, you can still use css hover selectors if you want). If you try zooming out here [example](http://istarkov.github.io/google-map-react/map/main), you will still be able to hover on almost every map marker.

## 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>;

Expand Down

0 comments on commit d75faf9

Please sign in to comment.