mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 08:51:11 +00:00
fix: Map scale (#158)
This commit is contained in:
@@ -82,7 +82,7 @@ export class Map extends React.Component<Map.Props, Map.State> {
|
||||
// Longitude ranges -180 (west) to +180 (east)
|
||||
// Latitude ranges +90 (north) to -90 (south)
|
||||
const left = Math.round(((180 + lon) / 360) * state.width + state.left);
|
||||
const top = Math.round(((90 - lat) / 180) * state.height + state.top) * MAP_HEIGHT_ADJUST;
|
||||
const top = Math.round(((90 - lat) / 180) * state.height * MAP_HEIGHT_ADJUST + state.top);
|
||||
|
||||
let quarter: Location.Quarter = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user