Configure logo for MapQuest sources
This commit is contained in:
@@ -15,8 +15,7 @@ ol.source.MapQuestOSM = function() {
|
|||||||
var attributions = [
|
var attributions = [
|
||||||
new ol.Attribution(
|
new ol.Attribution(
|
||||||
'Tiles Courtesy of ' +
|
'Tiles Courtesy of ' +
|
||||||
'<a href="http://www.mapquest.com/" target="_blank">MapQuest</a> ' +
|
'<a href="http://www.mapquest.com/" target="_blank">MapQuest</a>'),
|
||||||
'<img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),
|
|
||||||
new ol.Attribution(
|
new ol.Attribution(
|
||||||
'Data © ' +
|
'Data © ' +
|
||||||
'<a href="http://www.openstreetmap.org">OpenStreetMap</a> ' +
|
'<a href="http://www.openstreetmap.org">OpenStreetMap</a> ' +
|
||||||
@@ -27,6 +26,7 @@ ol.source.MapQuestOSM = function() {
|
|||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
attributions: attributions,
|
attributions: attributions,
|
||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
|
logo: 'http://developer.mapquest.com/content/osm/mq_logo.png',
|
||||||
opaque: true,
|
opaque: true,
|
||||||
maxZoom: 28,
|
maxZoom: 28,
|
||||||
url: 'http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg'
|
url: 'http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg'
|
||||||
@@ -46,8 +46,7 @@ ol.source.MapQuestOpenAerial = function() {
|
|||||||
var attributions = [
|
var attributions = [
|
||||||
new ol.Attribution(
|
new ol.Attribution(
|
||||||
'Tiles Courtesy of ' +
|
'Tiles Courtesy of ' +
|
||||||
'<a href="http://www.mapquest.com/" target="_blank">MapQuest</a> ' +
|
'<a href="http://www.mapquest.com/" target="_blank">MapQuest</a>'),
|
||||||
'<img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),
|
|
||||||
new ol.Attribution(
|
new ol.Attribution(
|
||||||
'Portions Courtesy NASA/JPL-Caltech and ' +
|
'Portions Courtesy NASA/JPL-Caltech and ' +
|
||||||
'U.S. Depart. of Agriculture, Farm Service Agency')
|
'U.S. Depart. of Agriculture, Farm Service Agency')
|
||||||
@@ -56,6 +55,7 @@ ol.source.MapQuestOpenAerial = function() {
|
|||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
attributions: attributions,
|
attributions: attributions,
|
||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
|
logo: 'http://developer.mapquest.com/content/osm/mq_logo.png',
|
||||||
maxZoom: 18,
|
maxZoom: 18,
|
||||||
opaque: true,
|
opaque: true,
|
||||||
url: 'http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg'
|
url: 'http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg'
|
||||||
|
|||||||
Reference in New Issue
Block a user