Class OpenStreetMapProviderSetting
- java.lang.Object
-
- com.supermap.services.components.spi.MapProviderSetting
-
- com.supermap.services.providers.OpenStreetMapProviderSetting
-
- All Implemented Interfaces:
- java.io.Serializable
public class OpenStreetMapProviderSetting extends MapProviderSetting
OpenStreetMap Map service provider configuration object.
- Since:
- 7.1.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.supermap.services.components.spi.MapProviderSetting
dataPrjCoordSysType, watermark
-
-
Constructor Summary
Constructors Constructor and Description OpenStreetMapProviderSetting()
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Determines whether two objects are equal.booleangetCacheEnabled()Sets whether to use caching.java.lang.StringgetMapName()Gets map namejava.lang.StringgetMapUrl()Gets map service URLinthashCode()Gets the hash value of the object instancevoidsetCacheEnabled(boolean cacheEnabled)Sets whether to use caching.voidsetMapNames(java.lang.String mapName)Sets map namevoidsetMapUrl(java.lang.String mapUrl)Gets map service URL-
Methods inherited from class com.supermap.services.components.spi.MapProviderSetting
getCacheMode, getCacheVersion, getName, getOutputPath, getOutputSite, getWatermark, setCacheMode, setCacheVersion, setName, setOutputPath, setOutputSite, setWatermark
-
-
-
-
Method Detail
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
Sets whether to use caching.
- Parameters:
cacheEnable- whether to use caching
-
getMapUrl
public 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
- Returns:
-
setMapUrl
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
-
getMapName
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".
- Returns:
-
setMapNames
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".
- Parameters:
mapName-
-
getCacheEnabled
public boolean getCacheEnabled()
Sets whether to use caching.
- Returns:
- Whether to use caching
-
equals
public boolean equals(java.lang.Object obj)
Determines whether two objects are equal.
- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object to be compared.- Returns:
- a value indicating whether the two objects are equal, true that the two objects are equal.
-
hashCode
public int hashCode()
Gets the hash value of the object instance- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash value
-
-