Commit 0e0d14dfc035a392981afc7ed136c7f53cc65b49
1 parent
08d762c0
Exists in
master
and in
7 other branches
Novos layers de fundo
Showing
1 changed file
with
45 additions
and
7 deletions
Show diff stats
interface/black_osm.htm
@@ -170,18 +170,56 @@ | @@ -170,18 +170,56 @@ | ||
170 | i3GEO.janela.TRANSICAOSUAVE = true; | 170 | i3GEO.janela.TRANSICAOSUAVE = true; |
171 | OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | 171 | OpenLayers.ImgPath = "../pacotes/openlayers/img/"; |
172 | (function() { | 172 | (function() { |
173 | - //http://maps.stamen.com/#watercolor/12/37.7706/-122.3782 | 173 | + var attribOSMData = 'Map Data: © <a href="http://www.openstreetmap.org/">OpenStreetMap</a> contributors'; |
174 | + var attribMapQuestOSM = attribOSMData + ', Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'; | ||
175 | + var attribMapQuestAerial = 'Map Data: © Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency, Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'; | ||
176 | + var attribOpenCycleMap = 'Map Data: © <a href="http://www.openstreetmap.org/">OpenStreetMap</a> contributors'; | ||
177 | + var attribDEMData = '<a href="http://srtm.csi.cgiar.org/">SRTM</a>; ASTER GDEM is a product of <a href="http://www.meti.go.jp/english/press/data/20090626_03.html">METI</a> and <a href="https://lpdaac.usgs.gov/products/aster_policies">NASA</a>'; | ||
178 | + var attribStamen = 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA'; | ||
179 | + var mapSurfer = 'Map data © OpenStreetMap contributors, Imagery GIScience Research Group @ Heidelberg University'; | ||
180 | + | ||
174 | var aquarela = new OpenLayers.Layer.OSM("Aquarela", | 181 | var aquarela = new OpenLayers.Layer.OSM("Aquarela", |
175 | - "http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg", { | ||
176 | - isBaseLayer : true, | ||
177 | - visibility : false | ||
178 | - }); | 182 | + "http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg", { |
183 | + isBaseLayer : true, | ||
184 | + visibility : false, | ||
185 | + attribution: attribStamen | ||
186 | + }); | ||
187 | + | ||
188 | + var toner = new OpenLayers.Layer.OSM("Toner", | ||
189 | + "http://tile.stamen.com/toner/${z}/${x}/${y}.jpg", { | ||
190 | + isBaseLayer : true, | ||
191 | + visibility : false, | ||
192 | + attribution: attribStamen | ||
193 | + }); | ||
194 | + | ||
195 | + var tonerlite = new OpenLayers.Layer.OSM("Toner lite", | ||
196 | + "http://tile.stamen.com/toner-lite/${z}/${x}/${y}.jpg", { | ||
197 | + isBaseLayer : true, | ||
198 | + visibility : false, | ||
199 | + attribution: attribStamen | ||
200 | + }); | ||
201 | + | ||
179 | var osm = new OpenLayers.Layer.OSM("OSM", | 202 | var osm = new OpenLayers.Layer.OSM("OSM", |
180 | "http://tile.openstreetmap.org/${z}/${x}/${y}.png", { | 203 | "http://tile.openstreetmap.org/${z}/${x}/${y}.png", { |
181 | isBaseLayer : true, | 204 | isBaseLayer : true, |
182 | - visibility : true | 205 | + visibility : true, |
206 | + attribution: attribOSMData | ||
183 | }); | 207 | }); |
184 | - i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ osm, aquarela ]; | 208 | + |
209 | + var arrayMapQuestAerial = ["http://oatile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", | ||
210 | + "http://oatile2.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", | ||
211 | + "http://oatile3.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", | ||
212 | + "http://oatile4.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg" | ||
213 | + ]; | ||
214 | + | ||
215 | + var layMapQuestAerial = new OpenLayers.Layer.OSM("MapQuest Open Aerial", arrayMapQuestAerial,{ | ||
216 | + displayOutsideMaxExtent: true, | ||
217 | + attribution: attribMapQuestAerial, | ||
218 | + isBaseLayer : true, | ||
219 | + visibility : false | ||
220 | + }); | ||
221 | + | ||
222 | + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ osm, aquarela, toner, tonerlite, layMapQuestAerial ]; | ||
185 | })(); | 223 | })(); |
186 | i3GEO.Interface.openlayers.googleLike = true; | 224 | i3GEO.Interface.openlayers.googleLike = true; |
187 | i3GEO.inicia(); | 225 | i3GEO.inicia(); |