Socket
Socket
Sign inDemoInstall

goomap

Package Overview
Dependencies
18
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    goomap

1. Include the Google Map API.


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

GooMap

  1. Include the Google Map API.
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&">
</script>
  1. Create shit.
<GooMap focus={[<LONGITUDE>, <LATITUDE>]}>
  <Marker position={[<LONGITUDE>, <LATITUDE>]]}>
    {InfoBox(
      <div>
        <h1>A place!</h1>
      </div>
    )}
  </Marker>
</GooMap>

Unfortunately, at this point I am struggling to find a way to use a component as the InfoBox, as the Google InfoBox (infowindow) takes in a string of HTML to be inserted to the dom, so I rigged a way to still use JSX instead of a string to create your InfoBox. Don't try to use components inside of the InfoBox() function, as it will be placed directly into the DOM and not run through React to render().

This currently only supports the Map, Marker, and InfoBox, nothing more.

FAQs

Last updated on 19 Sep 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc