@ppci/source-map
Version:
Source map
65 lines (58 loc) • 1.21 kB
Markdown
# Source Map
### Table of contents
<ol>
<li>
<a href="#installation">Installation</a>
</li>
<li>
<a href="#usage">Usage</a>
</li>
<li>
<a href="#properties">Properties</a>
</li>
</ol>
### Installation
#### NPM
```javascript
npm i @ppci/source-map
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
```
### Usage
#### Javascript
```javascript
import '@ppci/source-map';
```
#### Browser
```html
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/source-map/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/source-map/builds/legacy.min.js" />
<source-map
apiKey=${String}
style="width: 400px; height: 300px"
></source-map>
```
### Properties
<table width="100%">
<thead>
<tr>
<td>Property</td>
<td>Type</td>
<td>Description</td>
<td>Possible Values</td>
</tr>
<tr>
<td>apiKey</td>
<td>String</td>
<td>Google maps api key</td>
<td></td>
</tr>
<tr>
<td>style</td>
<td>String</td>
<td>Give styling to map</td>
<td></td>
</tr>
</thead>
</table>