Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dotdev/reactive-google-map

Package Overview
Dependencies
Maintainers
7
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotdev/reactive-google-map

This package provides a React Component for embedded Google Maps with good support for configuration, marker clustering, event handlers.

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
7
Weekly downloads
 
Created
Source

DotDev Google Map

This package provides a React Component for embedded Google Maps with good support for configuration, marker clustering, event handlers.

Internally it uses the @google/markerclustererplus for clustering of markers and the Google Maps API hosted script for embedding which can be injected automatically, additionally the @google/maps package is used for Geolocation purposes.

Install

This package is private and requires access to the @dotdev organization to install.

yarn add @dotdev/reactive-google-map

Usage

GoogleMap Component

import { GoogleMap } from "@dotdev/reactive-google-map";

const jsx = (
  <GoogleMap
    ...props
  />
)

GoogleMapAutocomplete Component

import { GoogleMapAutocomplete } from "@dotdev/reactive-google-map";

const jsx = (
  <GoogleMapAutocomplete
    ...props
  />
)

Geocoder Utility

import { Geocoder } from "@dotdev/reactive-google-map";

Geocoder.latLngToDirections(...);

const geocoder = new Geocoder(...);

await geocoder.addressToLatLng(...);
await geocoder.browserToLatLng();
await geocoder.latLngToAddress(...);

Bounds Utility

import { Bounds } from "@dotdev/reactive-google-map";

Bounds.simplifyBounds(...);
Bounds.latLonDistance(...);

Development

Git management follows the standard Git Flow ideology.

Package for usage:

yarn run package

Package during development, with rebuild on file change:

yarn run package --watch

Lint before commiting:

yarn run lint

Generate reference documentation:

yarn run docs

FAQs

Package last updated on 08 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc