Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/henriquelimas/osagai-map

๐Ÿ€„๏ธ๐ŸŒŽGoogle maps web component with Osagai
https://github.com/henriquelimas/osagai-map

google-maps webcomponents

Last synced: about 2 months ago
JSON representation

๐Ÿ€„๏ธ๐ŸŒŽGoogle maps web component with Osagai

Awesome Lists containing this project

README

        

# osagai-map

๐Ÿ€„๏ธ๐ŸŒŽGoogle maps web component with Osagai

Web component for using google maps implemented with Osagai

## Install

```sh
npm install osagai-map
```

Or import from unpkg

```html

```

## Usage

```html


Hello, I am a marker

```

* * *

## API

#### Table of Contents

- [osagai-map](#osagai-map)
- [Parameters](#parameters)
- [osagai-map-marker](#osagai-map-marker)
- [Parameters](#parameters-1)

### osagai-map

Custom element for rendering a map using [Google Maps API](https://developers.google.com/maps/documentation/)

#### Parameters

- `api-key` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** API key to be used on Google Maps. [Get API Key docs](https://developers.google.com/maps/documentation/javascript/get-api-key)
- `version` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Version of the Google Maps API (optional, default `3.34`)
- `libraries` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Libraries to use on the Google Maps API, separated by "," (optional, default `drawing,geometry,places,visualization`)
- `latitude` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Latitude to show in the map
- `longitude` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Longitude to show in the map
- `zoom` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Zoom to use in the map (optional, default `undefined`)
- `no-auto-tilt` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Don't use a tilt (optional, default `false`)
- `map-type` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Type of the map to use (roadmap|satellite|hybrid|terrain). [mapTypes docs](https://developers.google.com/maps/documentation/javascript/maptypes)
- `disable-default-ui` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Disable default UIs (optional, default `false`)
- `disable-map-type-control` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Disable the map type controls (optional, default `false`)
- `disable-street-view-control` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Disable the street-view controls (optional, default `false`)
- `disable-zoom` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Disable zoom capabilities (Double click and scroll whell) (optional, default `false`)
- `max-zoom` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Max zoom allowed (optional, default `undefined`)
- `min-zoom` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Min zoom allowed (optional, default `undefined`)

### osagai-map-marker

Custom element for rendering a marker in a Google map. [Marker documentation](https://developers.google.com/maps/documentation/javascript/markers)

#### Parameters

- `latitude` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Latitude to show in the map
- `longitude` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Longitude to show in the map
- `title` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Title of the marker that will appear as a tooltip (optional, default `undefined`)
- `animation` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Animation to exhibit dynamic movement to the marker. Values supported from google maps api. [Animate marker docs](https://developers.google.com/maps/documentation/javascript/markers#animate) (optional, default `undefined`)
- `hidden` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Hide the marker (optional, default `false`)
- `label` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** A marker label that appear inside a marker (optional, default `undefined`)