Socket
Socket
Sign inDemoInstall

@ppci-mock/google-maps

Package Overview
Dependencies
2
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ppci-mock/google-maps

Map component based on google maps api


Version published
Weekly downloads
16
Maintainers
2
Install size
1.00 MB
Created
Weekly downloads
 

Readme

Source

Google Maps

Map component based on google maps api

Table of contents

  1. Installation
  2. Usage
  3. Properties
  4. Events

Installation

NPM
npm i @ppci-mock/google-maps

// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs

Usage

Javascript
import '@ppci-mock/google-maps';
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/google-maps/builds/index.min.js" />

<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/google-maps/builds/legacy.min.js" />

<!-- Component -->
<google-maps
  apiKey=${String}
  .pins=${Array}
  @onLoad=${Function}
  @onZoomEnd=${Function}
  @onDragEnd=${Function}
></google-maps>

Properties

PropertyTypeDescriptionPossible Values
apiKeyStringGoogle maps api key
pinsArrayCategories you can filter on ``` [{ label: String, position: { lat: Coordinate, lng: Coordinate, }, onClick: Function, increaseZoom: Number, }] ```

Events

NameDescriptionPayload
@onLoadOn map ready ``` { ..., detail: { zoom: Number, topRight: { lat: Coordinate, lng: Coordinate }, bottomLeft: { lat: Coordinate, lng: Coordinate }, }, } ```
@onZoomEndOn zooming finished ``` { ..., detail: { zoom: Number, topRight: { lat: Coordinate, lng: Coordinate }, bottomLeft: { lat: Coordinate, lng: Coordinate }, }, } ```
@onDragEndOn dragging finished ``` { ..., detail: { zoom: Number, topRight: { lat: Coordinate, lng: Coordinate }, bottomLeft: { lat: Coordinate, lng: Coordinate }, }, } ```

Keywords

FAQs

Last updated on 17 Dec 2019

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