X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c4abe8eb2826d39f98e898f48659df336438f802..4a72ba3bd4fdcb85afb187c90e5ceeaae5d7e2f2:/vendor/assets/openlayers/OpenStreetMap.js diff --git a/vendor/assets/openlayers/OpenStreetMap.js b/vendor/assets/openlayers/OpenStreetMap.js deleted file mode 100644 index 44e338bbe..000000000 --- a/vendor/assets/openlayers/OpenStreetMap.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Class: OpenLayers.Layer.OSM.Mapnik - * - * Inherits from: - * - - */ -OpenLayers.Layer.OSM.Mapnik = OpenLayers.Class(OpenLayers.Layer.OSM, { - /** - * Constructor: OpenLayers.Layer.OSM.Mapnik - * - * Parameters: - * name - {String} - * options - {Object} Hashtable of extra options to tag onto the layer - */ - initialize: function(name, options) { - var url = [ - "https://a.tile.openstreetmap.org/${z}/${x}/${y}.png", - "https://b.tile.openstreetmap.org/${z}/${x}/${y}.png", - "https://c.tile.openstreetmap.org/${z}/${x}/${y}.png" - ]; - options = OpenLayers.Util.extend({ - numZoomLevels: 20, - attribution: "© OpenStreetMap contributors", - buffer: 0, - transitionEffect: "resize" - }, options); - var newArguments = [name, url, options]; - OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); - }, - - CLASS_NAME: "OpenLayers.Layer.OSM.Mapnik" -}); - -/** - * Class: OpenLayers.Layer.OSM.CycleMap - * - * Inherits from: - * - - */ -OpenLayers.Layer.OSM.CycleMap = OpenLayers.Class(OpenLayers.Layer.OSM, { - /** - * Constructor: OpenLayers.Layer.OSM.CycleMap - * - * Parameters: - * name - {String} - * options - {Object} Hashtable of extra options to tag onto the layer - */ - initialize: function(name, options) { - var url = [ - "http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", - "http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", - "http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png" - ]; - options = OpenLayers.Util.extend({ - numZoomLevels: 19, - attribution: "© OpenStreetMap contributors, Tiles courtesy of Andy Allan", - buffer: 0, - transitionEffect: "resize" - }, options); - var newArguments = [name, url, options]; - OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); - }, - - CLASS_NAME: "OpenLayers.Layer.OSM.CycleMap" -}); - -/** - * Class: OpenLayers.Layer.OSM.TransportMap - * - * Inherits from: - * - - */ -OpenLayers.Layer.OSM.TransportMap = OpenLayers.Class(OpenLayers.Layer.OSM, { - /** - * Constructor: OpenLayers.Layer.OSM.TransportMap - * - * Parameters: - * name - {String} - * options - {Object} Hashtable of extra options to tag onto the layer - */ - initialize: function(name, options) { - var url = [ - "http://a.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png", - "http://b.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png", - "http://c.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png" - ]; - options = OpenLayers.Util.extend({ - numZoomLevels: 19, - attribution: "© OpenStreetMap contributors, Tiles courtesy of Andy Allan", - buffer: 0, - transitionEffect: "resize" - }, options); - var newArguments = [name, url, options]; - OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); - }, - - CLASS_NAME: "OpenLayers.Layer.OSM.TransportMap" -});