Browse Source

geodata: delete underline on link in the map view

pull/4140/head
flisowna 2 years ago
parent
commit
a7ed1c035d
  1. 23
      packages/nc-gui/components/smartsheet/Map.vue

23
packages/nc-gui/components/smartsheet/Map.vue

@ -77,7 +77,7 @@ onMounted(async () => {
markersClusterGroupRef.value = L.markerClusterGroup({ markersClusterGroupRef.value = L.markerClusterGroup({
iconCreateFunction(cluster) { iconCreateFunction(cluster) {
return L.divIcon({ html: `${cluster.getChildCount()}`, className: 'geo-map-marker-cluster' }) return L.divIcon({ html: `${cluster.getChildCount()}`, className: 'geo-map-marker-cluster', iconSize: new L.Point(40, 40) })
}, },
}) })
myMap.addLayer(markersClusterGroupRef.value) myMap.addLayer(markersClusterGroupRef.value)
@ -85,20 +85,31 @@ onMounted(async () => {
</script> </script>
<template> <template>
<div class="flex flex-col h-full w-full nounderline"> <div class="flex flex-col h-full w-full no-underline">
<div id="mapContainer" ref="mapContainerRef"></div> <div id="mapContainer" ref="mapContainerRef"></div>
</div> </div>
</template> </template>
<style scoped> <style scoped lang="scss">
#mapContainer { #mapContainer {
height: 100vh; height: 100vh;
} }
.nounderline { // .no-underline {
text-decoration: none; // text-decoration: none !important;
} // opacity: 0.5;
// }
:global(.geo-map-marker-cluster) { :global(.geo-map-marker-cluster) {
background-color: pink; background-color: pink;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<style>
.no-underline a {
text-decoration: none !important;
} }
</style> </style>

Loading…
Cancel
Save