-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGoogleMaps.stories.js
50 lines (46 loc) · 1.35 KB
/
GoogleMaps.stories.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// GoogleMaps.stories.js
import { html } from 'lit-html'
import(
'../../web-components-toolbox/src/es/components/atoms/googleMaps/GoogleMaps'
).then((module) => self.customElements.define('a-google-maps', module.default))
export default {
title: 'Atoms/GoogleMaps',
component: 'a-google-maps'
}
export const Default = () => html`<a-google-maps
namespace="google-maps-default-"
lat=""
lng=""
api-key=""
marker-icon="./img/marker.svg"
>
<div class="control-events">
<div><strong>Wegbeschreibung</strong></div>
<div>
<o-wrapper
namespace="wrapper-no-calc-column-width-"
flex-nowrap-mobile
no-calc-column-width
>
<a id="" href="#">
<a-picture defaultSource="./img/directions-driving.svg" alt="" />
</a>
<a id="transit" href="#">
<a-picture defaultSource="./img/directions-transit.svg" alt="" />
</a>
<a id="bicycling" href="#">
<a-picture defaultSource="./img/directions-bicycling.svg" alt="" />
</a>
<a id="walking" href="#">
<a-picture defaultSource="./img/directions-walking.svg" alt="" />
</a>
</o-wrapper>
</div>
</div>
</a-google-maps> `
export const Iframe = () => html`
<a-google-maps
namespace="google-maps-iframe-"
iframe-url="https://snazzymaps.com/embed/241515"
></a-google-maps>
`