forked from timeu/google-map-markerclusterer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
google-map-overlayview.html
30 lines (28 loc) · 1.1 KB
/
google-map-overlayview.html
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
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="google-map-overlayview-behavior.html">
<link rel="import" href="../google-apis/google-apis.html">
<dom-module id="google-map-overlayview">
<template >
<slot id="overlayContent"></slot>
</template>
</dom-module>
<script>
/*
* The `google-map-overlayview` element is a generic overlay container element.
* It maps to the OverlayView of google maps v3.
* <b>Example</b>:
* <google-map-overlayview><some-element /></google-map-overlayview>
*
* For example to embed a simple `<img>` element into a overlay use this code:
*
* <google-map-overlayview><img src="URL" /></google-map-overlayview>
*
* It is also possible to embed another `custom element` inside a `<google-map-overlayview>`
* @customElement
* @polymer
*/
class GoogleMapOverlayView extends GoogleMapOverlayViewBehavior(Polymer.Element) {
static get is() { return 'google-map-overlayview'; }
}
customElements.define('google-map-overlayview', GoogleMapOverlayView);
</script>