From 0e0d14dfc035a392981afc7ed136c7f53cc65b49 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 22 Jul 2015 02:00:59 +0000 Subject: [PATCH] Novos layers de fundo --- interface/black_osm.htm | 52 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/interface/black_osm.htm b/interface/black_osm.htm index 8855f7c..6cfd411 100755 --- a/interface/black_osm.htm +++ b/interface/black_osm.htm @@ -170,18 +170,56 @@ i3GEO.janela.TRANSICAOSUAVE = true; OpenLayers.ImgPath = "../pacotes/openlayers/img/"; (function() { - //http://maps.stamen.com/#watercolor/12/37.7706/-122.3782 + var attribOSMData = 'Map Data: © OpenStreetMap contributors'; + var attribMapQuestOSM = attribOSMData + ', Tiles Courtesy of MapQuest '; + var attribMapQuestAerial = 'Map Data: © Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency, Tiles Courtesy of MapQuest '; + var attribOpenCycleMap = 'Map Data: © OpenStreetMap contributors'; + var attribDEMData = 'SRTM; ASTER GDEM is a product of METI and NASA'; + var attribStamen = 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA'; + var mapSurfer = 'Map data © OpenStreetMap contributors, Imagery GIScience Research Group @ Heidelberg University'; + var aquarela = new OpenLayers.Layer.OSM("Aquarela", - "http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg", { - isBaseLayer : true, - visibility : false - }); + "http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg", { + isBaseLayer : true, + visibility : false, + attribution: attribStamen + }); + + var toner = new OpenLayers.Layer.OSM("Toner", + "http://tile.stamen.com/toner/${z}/${x}/${y}.jpg", { + isBaseLayer : true, + visibility : false, + attribution: attribStamen + }); + + var tonerlite = new OpenLayers.Layer.OSM("Toner lite", + "http://tile.stamen.com/toner-lite/${z}/${x}/${y}.jpg", { + isBaseLayer : true, + visibility : false, + attribution: attribStamen + }); + var osm = new OpenLayers.Layer.OSM("OSM", "http://tile.openstreetmap.org/${z}/${x}/${y}.png", { isBaseLayer : true, - visibility : true + visibility : true, + attribution: attribOSMData }); - i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ osm, aquarela ]; + + var arrayMapQuestAerial = ["http://oatile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", + "http://oatile2.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", + "http://oatile3.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", + "http://oatile4.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg" + ]; + + var layMapQuestAerial = new OpenLayers.Layer.OSM("MapQuest Open Aerial", arrayMapQuestAerial,{ + displayOutsideMaxExtent: true, + attribution: attribMapQuestAerial, + isBaseLayer : true, + visibility : false + }); + + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ osm, aquarela, toner, tonerlite, layMapQuestAerial ]; })(); i3GEO.Interface.openlayers.googleLike = true; i3GEO.inicia(); -- libgit2 0.21.2