diff --git a/index.html b/index.html
index 959b323..f88a282 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
SondeHub Tracker
-
+
@@ -205,17 +205,6 @@ Settings
- Overlays
-
-
-
Daylight overlay
-
-
-
-
-
- Other
-
+ Overlays
+
-
Force check for new version
-
-
-
- Reloads appcache if necessary.
- The size of cache files is 1.2 MB.
- This does not include map tiles.
-
-
diff --git a/js/app.js b/js/app.js
index 33eefb5..bb30dbd 100644
--- a/js/app.js
+++ b/js/app.js
@@ -181,27 +181,6 @@ for(var idx in params) {
}
}
-$.ajaxSetup({ cache: true });
-
-var force_check_cache = false;
-
-// handle cachin events and display a loading bar
-var loadComplete = function(e) {
- clearTimeout(initTimer);
-
- if(e.type == 'updateready') {
- // swapCache may throw exception if the isn't a previous cache
- try {
- window.applicationCache.swapCache();
- } catch(v) {}
-
- window.location.reload();
- return;
- }
-
- $('#loading .complete').stop(true,true).animate({width: 200}, {complete: trackerInit });
-};
-
// loads the tracker interface
function trackerInit() {
$('#loading,#settingsbox,#aboutbox,#chasebox').hide(); // welcome screen
@@ -224,21 +203,6 @@ function trackerInit() {
// if for some reason, applicationCache is not working, load the app after a 3s timeout
var initTimer = setTimeout(trackerInit, 3000);
-var cache = window.applicationCache;
-// TEMPORARILY DISABLED - MJ 2020-08-29
-// Application Cache is broken in recent chrome versions/
-// Disabling these addEventListener calls at least makes the rest of the page load.
-// Unsure what the implications of disabling these are.
-
-//cache.addEventListener('noupdate', loadComplete, false);
-//cache.addEventListener('updateready', loadComplete, false);
-//cache.addEventListener('cached', loadComplete, false);
-//cache.addEventListener('error', loadComplete, false);
-
-// if the browser supports progress events, display a loading bar
-//cache.addEventListener('checking', function() { if(map && !force_check_cache) return; force_check_cache = false; clearTimeout(initTimer); $('#loading .bar,#loading').show(); $('#loading .complete').css({width: 0}); }, false);
-//cache.addEventListener('progress', function(e) { $('#loading .complete').stop(true,true).animate({width: (200/e.total)*e.loaded}); }, false);
-
var listScroll;
var GPS_ts = null;
var GPS_lat = null;
@@ -875,22 +839,6 @@ $(window).ready(function() {
if(offline.get(opt_name)) $(switch_id).removeClass('off').addClass('on');
}
- // force re-cache
- $('#sw_cache').click(function() {
- var e = $(this).removeClass('off').addClass('on');
- if(confirm("The app will automatically reload, if new version is available.")) {
- force_check_cache = true;
-
- try {
- applicationCache.update();
- } catch (v) {
- force_check_cache = false;
- alert("There is no applicationCache available");
- }
- }
- e.removeClass('on').addClass('off');
- });
-
// We are able to get GPS position on idevices, if the user allows
// The position is displayed in top right corner of the screen
// This should be very handly for in the field tracking
diff --git a/js/tracker.js b/js/tracker.js
index 294453d..f5c5857 100644
--- a/js/tracker.js
+++ b/js/tracker.js
@@ -2311,7 +2311,20 @@ function addPosition(position) {
marker = new L.Marker(point, {
title: vcallsign,
zIndexOffset: Z_CAR,
- }).addTo(map).on('click', onClick);
+ });
+
+ if(!!!window.HTMLCanvasElement) {
+ carIcon = L.icon({
+ iconUrl: image_src,
+ iconSize: image_src_size,
+ iconAnchor: [27.22],
+ tooltipAnchor: [0,-32],
+ });
+ marker.setIcon(new carIcon);
+ } else {
+ marker_rotate_setup(marker, image_src);
+ }
+ marker.addTo(map).on('click', onClick);
// Scroll list stuff here.
function onClick(e) {
@@ -2325,18 +2338,6 @@ function addPosition(position) {
refreshSingleNew(_vehicle_id);
};
- if(!!!window.HTMLCanvasElement) {
- carIcon = L.icon({
- iconUrl: image_src,
- iconSize: image_src_size,
- iconAnchor: [27.22],
- tooltipAnchor: [0,-32],
- });
- marker.setIcon(new carIcon);
- } else {
- marker_rotate_setup(marker, image_src);
- }
- marker.addTo(map);
polyline = [
new L.Polyline(point, {
color: car_colors[color_index],
diff --git a/opensearchspec.xml b/opensearchspec.xml
index 39a883e..79cb7c1 100644
--- a/opensearchspec.xml
+++ b/opensearchspec.xml
@@ -1,10 +1,10 @@
- Habhub Tracker
- Habhub Tracker - Search
+ SondeHub Tracker
+ SondeHub Tracker - Search
UTF-8
hello@rgp.io
- https://tracker.habhub.org/favicon.ico
- Rossen Georgiev
-
+ https://sondehub.org/favicon.ico
+ Luke Prior
+
diff --git a/track.kml b/track.kml
deleted file mode 100644
index f177049..0000000
--- a/track.kml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- habhub tracker (GE)
- Live tracking of high altitude balloons via Google Earth
-
- http://spacenear.us/tracker/datanew.php?format=kml&mode=2days&vehicles=!RS_*;
- onInterval
- 20
-
-
-
-
-