Android ArcGis加载地图 下载瓦片实现离线地图

public class GaoDeLayer extends TiledServiceLayer {

    private final int GaoDeLayerType;
    private final String cachePath;// 缓存目录
    private boolean whetheCachedMap = false;// 是否缓存地图
    private String offLineMapPath;// 离线地图目录
    public GaoDeLayer(int layerType, boolean whetheCachedMap,
                      String cachePath,String offLineMapPath) {
        super(true);
        this.whetheCachedMap = whetheCachedMap;
        this.cachePath = cachePath;
        this.GaoDeLayerType = layerType;
        this.offLineMapPath = offLineMapPath;
        this.init();
    }

    private final double[] scales = new double[]{591657527.591555,
            295828763.79577702, 147914381.89788899, 73957190.948944002,
            36978595.474472001, 18489297.737236001, 9244648.8686180003,
            4622324.4343090001, 2311162.217155, 1155581.108577, 577790.554289,
            288895.277144, 144447.638572, 72223.819286, 36111.909643,
            18055.954822, 9027.9774109999998, 4513.9887049999998, 2256.994353,
            1128.4971760000001};
    private final double[] resolutions = new double[]{156543.03392800014,
            78271.516963999937, 39135.758482000092, 19567.879240999919,
            9783.9396204999593, 4891.9698102499797, 2445.9849051249898,
            1222.9924525624949, 611.49622628138, 305.748113140558,
            152.874056570411, 76.4370282850732, 38.2185141425366
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值