@dc0de/react-google-maps
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Google Maps integration with React.

npm version npm minzipped size npm type definitions npm downloads Build Status codecov npm license

Fully declarative render-style components built with latest React features. Checkout documentation with examples.

Installation

# With yarn
yarn add @dc0de/react-google-maps

# Or with npm
npm install @dc0de/react-google-maps

Touch Events not working?

if (window.navigator) {
  /**
   * Make mouse work with google maps in Windows touch devices.
   *
   * @link http://stackoverflow.com/a/37611736/1709679
   */
  window.navigator.msPointerEnabled = true;

  /**
   * Make touch/pan/zoom work with google maps work in Windows touch devices.
   *
   * @link https://code.google.com/p/gmaps-api-issues/issues/detail?id=6425
   */
  window.navigator.msMaxTouchPoints = window.navigator.msMaxTouchPoints || 2;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @dc0de/react-google-maps

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

134 kB

Total Files

47

Last publish

Collaborators

  • victorzimnikov
  • monitoringe