public class TLcdCustomBingMapsDataSourceBuilder extends Object
ILcdDataSource
that
can be used to decode a Bing Maps model using the TLcdBingMapsModelDecoder
.
This builder builds instances of TLcdCustomBingMapsDataSource
, data sources based on a
URI pattern.
ILcdBingMapsDataSource source = new TLcdCustomBingMapsDataSourceBuilder(url).build();
ILcdModel model = new TLcdBingMapsModelDecoder().decodeSource(source);
TLcdCustomBingMapsDataSource
Constructor and Description |
---|
TLcdCustomBingMapsDataSourceBuilder(String aURIPattern)
The protocol used by Bing Maps (retrieving tiles based on a quad key) is also used by other servers.
|
Modifier and Type | Method and Description |
---|---|
TLcdCustomBingMapsDataSource |
build()
Creates a data source that can be used to create a BingMaps model using the
TLcdBingMapsModelDecoder . |
TLcdCustomBingMapsDataSourceBuilder |
copyrightHolders(TLcdBingMapsCopyrightHolder... aCopyrightHolder)
Adds copyright holder.
|
TLcdCustomBingMapsDataSourceBuilder |
culture(String aCulture)
Sets the culture.
|
TLcdCustomBingMapsDataSourceBuilder |
subDomains(String... aSubDomain)
Adds a sub domain.
|
public TLcdCustomBingMapsDataSourceBuilder(String aURIPattern)
subDomains(String...)
). This can be used to divide the load over different servers.
Note that at least one subdomain must be added when this wildcard is present.culture(String)
)aURIPattern
- the URI pattern identifying the custom server(s).public TLcdCustomBingMapsDataSourceBuilder culture(String aCulture)
aCulture
- the culture to use.ELcdBingMapsMapStyle.AERIAL_WITH_LABELS
,
ELcdBingMapsMapStyle.ROAD
public TLcdCustomBingMapsDataSourceBuilder copyrightHolders(TLcdBingMapsCopyrightHolder... aCopyrightHolder)
aCopyrightHolder
- an copyright holder.public TLcdCustomBingMapsDataSourceBuilder subDomains(String... aSubDomain)
aSubDomain
- a sub domain to add.public TLcdCustomBingMapsDataSource build()
TLcdBingMapsModelDecoder
.TLcdCustomBingMapsDataSource