diff --git a/code/map_data_calc_tools.js b/code/map_data_calc_tools.js index 8094b53a1..76dbd731c 100755 --- a/code/map_data_calc_tools.js +++ b/code/map_data_calc_tools.js @@ -110,31 +110,26 @@ window.getDataZoomForMapZoom = function(zoom) { zoom = 21; } - - if (!window.CONFIG_ZOOM_DEFAULT_DETAIL_LEVEL) { - - // to improve the cacheing performance, we try and limit the number of zoom levels we retrieve data for - // to avoid impacting server load, we keep ourselves restricted to a zoom level with the sane numbre - // of tilesPerEdge and portal levels visible - - var origTileParams = getMapZoomTileParameters(zoom); - - while (zoom > MIN_ZOOM) { - var newTileParams = getMapZoomTileParameters(zoom-1); - - if ( newTileParams.tilesPerEdge != origTileParams.tilesPerEdge - || newTileParams.hasPortals != origTileParams.hasPortals - || newTileParams.level*newTileParams.hasPortals != origTileParams.level*origTileParams.hasPortals // multiply by 'hasPortals' bool - so comparison does not matter when no portals available - ) { - // switching to zoom-1 would result in a different detail level - so we abort changing things - break; - } else { - // changing to zoom = zoom-1 results in identical tile parameters - so we can safely step back - // with no increase in either server load or number of requests - zoom = zoom-1; - } + // to improve the cacheing performance, we try and limit the number of zoom levels we retrieve data for + // to avoid impacting server load, we keep ourselves restricted to a zoom level with the sane number + // of tilesPerEdge and portal levels visible + + var origTileParams = getMapZoomTileParameters(zoom); + + while (zoom > MIN_ZOOM) { + var newTileParams = getMapZoomTileParameters(zoom-1); + + if ( newTileParams.tilesPerEdge != origTileParams.tilesPerEdge + || newTileParams.hasPortals != origTileParams.hasPortals + || newTileParams.level*newTileParams.hasPortals != origTileParams.level*origTileParams.hasPortals // multiply by 'hasPortals' bool - so comparison does not matter when no portals available + ) { + // switching to zoom-1 would result in a different detail level - so we abort changing things + break; + } else { + // changing to zoom = zoom-1 results in identical tile parameters - so we can safely step back + // with no increase in either server load or number of requests + zoom = zoom-1; } - } return zoom; diff --git a/plugins/compute-ap-stats.user.js b/plugins/ap-stats.user.js similarity index 99% rename from plugins/compute-ap-stats.user.js rename to plugins/ap-stats.user.js index 81da1aa22..dbebb1db1 100644 --- a/plugins/compute-ap-stats.user.js +++ b/plugins/ap-stats.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @id iitc-plugin-compute-ap-stats@Hollow011 -// @name IITC plugin: Compute AP statistics +// @name IITC plugin: Available AP statistics // @category Info // @version 0.4.1.@@DATETIMEVERSION@@ // @description [@@BUILDNAME@@-@@BUILDDATE@@] Displays the per-team AP gains available in the current view. diff --git a/plugins/basemap-gmaps-gray.user.js b/plugins/basemap-google-gray.user.js similarity index 96% rename from plugins/basemap-gmaps-gray.user.js rename to plugins/basemap-google-gray.user.js index c8f09a326..ff9ff21f4 100644 --- a/plugins/basemap-gmaps-gray.user.js +++ b/plugins/basemap-google-gray.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @id iitc-plugin-basemap-gmaps-gray@jacob1123 -// @name IITC plugin: Gray Google Roads +// @name IITC plugin: Gray Google map // @category Map Tiles // @version 0.1.3.@@DATETIMEVERSION@@ // @description [@@BUILDNAME@@-@@BUILDDATE@@] Add a simplified gray Version of Google map tiles as an optional layer. diff --git a/plugins/basemap-openstreetmap.user.js b/plugins/basemap-openstreetmap.user.js index 25000e178..a44d62e8a 100644 --- a/plugins/basemap-openstreetmap.user.js +++ b/plugins/basemap-openstreetmap.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @id iitc-plugin-basemap-openstreetpam@jonatkins -// @name IITC plugin: OpenStreetMap.org map tiles +// @name IITC plugin: OpenStreetMap.org map // @category Map Tiles // @version 0.1.1.@@DATETIMEVERSION@@ // @description [@@BUILDNAME@@-@@BUILDDATE@@] Add the native OpenStreetMap.org map tiles as an optional layer. diff --git a/plugins/bookmarks-by-zaso.css b/plugins/bookmarks.css similarity index 100% rename from plugins/bookmarks-by-zaso.css rename to plugins/bookmarks.css diff --git a/plugins/bookmarks-by-zaso.user.js b/plugins/bookmarks.user.js similarity index 99% rename from plugins/bookmarks-by-zaso.user.js rename to plugins/bookmarks.user.js index cd02f51e6..55acd4556 100644 --- a/plugins/bookmarks-by-zaso.user.js +++ b/plugins/bookmarks.user.js @@ -1131,7 +1131,7 @@ /***************************************************************************************************************************************************************/ window.plugin.bookmarks.setupCSS = function() { - $(''); } -var setup = window.plugin.maxLinks.setup; +var setup = window.plugin.tidyLinks.setup; // PLUGIN END ////////////////////////////////////////////////////////// diff --git a/plugins/zoom-slider.user.js b/plugins/zoom-slider.user.js index c416f7c20..6a469190a 100644 --- a/plugins/zoom-slider.user.js +++ b/plugins/zoom-slider.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @id iitc-plugin-zoom-slider@fragger -// @name IITC plugin: zoom slider +// @name IITC plugin: Zoom slider // @category Controls // @version 0.1.1.@@DATETIMEVERSION@@ // @description [@@BUILDNAME@@-@@BUILDDATE@@] Show a zoom slider on the map instead of the zoom buttons.