Class MapConfig
- java.lang.Object
-
- com.supermap.services.components.MapConfig
-
- All Implemented Interfaces:
- java.io.Serializable
public class MapConfig extends java.lang.Object implements java.io.SerializableMap service component configuration information.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MapConfig()Default constructor.
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Determines whether the map component configuration object is the same as the current object.CacheConfig[]getCacheConfigs()longgetExpired()Gets expiration timejava.lang.StringgetLogLevel()Deprecated.java.lang.StringgetOutputPath()Gets the output path of the map image.java.lang.StringgetOutputSite()Gets the publishing site for the map image.TileSourceInfogetTileCacheConfig()Gets the raster tile cache configurationTileSourceInfogetUtfGridCacheConfig()Gets the UTFGrid cache configurationTileSourceInfogetVectorTileCacheConfig()Gets the SVTiles cache configurationinthashCode()Gets the hash value of the object instancebooleanisCacheReadOnly()booleanisClip()Deprecated.booleanisUseCache()Whether to use component-level independent cache.booleanisUseUTFGridCache()booleanisUseVectorTileCache()MapConfigsetCacheConfigs(CacheConfig[] cacheConfigs)MapConfigsetCacheReadOnly(boolean cacheReadOnly)MapConfigsetClip(boolean clip)Deprecated.voidsetExpired(long expired)Sets expiration timeMapConfigsetLogLevel(java.lang.String logLevel)Deprecated.MapConfigsetOutputPath(java.lang.String outputPath)Sets the output path of the map image.MapConfigsetOutputSite(java.lang.String outputSite)Sets the publishing site for the map image.MapConfigsetTileCacheConfig(TileSourceInfo tileCacheConfig)Sets the raster tile cache configurationMapConfigsetUseCache(boolean useCache)Whether to use component-level cache.voidsetUseUTFGridCache(boolean useUTFGridCache)voidsetUseVectorTileCache(boolean useVectorTileCache)MapConfigsetUtfGridCacheConfig(TileSourceInfo utfGridCacheConfig)Sets the UTFGrid cache configurationMapConfigsetVectorTileCacheConfig(TileSourceInfo vectorTileCacheConfig)Sets the SVTiles cache configuration
-
-
-
Method Detail
-
getOutputPath
public java.lang.String getOutputPath()
Gets the output path of the map image.
- Returns:
- The output path of the map image.
-
getExpired
public long getExpired()
Gets expiration time
- Returns:
- Since:
- 7.0.0
-
setExpired
public void setExpired(long expired)
Sets expiration time
- Parameters:
expired-- Since:
- 7.0.0
-
getOutputSite
public java.lang.String getOutputSite()
Gets the publishing site for the map image.
- Returns:
- the publishing site of the map image.
-
setOutputPath
public MapConfig setOutputPath(java.lang.String outputPath)
Sets the output path of the map image.
- Parameters:
outputPath- Sets the output path of the map image.
-
setOutputSite
public MapConfig setOutputSite(java.lang.String outputSite)
Sets the publishing site for the map image.
- Parameters:
outputSite- the publishing site of the map image.
-
getLogLevel
@Deprecated public java.lang.String getLogLevel()
Deprecated.Gets the log level.
- Returns:
- the log level
-
setLogLevel
@Deprecated public MapConfig setLogLevel(java.lang.String logLevel)
Deprecated.Sets the log level.
- Parameters:
logLevel- the log level.
-
isUseCache
public boolean isUseCache()
Whether to use component-level independent cache. Each component can configure if the independent cache can be opened, for example:service Component that takes tile cache as the source of service can close the independent cache. Open or close the independent cache by configuring the useCache property of Component Config.
- Returns:
- Whether to use component-level cache.
-
setUseCache
public MapConfig setUseCache(boolean useCache)
Whether to use component-level cache.
- Parameters:
useCache- Whether to use component-level cache.
-
getTileCacheConfig
public TileSourceInfo getTileCacheConfig()
Gets the raster tile cache configuration
- Returns:
- Since:
- 7.0.0
-
setTileCacheConfig
public MapConfig setTileCacheConfig(TileSourceInfo tileCacheConfig)
Sets the raster tile cache configuration
- Parameters:
tileCacheConfig-- Returns:
- Since:
- 7.0.0
-
getUtfGridCacheConfig
public TileSourceInfo getUtfGridCacheConfig()
Gets the UTFGrid cache configuration
- Returns:
- Since:
- 7.0.0
-
setUtfGridCacheConfig
public MapConfig setUtfGridCacheConfig(TileSourceInfo utfGridCacheConfig)
Sets the UTFGrid cache configuration
- Parameters:
utfGridCacheConfig-- Returns:
- Since:
- 7.0.0
-
getVectorTileCacheConfig
public TileSourceInfo getVectorTileCacheConfig()
Gets the SVTiles cache configuration
- Returns:
- Since:
- 7.0.0
-
setVectorTileCacheConfig
public MapConfig setVectorTileCacheConfig(TileSourceInfo vectorTileCacheConfig)
Sets the SVTiles cache configuration
- Parameters:
vectorTileCacheConfig-- Returns:
- Since:
- 7.0.0
-
getCacheConfigs
public CacheConfig[] getCacheConfigs()
-
setCacheConfigs
public MapConfig setCacheConfigs(CacheConfig[] cacheConfigs)
-
isClip
@Deprecated public boolean isClip()
Deprecated.Whether to use splicing to cut out the graph.
- Returns:
- Whether to use splicing to cut out the graph.
-
setClip
@Deprecated public MapConfig setClip(boolean clip)
Deprecated.Sets whether to use splicing to cut out the graph.
- Parameters:
clip- Whether to use splicing to cut out the graph.
-
equals
public boolean equals(java.lang.Object obj)
Determines whether the map component configuration object is the same as the current object.
- Overrides:
equalsin classjava.lang.Object- Parameters:
obj-- Returns:
- If it is the same, returns True; otherwise, returns False.
- Since:
- 6.1.3
-
hashCode
public final int hashCode()
Gets the hash value of the object instance- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash value
-
isCacheReadOnly
public boolean isCacheReadOnly()
-
setCacheReadOnly
public MapConfig setCacheReadOnly(boolean cacheReadOnly)
-
isUseVectorTileCache
public boolean isUseVectorTileCache()
-
setUseVectorTileCache
public void setUseVectorTileCache(boolean useVectorTileCache)
-
isUseUTFGridCache
public boolean isUseUTFGridCache()
-
setUseUTFGridCache
public void setUseUTFGridCache(boolean useUTFGridCache)
-
-