-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http → https, in maps. Removed maps that closed. #21
- Loading branch information
Showing
6 changed files
with
9 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,8 @@ | ||
// ==UserScript== | ||
// @id iitc-plugin-basemap-kartverket@sollie | ||
// @name IITC plugin: Kartverket.no map tiles | ||
// @category Map Tiles | ||
// @category Deleted | ||
// @version 0.1.0.@@DATETIMEVERSION@@ | ||
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Add the color and grayscale map tiles from Kartverket.no as an optional layer. | ||
@@METAINFO@@ | ||
// ==/UserScript== | ||
|
||
@@PLUGINSTART@@ | ||
|
||
// PLUGIN START //////////////////////////////////////////////////////// | ||
|
||
|
||
// use own namespace for plugin | ||
window.plugin.mapTileKartverketMap = function() {}; | ||
|
||
window.plugin.mapTileKartverketMap.addLayer = function() { | ||
|
||
// Map data from Kartverket (http://statkart.no/en/) | ||
kartverketAttribution = 'Map data © Kartverket'; | ||
var kartverketOpt = {attribution: kartverketAttribution, maxNativeZoom: 18, maxZoom: 21, subdomains: ['opencache', 'opencache2', 'opencache3']}; | ||
var kartverketTopo2 = new L.TileLayer('http://{s}.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=topo2&zoom={z}&x={x}&y={y}', kartverketOpt); | ||
var kartverketTopo2Grayscale = new L.TileLayer('http://{s}.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=topo2graatone&zoom={z}&x={x}&y={y}', kartverketOpt); | ||
|
||
layerChooser.addBaseLayer(kartverketTopo2, "Norway Topo"); | ||
layerChooser.addBaseLayer(kartverketTopo2Grayscale, "Norway Topo Grayscale"); | ||
}; | ||
|
||
var setup = window.plugin.mapTileKartverketMap.addLayer; | ||
|
||
// PLUGIN END ////////////////////////////////////////////////////////// | ||
|
||
@@PLUGINEND@@ | ||
|
||
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,8 @@ | ||
// ==UserScript== | ||
// @id iitc-plugin-nokia-ovi-maps | ||
// @name IITC plugin: Nokia OVI maps | ||
// @category Map Tiles | ||
// @category Deleted | ||
// @version 0.1.3.@@DATETIMEVERSION@@ | ||
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Add various map layers from Nokia OVI Maps. | ||
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Nokia OVI Maps was closed. | ||
@@METAINFO@@ | ||
// ==/UserScript== | ||
|
||
@@PLUGINSTART@@ | ||
|
||
// PLUGIN START //////////////////////////////////////////////////////// | ||
|
||
window.plugin.mapNokiaOvi = function() {}; | ||
|
||
window.plugin.mapNokiaOvi.setup = function() { | ||
//the list of styles you'd like to see | ||
var oviStyles = { | ||
'normal.day': { name: "Normal", type: 'png8' }, | ||
'normal.day.grey': { name: "Normal (grey)", type: 'png8' }, | ||
'normal.day.transit': { name: "Normal (transit)", type: 'png8' }, | ||
'satellite.day': { name: "Satellite", type: 'jpg' }, | ||
'terrain.day': { name: "Terrain", type: 'png8' }, //would jpg be better? | ||
'normal.night.grey': { name: "Normal Night (grey)", type: 'png8' }, | ||
}; | ||
|
||
|
||
var oviOpt = {attribution: 'Imagery © Nokia OVI', maxNativeZoom: 20, maxZoom: 21}; | ||
|
||
$.each(oviStyles, function(style,data) { | ||
oviOpt['style'] = style; | ||
oviOpt['type'] = data.type; | ||
var oviMap = new L.TileLayer('http://{s}.maptile.maps.svc.ovi.com/maptiler/maptile/newest/{style}/{z}/{x}/{y}/256/{type}', oviOpt); | ||
layerChooser.addBaseLayer(oviMap, 'Nokia OVI '+data.name); | ||
}); | ||
|
||
}; | ||
|
||
var setup = window.plugin.mapNokiaOvi.setup; | ||
|
||
// PLUGIN END ////////////////////////////////////////////////////////// | ||
|
||
@@PLUGINEND@@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8b0de52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we apply these instead?
iitc-project/ingress-intel-total-conversion#1282
iitc-project/ingress-intel-total-conversion#1288
8b0de52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is planned
#2
Just I wanted everything to work in the release