kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fix map preview height, OSM basemap max zoom level
rodzic
850193186b
commit
e1c4886aac
|
@ -21,7 +21,7 @@ export default [
|
|||
{
|
||||
attribution:
|
||||
'© <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"
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue