New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

google-maps-infobox-extendable

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-maps-infobox-extendable

Extendable google maps info box without the dependency of google maps during build

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Google Maps Infobox

This npm module requires google maps to be loaded before initializing info box. If you are using webpack or browserify, it requires google maps javascript api to be loaded during the build process

Now this module will get bundled without google maps being loaded, but you need to ensure Infobox is extended with prototype methods of google.maps.OverlayView before initializing it.

How to use

  • Load google maps javascript api asynchronously
  • import {InfoBox} from 'google-maps-infobox-extendable'
  • extend(InfoBox.prototype, google.maps.OverlayView.prototype);(you can write your own extend function or use just-extend)

npm

npm install google-maps-infobox-extendable

yarn

yarn add google-maps-infobox-extendable

Keywords

google

FAQs

Package last updated on 22 Jan 2018

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