Class GoogleMapsMapProviderSetting
- java.lang.Object
-
- com.supermap.services.components.spi.MapProviderSetting
-
- com.supermap.services.providers.GoogleMapsMapProviderSetting
-
- All Implemented Interfaces:
- java.io.Serializable
public class GoogleMapsMapProviderSetting extends MapProviderSetting
Google Maps service provider configuration class.
- Since:
- 8.0.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.StringgoogleMapClientIDThe account with Google Maps access.java.lang.StringgoogleMapCryptoKeyThe private key of the account.java.lang.StringgoogleMapHeightEach time you request a tile from Google Maps, the width of the tile (pixels).java.lang.StringgoogleMapLanguageThe language used for text annotation in the map.java.lang.StringgoogleMapWidthEach time you request a tile from Google Maps, the width of the tile (pixels).java.lang.StringgoogleProxyAddressGoogle Maps proxy address.intgoogleProxyPortGoogle Maps proxy port.-
Fields inherited from class com.supermap.services.components.spi.MapProviderSetting
dataPrjCoordSysType, watermark
-
-
Constructor Summary
Constructors Constructor and Description GoogleMapsMapProviderSetting()
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Determines whether two objects are equal.booleangetCacheEnabled()Whether to use cache.inthashCode()Gets the hash value of the object instancebooleanisUseTileImage()voidsetCacheEnable(boolean cacheEnable)Deprecated.voidsetCacheEnabled(boolean cacheEnabled)Sets whether to use cachingvoidsetUseTileImage(boolean useTileImage)-
Methods inherited from class com.supermap.services.components.spi.MapProviderSetting
getCacheMode, getCacheVersion, getName, getOutputPath, getOutputSite, getWatermark, setCacheMode, setCacheVersion, setName, setOutputPath, setOutputSite, setWatermark
-
-
-
-
Field Detail
-
googleMapLanguage
public java.lang.String googleMapLanguage
The language used for text annotation in the map.
- Since:
- 8.0.2
-
googleMapCryptoKey
public java.lang.String googleMapCryptoKey
The private key of the account.
- Since:
- 8.0.2
-
googleMapClientID
public java.lang.String googleMapClientID
The account with Google Maps access.
- Since:
- 8.0.2
-
googleMapWidth
public java.lang.String googleMapWidth
Each time you request a tile from Google Maps, the width of the tile (pixels). Since there may be a Geoogle watermark on each request for a single tile, the larger tile setting can reduce the watermark density throughout the window. However, single tile too large may affect the efficiency of tile access, because you should be based on hardware and software and network conditions, set a reasonable value.
- Since:
- 8.0.2
-
googleMapHeight
public java.lang.String googleMapHeight
Each time you request a tile from Google Maps, the width of the tile (pixels). Generally set the same width, height tiles .
- Since:
- 8.0.2
-
googleProxyAddress
public java.lang.String googleProxyAddress
Google Maps proxy address. If the service can not be normal due to network reasons, you should set this parameter, such as: 127.0.0.1.
- Since:
- 8.0.2
-
googleProxyPort
public int googleProxyPort
Google Maps proxy port.
- Since:
- 8.0.2
-
-
Method Detail
-
setCacheEnable
@Deprecated public void setCacheEnable(boolean cacheEnable)
Deprecated. UseBingMapsMapProviderSetting.setCacheEnabled(boolean)Sets whether to use caching.
- Parameters:
cacheEnable- whether to use caching
-
setUseTileImage
public void setUseTileImage(boolean useTileImage)
-
isUseTileImage
public boolean isUseTileImage()
-
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:
- whether or not equal,and true mean that the two objects are equal.
-
getCacheEnabled
public boolean getCacheEnabled()
Whether to use cache.- Returns:
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
Sets whether to use caching- Parameters:
cacheEnabled-
-
hashCode
public int hashCode()
Gets the hash value of the object instance- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash value
-
-