File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11import { MapProvider } from './MapProvider' ;
22import { XHRUtils } from '../utils/XHRUtils' ;
3+ import { MapBoxProvider } from './MapBoxProvider' ;
34
45/**
56 * Bing maps tile provider.
@@ -11,6 +12,11 @@ import {XHRUtils} from '../utils/XHRUtils';
1112 */
1213export class BingMapsProvider extends MapProvider
1314{
15+ /**
16+ * Base address of the bing map provider.
17+ */
18+ public static ADDRESS : string = "https://dev.virtualearth.net" ;
19+
1420 /**
1521 * Maximum zoom level allows by the provider.
1622 */
@@ -91,7 +97,7 @@ export class BingMapsProvider extends MapProvider
9197 */
9298 public getMetaData ( ) : void
9399 {
94- const address = 'http://dev.virtualearth.net /REST/V1/Imagery/Metadata/RoadOnDemand?output=json&include=ImageryProviders&key=' + this . apiKey ;
100+ const address = BingMapsProvider . ADDRESS + ' /REST/V1/Imagery/Metadata/RoadOnDemand?output=json&include=ImageryProviders&key=' + this . apiKey ;
95101
96102 XHRUtils . get ( address , function ( data )
97103 {
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ import {XHRUtils} from '../utils/XHRUtils';
1010 */
1111export class MapBoxProvider extends MapProvider
1212{
13+ /**
14+ * Base adress of the mapbox service.
15+ */
1316 public static ADDRESS : string = 'https://api.mapbox.com/' ;
1417
1518 /**
You can’t perform that action at this time.
0 commit comments