Weinbaufläche:
"; innerhtml += ""+e.features[0].properties.Winearea+"
"; innerhtml += "Details:
"; innerhtml += ""+e.features[0].properties.Details+"
"; innerhtml += ``; mapInfoBox.innerHTML = innerhtml; mapInfoBox.style.display = "flex"; } //docu // mapinst.map.addSource('feature', { // 'type': 'geojson', // 'data':{}); // mapinst.map.addSource('featurecollection', { // 'type': 'geojson', // 'data':{ // 'type': 'FeatureCollection', // 'features': [] // } // }); // mapinst.map.addLayer({ // 'id': 'voelkermarkt_outline', // 'type': 'line', // 'source': 'voelkermarkt', // 'layout': {}, // 'paint': { // 'line-color': '#000', // 'line-width': 1 // } // }); }); }); jQuery(document).ready(function($) { $('.category-carousel').owlCarousel({ loop:!0, margin:20, autoplay:true, items:4, responsive: { 0: { items:1 }, 450: { items:2 }, 800: { items:3 }, 1620: { items:4 } } }); $(".category-next-btn").click(function(e){e.preventDefault();$(".category-carousel.owl-carousel").trigger("next.owl.carousel")}); $(".category-prev-btn").click(function(e){e.preventDefault();$(".category-carousel.owl-carousel").trigger("prev.owl.carousel")}); }) const elements = document.querySelectorAll('[data-dynamic-background]'); elements.forEach(function (item, index, arr) { var newbackgrounds = JSON.parse(item.getAttribute('data-dynamic-background')); var child=(item.firstElementChild||item.firstChild); var settings = JSON.parse(item.getAttribute('data-settings')); if(settings.background_background == 'classic') { child.style.backgroundImage="url("+newbackgrounds[0]+")"; } });