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 1
1
import { MapProvider } from './MapProvider' ;
2
2
import { XHRUtils } from '../utils/XHRUtils' ;
3
+ import { MapBoxProvider } from './MapBoxProvider' ;
3
4
4
5
/**
5
6
* Bing maps tile provider.
@@ -11,6 +12,11 @@ import {XHRUtils} from '../utils/XHRUtils';
11
12
*/
12
13
export class BingMapsProvider extends MapProvider
13
14
{
15
+ /**
16
+ * Base address of the bing map provider.
17
+ */
18
+ public static ADDRESS : string = "https://dev.virtualearth.net" ;
19
+
14
20
/**
15
21
* Maximum zoom level allows by the provider.
16
22
*/
@@ -91,7 +97,7 @@ export class BingMapsProvider extends MapProvider
91
97
*/
92
98
public getMetaData ( ) : void
93
99
{
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 ;
95
101
96
102
XHRUtils . get ( address , function ( data )
97
103
{
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ import {XHRUtils} from '../utils/XHRUtils';
10
10
*/
11
11
export class MapBoxProvider extends MapProvider
12
12
{
13
+ /**
14
+ * Base adress of the mapbox service.
15
+ */
13
16
public static ADDRESS : string = 'https://api.mapbox.com/' ;
14
17
15
18
/**
You can’t perform that action at this time.
0 commit comments