@flybywiresim/map
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -19,3 +19,3 @@ import React, { useEffect, useState } from "react"; | ||
const [selectedAirports, setSelectedAirports] = useState([]); | ||
const [refreshInterval, setRefreshInterval] = useState(8000000); | ||
const [refreshInterval, setRefreshInterval] = useState(10000); | ||
const [bounds, setBounds] = useState(map.getBounds()); | ||
@@ -47,6 +47,6 @@ useEffect(() => { | ||
apiBounds = { | ||
north: Math.min(bounds.getNorth(), 90), | ||
east: Math.min(bounds.getEast(), 180), | ||
south: Math.max(bounds.getSouth(), -90), | ||
west: Math.max(bounds.getWest(), -180) | ||
north: Math.ceil(Math.min(bounds.getNorth(), 90)), | ||
east: Math.ceil(Math.min(bounds.getEast(), 180)), | ||
south: Math.floor(Math.max(bounds.getSouth(), -90)), | ||
west: Math.floor(Math.max(bounds.getWest(), -180)) | ||
}; | ||
@@ -53,0 +53,0 @@ } |
{ | ||
"name": "@flybywiresim/map", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "FlyByWire Simulations live map", | ||
"private": false, | ||
@@ -5,0 +6,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
![FlyByWireLogo](https://raw.githubusercontent.com/flybywiresim/fbw-branding/master/svg/FBW-Logo.svg) | ||
# <img src="https://raw.githubusercontent.com/flybywiresim/fbw-branding/master/svg/FBW-Logo.svg" placeholder="FlyByWire" width="400"/> | ||
# FlyByWire Simulations Live Map | ||
@@ -3,0 +3,0 @@ |
16419