remove pointless change of selected portal highlight colour in all highlighter plugins - make it the default instead
also tweaks to the show-more-portals plugin
This commit is contained in:
parent
07c28538fd
commit
4f5f47831a
2
main.js
2
main.js
@ -155,7 +155,7 @@ window.FIELD_MU_DISPLAY_AREA_ZOOM_RATIO = 0.001;
|
|||||||
// Point tolerance for displaying MU's
|
// Point tolerance for displaying MU's
|
||||||
window.FIELD_MU_DISPLAY_POINT_TOLERANCE = 60
|
window.FIELD_MU_DISPLAY_POINT_TOLERANCE = 60
|
||||||
|
|
||||||
window.COLOR_SELECTED_PORTAL = '#f00';
|
window.COLOR_SELECTED_PORTAL = '#f0f';
|
||||||
window.COLORS = ['#FF9900', '#0088FF', '#03DC03']; // none, res, enl
|
window.COLORS = ['#FF9900', '#0088FF', '#03DC03']; // none, res, enl
|
||||||
window.COLORS_LVL = ['#000', '#FECE5A', '#FFA630', '#FF7315', '#E40000', '#FD2992', '#EB26CD', '#C124E0', '#9627F4'];
|
window.COLORS_LVL = ['#000', '#FECE5A', '#FFA630', '#FF7315', '#E40000', '#FD2992', '#EB26CD', '#C124E0', '#9627F4'];
|
||||||
window.COLORS_MOD = {VERY_RARE: '#F78AF6', RARE: '#AD8AFF', COMMON: '#84FBBD'};
|
window.COLORS_MOD = {VERY_RARE: '#F78AF6', RARE: '#AD8AFF', COMMON: '#84FBBD'};
|
||||||
|
@ -35,7 +35,6 @@ window.plugin.portalHighlighterBadDeploymentDistance.highlight = function(data)
|
|||||||
data.portal.setStyle(params);
|
data.portal.setStyle(params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -33,8 +33,6 @@ window.plugin.portalHighligherPortalsCanMakeLevel.highlight = function(data,high
|
|||||||
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
||||||
fillOpacity: 0.5});
|
fillOpacity: 0.5});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//determines the level of poral a user can make all on their own
|
//determines the level of poral a user can make all on their own
|
||||||
|
@ -47,7 +47,6 @@ window.plugin.portalInfrastructure.highlight = function(data) {
|
|||||||
if(color !== '') {
|
if(color !== '') {
|
||||||
var params = {fillColor: color, fillOpacity: opa};
|
var params = {fillColor: color, fillOpacity: opa};
|
||||||
data.portal.setStyle(params);
|
data.portal.setStyle(params);
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,6 @@ window.plugin.portalHighligherPortalsLevelColor.colorLevel = function(data) {
|
|||||||
var portal_level = Math.floor(getPortalLevel(d));
|
var portal_level = Math.floor(getPortalLevel(d));
|
||||||
var opacity = .6;
|
var opacity = .6;
|
||||||
data.portal.setStyle({fillColor: COLORS_LVL[portal_level], fillOpacity: opacity});
|
data.portal.setStyle({fillColor: COLORS_LVL[portal_level], fillOpacity: opacity});
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -52,7 +52,6 @@ window.plugin.portalsMissingResonators.highlight = function(data) {
|
|||||||
dashArray: null});
|
dashArray: null});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -52,8 +52,6 @@ window.plugin.portalHighligherMods.highlight = function(data, mod_type) {
|
|||||||
var params = {fillColor: color, fillOpacity: fill_opacity};
|
var params = {fillColor: color, fillOpacity: fill_opacity};
|
||||||
data.portal.setStyle(params);
|
data.portal.setStyle(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.portalHighligherMods.highlightNoMods = function(data) {
|
window.plugin.portalHighligherMods.highlightNoMods = function(data) {
|
||||||
@ -73,8 +71,6 @@ window.plugin.portalHighligherMods.highlightNoMods = function(data) {
|
|||||||
var params = {fillColor: color, fillOpacity: fill_opacity};
|
var params = {fillColor: color, fillOpacity: fill_opacity};
|
||||||
data.portal.setStyle(params);
|
data.portal.setStyle(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@ window.plugin.portalHighligherMy8sOnPortals.highlight = function(data) {
|
|||||||
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -62,7 +62,6 @@ window.plugin.portalHighligherMyPortals.highlight = function(data) {
|
|||||||
fillOpacity: 0.5});
|
fillOpacity: 0.5});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -35,7 +35,6 @@ window.plugin.portalHighligherNeedsRecharge.highlight = function(data) {
|
|||||||
data.portal.setStyle(params);
|
data.portal.setStyle(params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -58,7 +58,6 @@ window.plugin.portalHighligherPortalAPPerEnergyRelative.highlight = function(dat
|
|||||||
opacity = 1;
|
opacity = 1;
|
||||||
}
|
}
|
||||||
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,6 @@ window.plugin.portalHighligherPortalAPRelative.highlight = function(data) {
|
|||||||
opacity = 1;
|
opacity = 1;
|
||||||
}
|
}
|
||||||
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.portalHighligherPortalAPRelative.resetAPLevels = function() {
|
window.plugin.portalHighligherPortalAPRelative.resetAPLevels = function() {
|
||||||
|
@ -49,7 +49,6 @@ window.plugin.portalHighligherPortalAP.highlight = function(data) {
|
|||||||
opacity = 1;
|
opacity = 1;
|
||||||
}
|
}
|
||||||
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -42,7 +42,6 @@ window.plugin.portalHighligherPortalsMyLevel.colorLevel = function(below,data) {
|
|||||||
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
||||||
fillOpacity: 0.5});
|
fillOpacity: 0.5});
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -45,8 +45,6 @@ window.plugin.portalHighligherPortalsUpgrade.highlight = function(data) {
|
|||||||
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
||||||
fillOpacity: 0.5});
|
fillOpacity: 0.5});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -42,8 +42,7 @@ window.plugin.portalsWithL8Resonators.highlight = function(data) {
|
|||||||
var opa = has_L8 * 0.125;
|
var opa = has_L8 * 0.125;
|
||||||
var params = {fillColor: color, fillOpacity: opa};
|
var params = {fillColor: color, fillOpacity: opa};
|
||||||
data.portal.setStyle(params);
|
data.portal.setStyle(params);
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
@ -35,9 +35,12 @@ window.plugin.showMorePortals.setup = function() {
|
|||||||
// yes, it is possible to increase this beyond "+1" - however, that will end up producing a rediculous number
|
// yes, it is possible to increase this beyond "+1" - however, that will end up producing a rediculous number
|
||||||
// of requests to the Niantic servers, giving many request failed errors/tile timeouts
|
// of requests to the Niantic servers, giving many request failed errors/tile timeouts
|
||||||
// (every increase by one requests four times as many data tiles)
|
// (every increase by one requests four times as many data tiles)
|
||||||
|
var z = mapZoom + 1;
|
||||||
|
|
||||||
// UPDATE: due to the new smaller tiles used when zoomed out further (getThinnedEntitiesV4), it gets silly
|
// UPDATE: due to the new smaller tiles used when zoomed out further (getThinnedEntitiesV4), it gets silly
|
||||||
// doing this when zoomed out. so only boost when zoomed in
|
// doing this when zoomed out. so only boost when zoomed in
|
||||||
var z = mapZoom > 12 ? mapZoom + 1 : mapZoom;
|
if (z <= 12) z = mapZoom;
|
||||||
|
|
||||||
|
|
||||||
// limiting the mazimum zoom level for data retrieval reduces the number of requests at high zoom levels
|
// limiting the mazimum zoom level for data retrieval reduces the number of requests at high zoom levels
|
||||||
// (as all portal data is retrieved at z=17, why retrieve multiple z=18 tiles when fewer z=17 would do?)
|
// (as all portal data is retrieved at z=17, why retrieve multiple z=18 tiles when fewer z=17 would do?)
|
||||||
|
@ -82,7 +82,6 @@ window.plugin.portalWeakness.highlightWeakness = function(data) {
|
|||||||
dashArray: null});
|
dashArray: null});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.COLOR_SELECTED_PORTAL = '#f0f';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user