com.supermap.services.providers

Class ZXYTilesMapProvider

  • All Implemented Interfaces:
    Disposable, MapProvider, ProviderContextAware


    public class ZXYTilesMapProvider
    extends LocalTileProviderBase
    

    Docking OSM and other Internet tile exchange package service provider.
    Request:
    1, tiles or tiles directory of the organizational structure: /{mapName/layerName}/{level}/{x}/{y}.png
    2, the coordinates of the tile is Web Mercator
    3, the origin of the tile is (-20037508.3427892, 20037508.3427892)
    4, the tile size of the tile: 256*256
    5, all tiles Geographic range:(-20037508.3427892,-20037508.3427892,20037508.3427892, 20037508.3427892)

    Since:
    8.1.0
    • Constructor Detail

      • ZXYTilesMapProvider

        public ZXYTilesMapProvider()
        
    • Method Detail

      • initLODInfos

        protected boolean initLODInfos()
        
        Initializes tile meta information.
      • initDefaultMapParameter

        protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
        
        Description copied from class: TiledMapProviderBase

        Initializing the default map status, a mapping object will be returned, of which the key is map name, valude is map parameter object.

        Specified by:
        initDefaultMapParameter in class TiledMapProviderBase
        Returns:
        Map status mapping. The key is the map name, and the value is the map parameter object.
      • getSupportScales

        public double[] getSupportScales()
        
      • getSupportResolutions

        public double[] getSupportResolutions(java.lang.String mapName)
        
        Description copied from class: TiledMapProviderBase

        Returns the resolution of the current service support. If all resolutions are supported, empty is returned.

        Specified by:
        getSupportResolutions in class TiledMapProviderBase
        Parameters:
        mapName - The map name.
        Returns:
        The resolution array.
      • getOrigin

        protected Point2D getOrigin(java.lang.String mapName)
        

        Returns the origin of the specified map corresponding to the tile

        Specified by:
        getOrigin in class TiledMapProviderBase
        Parameters:
        mapName -
        Returns:
        Since:
        8.1.0
      • support

        public boolean support(java.lang.String mapName,
                      MapCapability capability)
        
        Description copied from interface: MapProvider
        Determines whether the map supports the specified function.
        Specified by:
        support in interface MapProvider
        Overrides:
        support in class TiledMapProviderBase
        Parameters:
        mapName - The map name.
        capability - Function type.
        Returns:
        true means to support; otherwise, false.