forked from eva-hafermalz/gn-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgn-marker.html
58 lines (51 loc) · 1.13 KB
/
gn-marker.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../google-map/google-map-marker.html">
<link rel="import" href="../osm-map/osm-marker.html">
<!--
The `gn-marker` element is used to add a marker to `gn-map` element.
Examples:
<gn-map
latitude="53.694089"
longitude="10.608718"
zoom="13"
map-type="GoogleMap">
<gn-marker
latitude="53"
longitude="10">
</gn-marker>
</gn-map>
-->
<dom-module id="gn-marker">
<template>
<content></content>
</template>
<script>
Polymer({
is: "gn-marker",
properties: {
/**
* A latitude to center the map on.
*/
latitude: {
type: Number,
notify: true,
value: 53.834089,
},
/**
* A longitude to center the map on.
*/
longitude: {
type: Number,
notify: true,
value: 10.703718,
}
},
asObject: function() {
return {
longitude: this.longitude,
latitude: this.latitude
}
}
});
</script>
</dom-module>