From 35ce813d71789dbf9858d4c4c1d7504f85a3010c Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Tue, 30 Apr 2024 13:15:46 +0200 Subject: [PATCH] chore: cleanup --- src/components/OSMMap/OSMMap.css | 4 ++-- src/components/OSMMap/OSMMap.jsx | 17 +---------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/components/OSMMap/OSMMap.css b/src/components/OSMMap/OSMMap.css index 21ab18f..ecfc7cb 100644 --- a/src/components/OSMMap/OSMMap.css +++ b/src/components/OSMMap/OSMMap.css @@ -35,8 +35,8 @@ } .marker-cluster { - background-color: #ff8d00; border-radius: 100%; + background-color: #ff8d00; -webkit-box-shadow: 0px 0px 8px 2px #ff8d00; box-shadow: 0px 0px 8px 2px #ff8d00; } @@ -44,9 +44,9 @@ .marker-cluster div { width: 30px; height: 30px; + border-radius: 15px; margin-top: 5px; margin-left: 5px; - border-radius: 15px; font-size: 12px; text-align: center; } diff --git a/src/components/OSMMap/OSMMap.jsx b/src/components/OSMMap/OSMMap.jsx index 5ab91c6..f5c077a 100644 --- a/src/components/OSMMap/OSMMap.jsx +++ b/src/components/OSMMap/OSMMap.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import { defineMessages, useIntl } from 'react-intl'; import PropTypes from 'prop-types'; import L from 'leaflet'; import { Map, TileLayer, Marker, Tooltip, Popup } from 'react-leaflet'; @@ -15,15 +14,6 @@ import 'volto-venue/components/OSMMap/OSMMap.css'; // eslint-disable-next-line import/no-unresolved import 'volto-venue/components/OSMMap/leaflet.css'; -// const messages = defineMessages({ -// attribution: { -// id: -// '&copy OpenStreetMap contributors', -// defaultMessage: -// '&copy OpenStreetMap contributors', -// }, -// }); - let DefaultIcon = L.icon({ iconUrl: icon, shadowUrl: iconShadow, @@ -45,7 +35,6 @@ const OSMMap = ({ cluster = false, mapOptions = {}, }) => { - // const intl = useIntl(); const bounds = L.latLngBounds( markers.map((marker) => [marker.latitude, marker.longitude]), ); @@ -66,7 +55,6 @@ const OSMMap = ({ }} icon={position.divIcon ? L.divIcon(position.divIcon) : DefaultIcon} aria-label={position.title} - title={position.title} > {showTooltip && position.title && ( - + {cluster ? ( {renderMarkers} ) : (