More suitable name for gmap component
This commit is contained in:
@@ -24,7 +24,7 @@ import SearchBox from './components/SearchBox.vue'
|
||||
import SearchResult from './components/SearchResult.vue'
|
||||
import ProductDetail from './components/ProductDetail.vue'
|
||||
import AjaxContent from './components/AjaxContent.vue'
|
||||
import Gmap from './components/Gmap.vue'
|
||||
import OsmMap from './components/OsmMap.vue'
|
||||
import Calendar from './components/Calendar.vue'
|
||||
import EventPricetable from './components/EventPriceTable.vue'
|
||||
import ContactForm from './components/ContactForm.vue'
|
||||
@@ -54,7 +54,7 @@ new Vue({
|
||||
SearchResult,
|
||||
ProductDetail,
|
||||
AjaxContent,
|
||||
Gmap,
|
||||
OsmMap,
|
||||
Calendar,
|
||||
EventPricetable,
|
||||
ContactForm,
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="gmap" ref="container"></div>
|
||||
<div class="osm-map" ref="container"></div>
|
||||
</template>
|
||||
<script>
|
||||
import L from 'leaflet';
|
||||
@@ -67,7 +67,7 @@
|
||||
}
|
||||
this.map.fitBounds(bounds);
|
||||
}
|
||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
L.tileLayer('https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||
}).addTo(this.map);
|
||||
@@ -11,7 +11,7 @@
|
||||
import Calendar from './Calendar.vue'
|
||||
import FacebookPixel from './FacebookPixel.vue'
|
||||
import WatchlistToggle from './WatchlistToggle.vue'
|
||||
import Gmap from './Gmap.vue'
|
||||
import OsmMap from './OsmMap.vue'
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/de'
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
Calendar,
|
||||
FacebookPixel,
|
||||
WatchlistToggle,
|
||||
Gmap
|
||||
OsmMap
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -21,7 +21,7 @@ $output-bourbon-deprecation-warnings: false;
|
||||
@import "remix/herounit";
|
||||
@import "remix/calendar";
|
||||
@import "remix/partnerlogos";
|
||||
@import "remix/gmap";
|
||||
@import "remix/osm-map";
|
||||
@import "remix/video";
|
||||
@import "remix/newsletterform";
|
||||
@import "remix/layout";
|
||||
|
||||
@@ -22,7 +22,7 @@ $output-bourbon-deprecation-warnings: false;
|
||||
@import "remix/herounit";
|
||||
@import "remix/calendar";
|
||||
@import "remix/partnerlogos";
|
||||
@import "remix/gmap";
|
||||
@import "remix/osm-map";
|
||||
@import "remix/video";
|
||||
@import "remix/newsletterform";
|
||||
@import "remix/layout";
|
||||
|
||||
@@ -22,7 +22,7 @@ $output-bourbon-deprecation-warnings: false;
|
||||
@import "remix/herounit";
|
||||
@import "remix/calendar";
|
||||
@import "remix/partnerlogos";
|
||||
@import "remix/gmap";
|
||||
@import "remix/osm-map";
|
||||
@import "remix/video";
|
||||
@import "remix/newsletterform";
|
||||
@import "remix/layout";
|
||||
|
||||
@@ -22,7 +22,7 @@ $output-bourbon-deprecation-warnings: false;
|
||||
@import "remix/herounit";
|
||||
@import "remix/calendar";
|
||||
@import "remix/partnerlogos";
|
||||
@import "remix/gmap";
|
||||
@import "remix/osm-map";
|
||||
@import "remix/video";
|
||||
@import "remix/newsletterform";
|
||||
@import "remix/layout";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
.gmap {
|
||||
.osm-map {
|
||||
width: 100%;
|
||||
padding-bottom: 56.25%;
|
||||
margin-bottom: 34px;
|
||||
@@ -15,11 +15,11 @@
|
||||
|
||||
<f:section name="Map">
|
||||
<div class="row">
|
||||
<gmap
|
||||
<osm-map
|
||||
lat="{latitude}"
|
||||
lng="{longitude}"
|
||||
:zoom="17"
|
||||
></gmap>
|
||||
></osm-map>
|
||||
</div>
|
||||
</f:section>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<f:layout name="Default"/>
|
||||
|
||||
<f:section name="Main">
|
||||
<gmap :markers="{markerData}" :zoom="17"></gmap>
|
||||
<osm-map :markers="{markerData}" :zoom="17"></osm-map>
|
||||
</f:section>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -92,8 +92,8 @@
|
||||
<div class="ep-sidebar ep-snow">
|
||||
<p><strong>Lage</strong></p>
|
||||
<div>
|
||||
<gmap lat="{hotel.latitude}" lng="{hotel.longitude}" :zoom="12"
|
||||
external-link="{f:uri.typolink(parameter: hotel.externalLink)}"></gmap>
|
||||
<osm-map lat="{hotel.latitude}" lng="{hotel.longitude}" :zoom="12"
|
||||
external-link="{f:uri.typolink(parameter: hotel.externalLink)}"></osm-map>
|
||||
</div>
|
||||
</div>
|
||||
<f:render partial="Region/Webcam" arguments="{region: region}"/>
|
||||
@@ -191,8 +191,8 @@
|
||||
<div class="ep-sidebar ep-snow">
|
||||
<p><strong>Lage</strong></p>
|
||||
<div>
|
||||
<gmap lat="{hotel.latitude}" lng="{hotel.longitude}" :zoom="12"
|
||||
external-link="{f:uri.typolink(parameter: hotel.externalLink)}"></gmap>
|
||||
<osm-map lat="{hotel.latitude}" lng="{hotel.longitude}" :zoom="12"
|
||||
external-link="{f:uri.typolink(parameter: hotel.externalLink)}"></osm-map>
|
||||
</div>
|
||||
</div>
|
||||
<f:render partial="Region/Webcam" arguments="{region: region}"/>
|
||||
|
||||
Reference in New Issue
Block a user