commit
3b3a372945
@ -41,27 +41,6 @@ window.setupDataTileParams = function() {
|
|||||||
window.TILE_PARAMS.TILES_PER_EDGE = DEFAULT_ZOOM_TO_TILES_PER_EDGE;
|
window.TILE_PARAMS.TILES_PER_EDGE = DEFAULT_ZOOM_TO_TILES_PER_EDGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// disable SHOW_MORE_PORTALS if it would be unfriendly to the servers (i.e. result in more requests)
|
|
||||||
// needs to be fired a bit later, after plugins have been initialised
|
|
||||||
setTimeout(function(){
|
|
||||||
if (window.CONFIG_ZOOM_SHOW_MORE_PORTALS) {
|
|
||||||
if (window.TILE_PARAMS.TILES_PER_EDGE[17] > window.TILE_PARAMS.TILES_PER_EDGE[15]) {
|
|
||||||
var edgeScale = window.TILE_PARAMS.TILES_PER_EDGE[17]/window.TILE_PARAMS.TILES_PER_EDGE[15];
|
|
||||||
var mapScale = edgeScale*edgeScale;
|
|
||||||
|
|
||||||
dialog({
|
|
||||||
title: 'Show more portals plugin disabled',
|
|
||||||
width: 400,
|
|
||||||
text: 'The "show-more-portals" plugin has been disabled.\n\n'
|
|
||||||
+'Niantic have changed the intel site so that zoom level 17 (all portals) now needs '+mapScale+' times more requests than level 15 (L1+ portals), so fetching at the wrong zoom level will be unfriendly to the servers\n\n'
|
|
||||||
+'Don\'t like this? Ask Niantic to change the standard intel site, then IITC can match and all would benifit.'
|
|
||||||
});
|
|
||||||
|
|
||||||
window.CONFIG_ZOOM_SHOW_MORE_PORTALS=false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, 1);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -100,11 +79,20 @@ window.getDataZoomForMapZoom = function(zoom) {
|
|||||||
|
|
||||||
// firstly, some of IITCs zoom levels, depending on base map layer, can be higher than stock. limit zoom level
|
// firstly, some of IITCs zoom levels, depending on base map layer, can be higher than stock. limit zoom level
|
||||||
// (stock site max zoom may vary depending on google maps detail in the area - 20 or 21 max is common)
|
// (stock site max zoom may vary depending on google maps detail in the area - 20 or 21 max is common)
|
||||||
if (zoom > 20) {
|
if (zoom > 21) {
|
||||||
zoom = 20;
|
zoom = 21;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (window.CONFIG_ZOOM_SHOW_MORE_PORTALS) {
|
||||||
|
// slightly unfriendly to the servers, requesting more, but smaller, tiles, for the 'unclaimed' level of detail
|
||||||
|
// however, server load issues are all related to the map area in view, with no real issues related to detail level
|
||||||
|
// therefore, I believel we can get away with these smaller tiles for one or two further zoom levels without issues
|
||||||
|
|
||||||
|
if (zoom == 16) {
|
||||||
|
zoom = 17;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var origTileParams = getMapZoomTileParameters(zoom);
|
|
||||||
|
|
||||||
if (!window.CONFIG_ZOOM_DEFAULT_DETAIL_LEVEL) {
|
if (!window.CONFIG_ZOOM_DEFAULT_DETAIL_LEVEL) {
|
||||||
|
|
||||||
@ -112,6 +100,8 @@ window.getDataZoomForMapZoom = function(zoom) {
|
|||||||
// to avoid impacting server load, we keep ourselves restricted to a zoom level with the sane numbre
|
// to avoid impacting server load, we keep ourselves restricted to a zoom level with the sane numbre
|
||||||
// of tilesPerEdge and portal levels visible
|
// of tilesPerEdge and portal levels visible
|
||||||
|
|
||||||
|
var origTileParams = getMapZoomTileParameters(zoom);
|
||||||
|
|
||||||
while (zoom > MIN_ZOOM) {
|
while (zoom > MIN_ZOOM) {
|
||||||
var newTileParams = getMapZoomTileParameters(zoom-1);
|
var newTileParams = getMapZoomTileParameters(zoom-1);
|
||||||
if (newTileParams.tilesPerEdge != origTileParams.tilesPerEdge || newTileParams.level != origTileParams.level) {
|
if (newTileParams.tilesPerEdge != origTileParams.tilesPerEdge || newTileParams.level != origTileParams.level) {
|
||||||
@ -126,15 +116,6 @@ window.getDataZoomForMapZoom = function(zoom) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.CONFIG_ZOOM_SHOW_MORE_PORTALS) {
|
|
||||||
// this is, in theory, slightly 'unfriendly' to the servers. in practice, this isn't the case - and it can even be nicer
|
|
||||||
// as it vastly improves cacheing in IITC and also reduces the amount of panning/zooming a user would do
|
|
||||||
if (zoom >= 15 && zoom <= 16) {
|
|
||||||
//L1+ and closer zooms. the 'all portals' zoom uses the same tile size, so it's no harm to request things at that zoom level
|
|
||||||
zoom = 17;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return zoom;
|
return zoom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
main.js
2
main.js
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id ingress-intel-total-conversion@jonatkins
|
// @id ingress-intel-total-conversion@jonatkins
|
||||||
// @name IITC: Ingress intel map total conversion
|
// @name IITC: Ingress intel map total conversion
|
||||||
// @version 0.22.3.@@DATETIMEVERSION@@
|
// @version 0.22.4.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.cradle.iitc_mobile"
|
package="com.cradle.iitc_mobile"
|
||||||
android:installLocation="auto"
|
android:installLocation="auto"
|
||||||
android:versionCode="96"
|
android:versionCode="97"
|
||||||
android:versionName="0.22.3">
|
android:versionName="0.22.4">
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="14"
|
android:minSdkVersion="14"
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
// @id iitc-plugin-show-more-portals@jonatkins
|
// @id iitc-plugin-show-more-portals@jonatkins
|
||||||
// @name IITC plugin: Show more portals
|
// @name IITC plugin: Show more portals
|
||||||
// @category Tweaks
|
// @category Tweaks
|
||||||
// @version 0.2.0.@@DATETIMEVERSION@@
|
// @version 0.2.1.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Boost the detail level of portals shown so that unclaimed portals are visible when normally L1+ portals would be shown. Recent protocol changes by Niantic means this no longer sends more requests than the standard intel site, and can mean fewer requests.
|
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Boost the detail level of portals shown so that unclaimed portals are visible one level saooner.
|
||||||
// @include https://www.ingress.com/intel*
|
// @include https://www.ingress.com/intel*
|
||||||
// @include http://www.ingress.com/intel*
|
// @include http://www.ingress.com/intel*
|
||||||
// @match https://www.ingress.com/intel*
|
// @match https://www.ingress.com/intel*
|
||||||
|
@ -13,41 +13,18 @@ offers many more features. It is available for
|
|||||||
|
|
||||||
<h3>Latest news</h3>
|
<h3>Latest news</h3>
|
||||||
|
|
||||||
<h4>4th April 2015</h4>
|
<h4>8th May 2015</h4>
|
||||||
<p>
|
<p>
|
||||||
IITC 0.22.2 has been released. This is a critical update needed to fix portal loading at some zoom levels.
|
IITC 0.22.3 has been released. Changes include
|
||||||
</p>
|
|
||||||
|
|
||||||
<h4>20th March 2015</h4>
|
|
||||||
<p>
|
|
||||||
IITC 0.22.1 has been released. This is a critical update needed to fix COMM after a recent Niantic site update.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Other changes
|
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Fix Shōnin artifacts on the map and portal details</li>
|
<li>Lightman Shards supported</li>
|
||||||
<li>distance-to-portal plugin: integrate with portals list plugin</li>
|
<li>Workaround for map loading not reaching 100%</li>
|
||||||
<li>missions: start of work for missions support. It will take some time to support them completely, but for now there's a highlighter for mission start points</li>
|
<li>IITC Mobile: fix dialogs not appearing on Android 5 with the System WebView update</li>
|
||||||
|
<li>Remove unnecessary prompt on botguard script response</li>
|
||||||
|
<li>Plugin: Missions - full mission support</li>
|
||||||
|
<li>Plugin: show-linked-portals - more details shown</li>
|
||||||
|
<li>Plugin: show-more-portals - enabled again for one zoom level</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4>27th Febuary 2015</h4>
|
|
||||||
<p>
|
|
||||||
IITC 0.22.0 has been released. This is a critical update needed to fix loading of portal details after the recent
|
|
||||||
Niantic site update.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Major update to IITC's search system. Multiple search results are listed and specific results selected.
|
|
||||||
Visible portals are also searched, numerical lat/lng search added, and some plugins also integrate with the new
|
|
||||||
search feature: player-tracker (player name search), regions (region name search), bookmarks,
|
|
||||||
<p>
|
|
||||||
<ul>
|
|
||||||
<li>needs-recharge highlighter: colours/opacity tweaked, should be clearer now</li>
|
|
||||||
<li>show-linked-portals: fix bugs, and highlight link/target portal on hover</li>
|
|
||||||
<li>new plugin: distance-to-portal. Manually set your location, and the distance to the selected portal is shown</li>
|
|
||||||
</ul>
|
|
||||||
<p>
|
|
||||||
...plus other minor bug fixes and optimisations.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<a class="btn btn-default btn-sm" href="?page=news">Older news</a>
|
<a class="btn btn-default btn-sm" href="?page=news">Older news</a>
|
||||||
|
@ -1,5 +1,19 @@
|
|||||||
<h2>News</h2>
|
<h2>News</h2>
|
||||||
|
|
||||||
|
<h4>8th May 2015</h4>
|
||||||
|
<p>
|
||||||
|
IITC 0.22.3 has been released. Changes include
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>Lightman Shards supported</li>
|
||||||
|
<li>Workaround for map loading not reaching 100%</li>
|
||||||
|
<li>IITC Mobile: fix dialogs not appearing on Android 5 with the System WebView update</li>
|
||||||
|
<li>Remove unnecessary prompt on botguard script response</li>
|
||||||
|
<li>Plugin: Missions - full mission support</li>
|
||||||
|
<li>Plugin: show-linked-portals - more details shown</li>
|
||||||
|
<li>Plugin: show-more-portals - enabled again for one zoom level</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<h4>4th April 2015</h4>
|
<h4>4th April 2015</h4>
|
||||||
<p>
|
<p>
|
||||||
IITC 0.22.2 has been released. This is a critical update needed to fix portal loading at some zoom levels.
|
IITC 0.22.2 has been released. This is a critical update needed to fix portal loading at some zoom levels.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user