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

react-google-map-street-view

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-map-street-view

React component for google street view

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-google-map-street-view

This is a simple react component for google-maps street view. The component uses google maps api for fetching the street view. The controls on the map can be used to navigate around, get a 360 view and switch to google-maps.

In case, street view does not exist for the given address the component displays the location on google map.

Demo gif

Installing

npm install react-google-map-street-view

Usage

<StreetView address="Address goes here" APIkey="google maps api key" streetView zoomLevel={15}/>

Props

  • APIkey (string, required) : Google-maps api key
  • address (string, required) : Address for street view
  • zip (number) : Zip code for address (can be included in address field itself)
  • streetView (bool) : true for street-view and false for map-view
  • zoomLevel (number) : zoom level for map view
  • streetViewZoom (number) : zoom level for street view
  • defaultText (string) : Default message
  • errorText (string) : Error message
  • mapStyle (object) : Style object for map container
  • textStyle (object) : Style object for default text message

Alternate Usage

The component can be used for getting google map location for the address. This can be done by updating the streetView prop. Demo gif

Keywords

FAQs

Package last updated on 21 Jun 2017

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