com.supermap.services.providers

Class 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
    • Constructor Detail

      • OpenStreetMapProviderSetting

        public OpenStreetMapProviderSetting()
        
    • 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:
        equals in class java.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:
        hashCode in class java.lang.Object
        Returns:
        hash value