Socket
Socket
Sign inDemoInstall

atom-google-map

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    atom-google-map

This small (1.37kB) component allows you to easily create one or more google map, All thanks to [Atomico](https://github.com/uppercod/atomico).


Version published
Maintainers
1
Install size
331 kB
Created

Readme

Source

atom-google-map

This small (1.37kB) component allows you to easily create one or more google map, All thanks to Atomico.

<atom-google-map
       center="-34.1780483,-70.7584767"
       key="AIzaSyC6s6O5JqpyLo30GHGSFcEtu4hvNFjCAes">
       </atom-google-map>
PropsTypeDefaultDescription
keyStringRequiredApi_key to consume the Google Map service
centerString-34.1780483,-70.7584767central coordinates of the map
markersarray--allows to add marks to the map
autocompleteobject--allows you to use an input input of directions to the map
fullscreenboolean--enables the use of full screen on the map

markers

Markers is composed of an arrangement of objects, the object must have the following structure

PropsTypeDefaultDescription
positionstring-34.1780483,-70.7584767--
draggableboolean----
animationstringDRAG--
titlestring----
labelstring----
iconstring--URL
onclickfunction----
ondragfunction----
ondragendfunction----

autocomplete

PropsTypeDefaultDescription
restrictionsarray--Google api
onchangefunction--Google api

Installation

<body>
    <atom-google-map
       center="-34.1780483,-70.7584767"
       key="AIzaSyC6s6O5JqpyLo30GHGSFcEtu4hvNFjCAes">
       </atom-google-map>
    <!-- polyfill --> 
    <script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.1.3/webcomponents-loader.js"></script>
    <!-- size 1.7kB -->
    <script src="https://unpkg.com/atomico@0.3.3/dist/atomico.umd.js"></script>
    <!-- size 1.4kB -->
    <script src="https://unpkg.com/atom-google-map@0.0.3/dist/atom-google-map.umd.js"></script>
</body>

FAQs

Last updated on 06 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