Fix rendering of transparent MapQuest layer type

This commit is contained in:
Petr Sloup
2016-01-12 23:23:16 +01:00
parent fdc2f9d97e
commit 5dfb4199ca

View File

@@ -40,7 +40,7 @@ ol.source.MapQuest = function(opt_options) {
logo: 'https://developer.mapquest.com/content/osm/mq_logo.png',
maxZoom: layerConfig.maxZoom,
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
opaque: true,
opaque: layerConfig.opaque,
tileLoadFunction: options.tileLoadFunction,
url: url
});
@@ -59,11 +59,12 @@ ol.source.MapQuest.TILE_ATTRIBUTION = new ol.Attribution({
/**
* @type {Object.<string, {maxZoom: number, attributions: (Array.<ol.Attribution>)}>}
* @type {Object.<string, {maxZoom: number, opaque: boolean, attributions: (Array.<ol.Attribution>)}>}
*/
ol.source.MapQuestConfig = {
'osm': {
maxZoom: 19,
opaque: true,
attributions: [
ol.source.MapQuest.TILE_ATTRIBUTION,
ol.source.OSM.ATTRIBUTION
@@ -71,6 +72,7 @@ ol.source.MapQuestConfig = {
},
'sat': {
maxZoom: 18,
opaque: true,
attributions: [
ol.source.MapQuest.TILE_ATTRIBUTION,
new ol.Attribution({
@@ -81,6 +83,7 @@ ol.source.MapQuestConfig = {
},
'hyb': {
maxZoom: 18,
opaque: false,
attributions: [
ol.source.MapQuest.TILE_ATTRIBUTION,
ol.source.OSM.ATTRIBUTION