public class OpenStreetMapProviderSetting extends MapProviderSetting
OpenStreetMap Map service provider configuration object.
dataPrjCoordSysType, watermark
Constructor and Description |
---|
OpenStreetMapProviderSetting() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether two objects are equal.
|
boolean |
getCacheEnabled()
Sets whether to use caching.
|
java.lang.String |
getMapName()
Gets map name
|
java.lang.String |
getMapUrl()
Gets map service URL
|
int |
hashCode()
Gets the hash value of the object instance
|
void |
setCacheEnabled(boolean cacheEnabled)
Sets whether to use caching.
|
void |
setMapNames(java.lang.String mapName)
Sets map name
|
void |
setMapUrl(java.lang.String mapUrl)
Gets map service URL
|
getCacheMode, getCacheVersion, getName, getOutputPath, getOutputSite, getWatermark, setCacheMode, setCacheVersion, setName, setOutputPath, setOutputSite, setWatermark
public void setCacheEnabled(boolean cacheEnabled)
Sets whether to use caching.
cacheEnable
- whether to use cachingpublic java.lang.String getMapUrl()
Gets map service URL
The map service address should be an address template that takes the map slice, where {x}, {y}, {z} represent the column number, line number, and level of the slice, respectively. Such as: http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
public void setMapUrl(java.lang.String mapUrl)
Gets map service URL
The map service address should be an address template that takes the map slice, where {x}, {y}, {z} represent the column number, line number, and level of the slice, respectively. Such as: http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
public java.lang.String getMapName()
Gets map name
Get a custom map name. When configuring the mapUrl parameter is not configured, the default is "OSM".
public void setMapNames(java.lang.String mapName)
Sets map name
Set a custom map name. When configuring the mapUrl parameter is not configured, the default is "OSM".
mapName
-public boolean getCacheEnabled()
Sets whether to use caching.
public boolean equals(java.lang.Object obj)
Determines whether two objects are equal.
equals
in class java.lang.Object
obj
- the object to be compared.public int hashCode()
hashCode
in class java.lang.Object