Socket
Socket
Sign inDemoInstall

@dotdev/reactive-google-map

Package Overview
Dependencies
Maintainers
12
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.


Version published
Maintainers
12
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 09 Jun 2021

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