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