public class TLcdCustomBingMapsDataSourceBuilder
extends java.lang.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(java.lang.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(java.lang.String aCulture)
Sets the culture.
|
TLcdCustomBingMapsDataSourceBuilder |
subDomains(java.lang.String... aSubDomain)
Adds a sub domain.
|
public TLcdCustomBingMapsDataSourceBuilder(java.lang.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(java.lang.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(java.lang.String... aSubDomain)
aSubDomain
- a sub domain to add.public TLcdCustomBingMapsDataSource build()
TLcdBingMapsModelDecoder
.TLcdCustomBingMapsDataSource