Skip to content

Commit

Permalink
Merge pull request #1285 from gusowski1/delete_mapquest_open_arial
Browse files Browse the repository at this point in the history
Delete mapquest open arial
  • Loading branch information
fkloft authored Oct 31, 2018
2 parents 0510bdf + 305d24e commit f904527
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions plugins/basemap-mapquest-open-aerial.user.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// ==UserScript==
// @id iitc-plugin-basemap-mapquest-open-aerial@jonatkins
// @name IITC plugin: MapQuest Open Satellite view (US Only)
// @category Map Tiles
// @version 0.1.1.@@DATETIMEVERSION@@
// @category Deleted
// @version 0.0.0
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Add the MapQuest Open Aerial satellite view tiles as a map layer. High detail in the US (lower 48) only.
// @description MapQuest doesn't support this anymore: https://lists.openstreetmap.org/pipermail/tile-serving/2016-June/003928.html
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
Expand All @@ -17,28 +17,3 @@
// @match http://*.ingress.com/mission/*
// @grant none
// ==/UserScript==

@@PLUGINSTART@@

// PLUGIN START ////////////////////////////////////////////////////////


// use own namespace for plugin
window.plugin.mapTileMapQuestSat = function() {};

window.plugin.mapTileMapQuestSat.addLayer = function() {

var mqSubdomains = [ 'otile1','otile2', 'otile3', 'otile4' ];
var mqTileUrlPrefix = window.location.protocol !== 'https:' ? 'http://{s}.mqcdn.com' : 'https://{s}-s.mqcdn.com';
//MapQuest satellite coverage outside of the US is rather limited - so not really worth having as we have google as an op!
var mqSatOpt = {attribution: 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency', maxNativeZoom: 18, maxZoom: 21, subdomains: mqSubdomains};
var mqSat = new L.TileLayer('http://{s}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg',mqSatOpt);

layerChooser.addBaseLayer(mqSat, "MapQuest Open Satellite");
};

var setup = window.plugin.mapTileMapQuestSat.addLayer;

// PLUGIN END //////////////////////////////////////////////////////////

@@PLUGINEND@@

0 comments on commit f904527

Please sign in to comment.