Commit 44de0d271238ae588af9937cd0fb9718c38c8b51
1 parent
fdf36d3b
Exists in
master
-
Showing
1 changed file
with
10 additions
and
5 deletions
Show diff stats
interface/black_osm.htm
@@ -182,28 +182,32 @@ | @@ -182,28 +182,32 @@ | ||
182 | "http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg", { | 182 | "http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg", { |
183 | isBaseLayer : true, | 183 | isBaseLayer : true, |
184 | visibility : false, | 184 | visibility : false, |
185 | - attribution: attribStamen | 185 | + attribution: attribStamen, |
186 | + tileOptions: {crossOriginKeyword: "anonymous"} | ||
186 | }); | 187 | }); |
187 | 188 | ||
188 | var toner = new OpenLayers.Layer.OSM("Toner", | 189 | var toner = new OpenLayers.Layer.OSM("Toner", |
189 | "http://tile.stamen.com/toner/${z}/${x}/${y}.jpg", { | 190 | "http://tile.stamen.com/toner/${z}/${x}/${y}.jpg", { |
190 | isBaseLayer : true, | 191 | isBaseLayer : true, |
191 | visibility : false, | 192 | visibility : false, |
192 | - attribution: attribStamen | 193 | + attribution: attribStamen, |
194 | + tileOptions: {crossOriginKeyword: "anonymous"} | ||
193 | }); | 195 | }); |
194 | 196 | ||
195 | var tonerlite = new OpenLayers.Layer.OSM("Toner lite", | 197 | var tonerlite = new OpenLayers.Layer.OSM("Toner lite", |
196 | "http://tile.stamen.com/toner-lite/${z}/${x}/${y}.jpg", { | 198 | "http://tile.stamen.com/toner-lite/${z}/${x}/${y}.jpg", { |
197 | isBaseLayer : true, | 199 | isBaseLayer : true, |
198 | visibility : false, | 200 | visibility : false, |
199 | - attribution: attribStamen | 201 | + attribution: attribStamen, |
202 | + tileOptions: {crossOriginKeyword: "anonymous"} | ||
200 | }); | 203 | }); |
201 | 204 | ||
202 | var osm = new OpenLayers.Layer.OSM("OSM", | 205 | var osm = new OpenLayers.Layer.OSM("OSM", |
203 | "http://tile.openstreetmap.org/${z}/${x}/${y}.png", { | 206 | "http://tile.openstreetmap.org/${z}/${x}/${y}.png", { |
204 | isBaseLayer : true, | 207 | isBaseLayer : true, |
205 | visibility : true, | 208 | visibility : true, |
206 | - attribution: attribOSMData | 209 | + attribution: attribOSMData, |
210 | + tileOptions: {crossOriginKeyword: "anonymous"} | ||
207 | }); | 211 | }); |
208 | 212 | ||
209 | var arrayMapQuestAerial = ["http://oatile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", | 213 | var arrayMapQuestAerial = ["http://oatile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", |
@@ -216,7 +220,8 @@ | @@ -216,7 +220,8 @@ | ||
216 | displayOutsideMaxExtent: true, | 220 | displayOutsideMaxExtent: true, |
217 | attribution: attribMapQuestAerial, | 221 | attribution: attribMapQuestAerial, |
218 | isBaseLayer : true, | 222 | isBaseLayer : true, |
219 | - visibility : false | 223 | + visibility : false, |
224 | + tileOptions: {crossOriginKeyword: "anonymous"} | ||
220 | }); | 225 | }); |
221 | 226 | ||
222 | i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ osm, aquarela, toner, tonerlite, layMapQuestAerial ]; | 227 | i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ osm, aquarela, toner, tonerlite, layMapQuestAerial ]; |