diff --git a/maps_utils/static/maps_utils/geo-feature-collection.js b/maps_utils/static/maps_utils/geo-feature-collection.js index c157372b42518b5ca93686a13495e36df6794ca0..d8efccb9e0f2279bb3378017183f49d0b3f26935 100644 --- a/maps_utils/static/maps_utils/geo-feature-collection.js +++ b/maps_utils/static/maps_utils/geo-feature-collection.js @@ -236,6 +236,14 @@ const GeoFeatureCollection = Vue.component("GeoFeatureCollection", { }); } + // Preload images + annotatedFeatures.forEach((feature) => { + if (feature.properties.image) { + const i = new Image(); + i.src = feature.properties.image; + } + }); + // Draw the map. this.initMap({ type: "FeatureCollection", @@ -651,7 +659,12 @@ const GeoFeatureCollection = Vue.component("GeoFeatureCollection", { {{ currentItem.description }} </div> - <a v-if="currentItem.link" :href="currentItem.link" class="mt-4 text-sm btn btn--grey-125 btn--hoveractive"><div class="btn__body">Zjistit více</div></a> + <a v-if="currentItem.link" :href="currentItem.link" class="mt-4 text-sm btn btn--black btn--icon"> + <div class="btn__body-wrap"> + <div class="btn__body">Zjistit více</div> + <div class="btn__icon"><i class="ico--chevron-right"></i></div> + </div> + </a> </div> </div> </div>