Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rakshans1/raxx-google-maps


https://github.com/rakshans1/raxx-google-maps

google-maps web-component

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

        

## Getting Started

To start building a new web component using Stencil, clone this repo to a new directory:

```bash
git clone https://github.com/rakshans1/raxx-google-maps.git
```

and run:

```bash
npm install
npm start
```

To watch for file changes during develop, run:

```bash
npm run dev
```

To build the component for production, run:

```bash
npm run build
```

## Using this component

### Script tag

- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### Node Modules
- Run `npm install raxx-google-maps --save`
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### Html file
```

```
[Get your api key](https://developers.google.com/maps/documentation/javascript/get-api-key)

### Adding marker
```

const map = document.getElementsByTagName('raxx-google-maps');
map[0].addMarker(19.230145, 72.918576)