OL MAP SOURCE PROVIDERS CONFIG - AnSyn/ansyn GitHub Wiki

The MAP_SOURCE_PROVIDER_CONFIG must get value according on what source provider you use :

BING

{
 BING:{
   key: string;
   styles: string[]
 }
}
  • key: Your Bing Maps Key - you can get one from here
  • styles: one or more options from 'Road','RoadOnDemand','Aerial','AerialWithLabels','collinsBart','ordnanceSurvey'

OSM

{
 OSM: {}
}

has no config.

ESRI_4326

{
 'ESRI_4326': {
   attributes: string,
   maxZoom: number;
   projection: string;
   tileSize: number;
   baseUrl: string;
 }
}
  • attributes: Attributions
  • maxZoom: Optional max zoom level.
  • projection: the projection to be use.
  • tileSize: The tile size used by the tile service.
  • baseUrl: URL template. Must include {x}, {y} or {-y}, and {z} placeholders. A {?-?} template pattern, for example subdomain{a-f}.domain.com, may be used instead of defining each one separately in the urls option.

TileWMS

{
  TileWMS: {
    layers: string[];
    projection: string;
    url: string;
  }
}
  • layers: array of the layers to fetch from the server
  • projection: the projection to be use
  • url: the wms server url