Skip to content

Commit

Permalink
Service provider address
Browse files Browse the repository at this point in the history
  • Loading branch information
tentone committed Nov 11, 2022
1 parent aa2e460 commit ce1f368
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/providers/BingMapsProvider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {MapProvider} from './MapProvider';
import {XHRUtils} from '../utils/XHRUtils';
import { MapBoxProvider } from './MapBoxProvider';

/**
* Bing maps tile provider.
Expand All @@ -11,6 +12,11 @@ import {XHRUtils} from '../utils/XHRUtils';
*/
export class BingMapsProvider extends MapProvider
{
/**
* Base address of the bing map provider.
*/
public static ADDRESS: string = "https://dev.virtualearth.net";

/**
* Maximum zoom level allows by the provider.
*/
Expand Down Expand Up @@ -91,7 +97,7 @@ export class BingMapsProvider extends MapProvider
*/
public getMetaData(): void
{
const address = 'http://dev.virtualearth.net/REST/V1/Imagery/Metadata/RoadOnDemand?output=json&include=ImageryProviders&key=' + this.apiKey;
const address = BingMapsProvider.ADDRESS + '/REST/V1/Imagery/Metadata/RoadOnDemand?output=json&include=ImageryProviders&key=' + this.apiKey;

XHRUtils.get(address, function(data)
{
Expand Down
3 changes: 3 additions & 0 deletions source/providers/MapBoxProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import {XHRUtils} from '../utils/XHRUtils';
*/
export class MapBoxProvider extends MapProvider
{
/**
* Base adress of the mapbox service.
*/
public static ADDRESS: string = 'https://api.mapbox.com/';

/**
Expand Down

0 comments on commit ce1f368

Please sign in to comment.