0.0.5 • Published 6 years ago

atom-google-map v0.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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>
0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago