about summary refs log tree commit diff
path: root/components/CampMap.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-25 17:41:34 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-25 17:41:34 +0100
commit5d7fb66aac4fdb09ab9d1264e194529e9636025b (patch)
tree9ab9cf4489be62c0676d9a0b08714a2dd66acc32 /components/CampMap.vue
parentafd66e3652de73529ff43607ff41dad1a90cf351 (diff)
downloadpuszcza-5d7fb66aac4fdb09ab9d1264e194529e9636025b.tar.gz
puszcza-5d7fb66aac4fdb09ab9d1264e194529e9636025b.zip
Code split
Diffstat (limited to 'components/CampMap.vue')
-rw-r--r--components/CampMap.vue36
1 files changed, 36 insertions, 0 deletions
diff --git a/components/CampMap.vue b/components/CampMap.vue
new file mode 100644
index 0000000..eae1fc0
--- /dev/null
+++ b/components/CampMap.vue
@@ -0,0 +1,36 @@
+<template>
+  <div class="mapouter">
+    <div class="gmap_canvas">
+      <iframe
+        id="gmap_canvas"
+        :src="src"
+        frameborder="0"
+        scrolling="no"
+        marginheight="0"
+        marginwidth="0"
+      />
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'CampMap',
+  props: {
+    src: {
+      type: String,
+      required: true,
+    },
+  },
+}
+</script>
+
+<style>
+.mapouter,
+.gmap_canvas,
+#gmap_canvas {
+  width: 100%;
+  height: 50vh;
+  max-height: 300px;
+}
+</style>