Skip to content

Commit

Permalink
Fix map preview height, OSM basemap max zoom level
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Jul 23, 2024
1 parent 8501931 commit e1c4886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/static/app/js/classes/Basemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 3 additions & 4 deletions app/static/app/js/components/MapPreview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e1c4886

Please sign in to comment.