Changed town map units
This commit is contained in:
@@ -293,23 +293,17 @@ L.Control.Measure.include({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const rulerDistanceRatio = 2
|
const rulerDistanceRatio = 1.8
|
||||||
|
|
||||||
const rulerOptions = {
|
const rulerOptions = {
|
||||||
position: 'bottomleft',
|
position: 'bottomleft',
|
||||||
primaryLengthUnit: 'kilometers',
|
primaryLengthUnit: 'kilometers',
|
||||||
secondaryLengthUnit: 'days',
|
primaryAreaUnit: null,
|
||||||
primaryAreaUnit: 'hectares',
|
|
||||||
units: {
|
units: {
|
||||||
kilometers: {
|
kilometers: {
|
||||||
factor: 0.00013 * rulerDistanceRatio,
|
factor: 0.00013 * rulerDistanceRatio,
|
||||||
display: 'Kilomètres',
|
display: 'Mètres',
|
||||||
},
|
},
|
||||||
days: {
|
|
||||||
factor: 0.00000325 * rulerDistanceRatio,
|
|
||||||
display: 'Jours de marche',
|
|
||||||
decimals: 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -293,23 +293,17 @@ L.Control.Measure.include({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const rulerDistanceRatio = 2
|
const rulerDistanceRatio = 1.15
|
||||||
|
|
||||||
const rulerOptions = {
|
const rulerOptions = {
|
||||||
position: 'bottomleft',
|
position: 'bottomleft',
|
||||||
primaryLengthUnit: 'kilometers',
|
primaryLengthUnit: 'kilometers',
|
||||||
secondaryLengthUnit: 'days',
|
primaryAreaUnit: null,
|
||||||
primaryAreaUnit: 'hectares',
|
|
||||||
units: {
|
units: {
|
||||||
kilometers: {
|
kilometers: {
|
||||||
factor: 0.00013 * rulerDistanceRatio,
|
factor: 0.00013 * rulerDistanceRatio,
|
||||||
display: 'Kilomètres',
|
display: 'Mètres',
|
||||||
},
|
},
|
||||||
days: {
|
|
||||||
factor: 0.00000325 * rulerDistanceRatio,
|
|
||||||
display: 'Jours de marche',
|
|
||||||
decimals: 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user