public final class OsmLayerParam extends AbstractTiledLayerParams
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
baseURL
The URL used for the tile requests.
|
java.lang.Double |
dpi
The DPI of the OSM tiles.
|
double[] |
maxExtent
The maximum extent of the osm layer.
|
java.lang.Double[] |
resolutions
The allowed resolutions for this layer.
|
double |
resolutionTolerance
The amount of difference between a resolution and a target resolution to consider the two equal.
|
int[] |
tileSize
The size of each tile.
|
imageFormat, rasterStylename, opacity| Constructor and Description |
|---|
OsmLayerParam() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createCommonUrl(com.google.common.base.Function<com.google.common.collect.Multimap<java.lang.String,java.lang.String>,com.google.common.collect.Multimap<java.lang.String,java.lang.String>> function)
Create a URL that is common to all image requests for this layer.
|
java.lang.String |
getBaseUrl()
Get the base url for all tile requests.
|
com.vividsolutions.jts.geom.Envelope |
getMaxExtent()
Get the max extent as a envelop object.
|
java.awt.Dimension |
getTileSize() |
void |
postConstruct()
Validate the properties have the correct values.
|
boolean |
validateBaseUrl()
Validates the provided base url.
|
public java.lang.String baseURL
Supported formats:
public double[] maxExtent
Default: [-20037508.34, -20037508.34, 20037508.34, 20037508.34]
public int[] tileSize
Default: [256, 256]
public java.lang.Double[] resolutions
public double resolutionTolerance
public java.lang.Double dpi
public void postConstruct()
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic com.vividsolutions.jts.geom.Envelope getMaxExtent()
public java.lang.String getBaseUrl()
AbstractTiledLayerParamsgetBaseUrl in class AbstractTiledLayerParamspublic java.awt.Dimension getTileSize()
public java.lang.String createCommonUrl(com.google.common.base.Function<com.google.common.collect.Multimap<java.lang.String,java.lang.String>,com.google.common.collect.Multimap<java.lang.String,java.lang.String>> function)
AbstractTiledLayerParamscreateCommonUrl in class AbstractTiledLayerParamsfunction - a function that can optionally modify the Multimap passed into the function and returns the
Multimap that will contain all the query params that will be part of the URI. If the function
returns null then the original map will be used as the params.public boolean validateBaseUrl()
AbstractTiledLayerParamsvalidateBaseUrl in class AbstractTiledLayerParams