Add Bing roadmap layer (if you have a key)
This commit is contained in:
parent
d3565b407e
commit
4305c99b01
|
@ -26,6 +26,15 @@ function createBaseLayers() {
|
||||||
title: 'Bing Aerial',
|
title: 'Bing Aerial',
|
||||||
type: 'base',
|
type: 'base',
|
||||||
}));
|
}));
|
||||||
|
world.push(new ol.layer.Tile({
|
||||||
|
source: new ol.source.BingMaps({
|
||||||
|
key: BingMapsAPIKey,
|
||||||
|
imagerySet: 'Road'
|
||||||
|
}),
|
||||||
|
name: 'bing_roads',
|
||||||
|
title: 'Bing Roads',
|
||||||
|
type: 'base',
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MapzenAPIKey) {
|
if (MapzenAPIKey) {
|
||||||
|
|
Loading…
Reference in a new issue