Update Bing's imagerySet used in examples
This commit is contained in:
@@ -12,9 +12,8 @@ cloak:
|
|||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
<select id="layer-select">
|
<select id="layer-select">
|
||||||
<option value="Aerial">Aerial</option>
|
<option value="Aerial">Aerial</option>
|
||||||
<option value="AerialWithLabels" selected>Aerial with labels</option>
|
<option value="AerialWithLabelsOnDemand" selected>Aerial with labels</option>
|
||||||
<option value="Road">Road (static)</option>
|
<option value="RoadOnDemand">Road</option>
|
||||||
<option value="RoadOnDemand">Road (dynamic)</option>
|
<option value="CanvasDark">Road dark</option>
|
||||||
<option value="collinsBart">Collins Bart</option>
|
<option value="OrdnanceSurvey">Ordnance Survey</option>
|
||||||
<option value="ordnanceSurvey">Ordnance Survey</option>
|
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ import BingMaps from '../src/ol/source/BingMaps.js';
|
|||||||
|
|
||||||
|
|
||||||
const styles = [
|
const styles = [
|
||||||
'Road',
|
|
||||||
'RoadOnDemand',
|
'RoadOnDemand',
|
||||||
'Aerial',
|
'Aerial',
|
||||||
'AerialWithLabels',
|
'AerialWithLabelsOnDemand',
|
||||||
'collinsBart',
|
'CanvasDark',
|
||||||
'ordnanceSurvey'
|
'OrdnanceSurvey'
|
||||||
];
|
];
|
||||||
const layers = [];
|
const layers = [];
|
||||||
let i, ii;
|
let i, ii;
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ const map = new Map({
|
|||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new BingMaps({
|
source: new BingMaps({
|
||||||
imagerySet: 'AerialWithLabels',
|
imagerySet: 'AerialWithLabelsOnDemand',
|
||||||
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5'
|
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5'
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import BingMaps from '../src/ol/source/BingMaps.js';
|
|||||||
const key = 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5';
|
const key = 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5';
|
||||||
|
|
||||||
const roads = new TileLayer({
|
const roads = new TileLayer({
|
||||||
source: new BingMaps({key: key, imagerySet: 'Road'})
|
source: new BingMaps({key: key, imagerySet: 'RoadOnDemand'})
|
||||||
});
|
});
|
||||||
|
|
||||||
const imagery = new TileLayer({
|
const imagery = new TileLayer({
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const map = new Map({
|
|||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new BingMaps({
|
source: new BingMaps({
|
||||||
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
|
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
|
||||||
imagerySet: 'Road'
|
imagerySet: 'RoadOnDemand'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const map2 = new Map({
|
|||||||
preload: 0, // default value
|
preload: 0, // default value
|
||||||
source: new BingMaps({
|
source: new BingMaps({
|
||||||
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
|
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
|
||||||
imagerySet: 'AerialWithLabels'
|
imagerySet: 'AerialWithLabelsOnDemand'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ describe('ol.source.BingMaps', function() {
|
|||||||
|
|
||||||
beforeEach(function(done) {
|
beforeEach(function(done) {
|
||||||
source = new BingMaps({
|
source = new BingMaps({
|
||||||
imagerySet: 'AerialWithLabels',
|
imagerySet: 'AerialWithLabelsOnDemand',
|
||||||
key: ''
|
key: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ describe('ol.source.BingMaps', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('getImagerySet works correctly', function() {
|
it('getImagerySet works correctly', function() {
|
||||||
expect(source.getImagerySet()).to.equal('AerialWithLabels');
|
expect(source.getImagerySet()).to.equal('AerialWithLabelsOnDemand');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('getApiKey works correctly', function() {
|
it('getApiKey works correctly', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user