basemap cleanups
- updated Google, Bing and Yandex externals from https://github.com/shramov/leaflet-plugins - also renamed Google file, removed internal hacks for INGRESS map type - used external included file for Bing maps, instead of embedded in the plugin - used Google map tile API to set the options for the INGRESS and 'Google Grey' map layers
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
// @id iitc-plugin-basemap-gmaps-gray@jacob1123
|
||||
// @name IITC plugin: Gray Google Roads
|
||||
// @category Map Tiles
|
||||
// @version 0.1.0.@@DATETIMEVERSION@@
|
||||
// @version 0.1.1.@@DATETIMEVERSION@@
|
||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||
// @updateURL @@UPDATEURL@@
|
||||
// @downloadURL @@DOWNLOADURL@@
|
||||
@ -21,14 +21,29 @@
|
||||
// use own namespace for plugin
|
||||
window.plugin.grayGMaps = function() {};
|
||||
window.plugin.grayGMaps.addLayer = function() {
|
||||
var grayGMaps = new L.Google('ROADMAPS',{maxZoom:20});
|
||||
grayGMaps._styles = [{featureType:"landscape.natural",stylers:[{visibility:"simplified"},{saturation:-100},{lightness:-80},{gamma:2.44}]},{featureType:"road",stylers:[{visibility:"simplified"},{color:"#bebebe"},{weight:.6}]},{featureType:"poi",stylers:[{saturation:-100},{visibility:"on"},{gamma:.14}]},{featureType:"water",stylers:[{color:"#32324f"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi"},{featureType:"landscape.man_made",stylers:[{saturation:-100},{gamma:.13}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}]
|
||||
var grayGMapsOptions = {
|
||||
backgroundColor: '#0e3d4e', //or #dddddd ? - that's the Google tile layer default
|
||||
styles: [
|
||||
{featureType:"landscape.natural",stylers:[{visibility:"simplified"},{saturation:-100},{lightness:-80},{gamma:2.44}]},
|
||||
{featureType:"road",stylers:[{visibility:"simplified"},{color:"#bebebe"},{weight:.6}]},
|
||||
{featureType:"poi",stylers:[{saturation:-100},{visibility:"on"},{gamma:.14}]},
|
||||
{featureType:"water",stylers:[{color:"#32324f"}]},
|
||||
{featureType:"transit",stylers:[{visibility:"off"}]},
|
||||
{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},
|
||||
{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},
|
||||
{featureType:"poi"},
|
||||
{featureType:"landscape.man_made",stylers:[{saturation:-100},{gamma:.13}]},
|
||||
{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}
|
||||
]
|
||||
};
|
||||
|
||||
layerChooser.addBaseLayer(grayGMaps, "Google Gray");
|
||||
var grayGMaps = new L.Google('ROA#DMAP',{maxZoom:20, mapOptions: grayGMapsOptions});
|
||||
|
||||
layerChooser.addBaseLayer(grayGMaps, "Google Gray");
|
||||
};
|
||||
|
||||
var setup = window.plugin.grayGMaps.addLayer;
|
||||
|
||||
// PLUGIN END //////////////////////////////////////////////////////////
|
||||
|
||||
@@PLUGINEND@@
|
||||
@@PLUGINEND@@
|
||||
|
Reference in New Issue
Block a user