Fix map preview height, OSM basemap max zoom level

pull/1530/head
Piero Toffanin 2024-07-23 18:03:09 -04:00
rodzic 850193186b
commit e1c4886aac
2 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ export default [
{
attribution:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
maxZoom: 21,
maxZoom: 19,
minZoom: 0,
label: _("OpenStreetMap"),
url: "//tile.openstreetmap.org/{z}/{x}/{y}.png"

Wyświetl plik

@ -121,13 +121,12 @@ _('Example:'),
color: "#fcfcff", //ff9e67
fillColor: "#4b96f3",
weight: 1.5,
});
}).bindPopup(exif.image.name);
});
console.log(hasDateTime);
// Only show line if we have reliable date/time info
if (hasDateTime){
let coords = exifData.map(exif => [exif.gps.latitude, exif.gps.longitude]);
console.log(coords)
const capturePath = L.polyline(coords, {
color: "#4b96f3",
weight: 3
@ -228,7 +227,7 @@ _('Example:'),
render() {
return (
<div style={{height: "320px"}} className="map-preview">
<div style={{height: "280px"}} className="map-preview">
<ErrorMessage bind={[this, 'error']} />
<Standby