forked from eva-hafermalz/gn-map
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgn-marker.html
More file actions
31 lines (24 loc) · 761 Bytes
/
gn-marker.html
File metadata and controls
31 lines (24 loc) · 761 Bytes
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.html">
<link rel="import" href="../google-map/google-map-marker.html">
<link rel="import" href="../osm-map/osm-marker.html">
<dom-module id="gn-marker">
<template>
<template is="dom-if" if="_typeIsOpenStreetMap()">
<osm-marker></osm-marker>
</template>
<template is="dom-if" if="_typeIsGoogleMap()">
<google-marker></google-marker>
</template>
</template>
<script>
Polymer({
is: "gn-marker",
_typeIsGoogleMap: function() {
return document.querySelector('gn-map').typeIsGoogleMap();
},
_typeIsOpenStreetMap: function() {
return document.querySelector('gn-map').typeIsOpenStreetMap();
},
});
</script>
</dom-module>