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 | 182 | "http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg", { |
| 183 | 183 | isBaseLayer : true, |
| 184 | 184 | visibility : false, |
| 185 | - attribution: attribStamen | |
| 185 | + attribution: attribStamen, | |
| 186 | + tileOptions: {crossOriginKeyword: "anonymous"} | |
| 186 | 187 | }); |
| 187 | 188 | |
| 188 | 189 | var toner = new OpenLayers.Layer.OSM("Toner", |
| 189 | 190 | "http://tile.stamen.com/toner/${z}/${x}/${y}.jpg", { |
| 190 | 191 | isBaseLayer : true, |
| 191 | 192 | visibility : false, |
| 192 | - attribution: attribStamen | |
| 193 | + attribution: attribStamen, | |
| 194 | + tileOptions: {crossOriginKeyword: "anonymous"} | |
| 193 | 195 | }); |
| 194 | 196 | |
| 195 | 197 | var tonerlite = new OpenLayers.Layer.OSM("Toner lite", |
| 196 | 198 | "http://tile.stamen.com/toner-lite/${z}/${x}/${y}.jpg", { |
| 197 | 199 | isBaseLayer : true, |
| 198 | 200 | visibility : false, |
| 199 | - attribution: attribStamen | |
| 201 | + attribution: attribStamen, | |
| 202 | + tileOptions: {crossOriginKeyword: "anonymous"} | |
| 200 | 203 | }); |
| 201 | 204 | |
| 202 | 205 | var osm = new OpenLayers.Layer.OSM("OSM", |
| 203 | 206 | "http://tile.openstreetmap.org/${z}/${x}/${y}.png", { |
| 204 | 207 | isBaseLayer : true, |
| 205 | 208 | visibility : true, |
| 206 | - attribution: attribOSMData | |
| 209 | + attribution: attribOSMData, | |
| 210 | + tileOptions: {crossOriginKeyword: "anonymous"} | |
| 207 | 211 | }); |
| 208 | 212 | |
| 209 | 213 | var arrayMapQuestAerial = ["http://oatile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.jpg", |
| ... | ... | @@ -216,7 +220,8 @@ |
| 216 | 220 | displayOutsideMaxExtent: true, |
| 217 | 221 | attribution: attribMapQuestAerial, |
| 218 | 222 | isBaseLayer : true, |
| 219 | - visibility : false | |
| 223 | + visibility : false, | |
| 224 | + tileOptions: {crossOriginKeyword: "anonymous"} | |
| 220 | 225 | }); |
| 221 | 226 | |
| 222 | 227 | i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ osm, aquarela, toner, tonerlite, layMapQuestAerial ]; | ... | ... |