Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Apr 30, 2024
1 parent 387da60 commit 35ce813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/components/OSMMap/OSMMap.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
}

.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;
}

.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;
}
Expand Down
17 changes: 1 addition & 16 deletions src/components/OSMMap/OSMMap.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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:
// '&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
// defaultMessage:
// '&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
// },
// });

let DefaultIcon = L.icon({
iconUrl: icon,
shadowUrl: iconShadow,
Expand All @@ -45,7 +35,6 @@ const OSMMap = ({
cluster = false,
mapOptions = {},
}) => {
// const intl = useIntl();
const bounds = L.latLngBounds(
markers.map((marker) => [marker.latitude, marker.longitude]),
);
Expand All @@ -66,7 +55,6 @@ const OSMMap = ({
}}
icon={position.divIcon ? L.divIcon(position.divIcon) : DefaultIcon}
aria-label={position.title}
title={position.title}
>
{showTooltip && position.title && (
<Tooltip
Expand Down Expand Up @@ -100,10 +88,7 @@ const OSMMap = ({
bounds={bounds}
{...mapOptions}
>
<TileLayer
// attribution={intl.formatMessage(messages.attribution)}
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
{cluster ? (
<MarkerClusterGroup>{renderMarkers}</MarkerClusterGroup>
) : (
Expand Down

0 comments on commit 35ce813

Please sign in to comment.