Skip to content

Commit ce1f368

Browse files
committed
Service provider address
1 parent aa2e460 commit ce1f368

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

source/providers/BingMapsProvider.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {MapProvider} from './MapProvider';
22
import {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
*/
1213
export 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
{

source/providers/MapBoxProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import {XHRUtils} from '../utils/XHRUtils';
1010
*/
1111
export 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
/**

0 commit comments

Comments
 (0)