图片叠加到高德地图

使用地图拾取工具
获取要覆盖区域的左下角,右上角的经纬度坐标;

var imageLayer = new AMap.ImageLayer({
        url: 'demo.png',
        bounds: new AMap.Bounds(
         [119.0588, 34.4562],   //左下角
         [119.0777, 34.4640]    //右上角
         ),
        zooms: [15, 18]
    });
    var map = new AMap.Map('container', {
        resizeEnable: true,
        center: [119.0670,34.4446],
        zoom: 15,
        layers: [
            new AMap.TileLayer(),
            imageLayer
        ]
    });

你可能感兴趣的:(图片叠加到高德地图)