Socket
Socket
Sign inDemoInstall

google-maps-infowindow

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    google-maps-infowindow

Customizable InfoWindow for Google Maps JavaScript API


Version published
Weekly downloads
60
decreased by-22.08%
Maintainers
1
Install size
71.2 kB
Created
Weekly downloads
 

Readme

Source

Google maps InfoWindow

This library is design to easily add InfoWindow on Google Maps using html and CSS. It supports by default CSS animation and transition for animation, but also accepts user controlled animations through any Tween library.

Examples

  • basic
  • basic animated

Dependencies

Usage

Setting

<div id="popup" class="infowindow-content">
  <p class="close-cta">01011</p>
</div>
<div id="map"></div>
var map
var center = {lat: 48.864716, lng: 2.349014}
map = new google.maps.Map(document.getElementById('map'), {
  center: {lat: 48.864716, lng: 2.349014},
  zoom: 13,
  styles: mapStyle
});
var marker = new google.maps.Marker({
  position: center,
  map: map
})

API

const element = document.body.querySelector('#popup')
new GoogleMapsInfowindow({
  marker: marker,
  content: element
})

Keywords

FAQs

Last updated on 02 Oct 2018

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