Add Bing roadmap layer (if you have a key)

This commit is contained in:
Oliver Jowett 2016-07-24 16:25:14 +01:00
parent d3565b407e
commit 4305c99b01

View file

@ -26,6 +26,15 @@ function createBaseLayers() {
title: 'Bing Aerial',
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) {