关于javascript:leaflet基于平面坐标系做时序播放功能方案

1.初始化map,bounds和origin从iserver公布的底图的根底信息获取

this.baseMap = L.map(this.initId, {
    crs: L.CRS.NonEarthCRS({
        bounds: L.bounds([-45888490.52,-47298112.34], [45888490.52, 45888490.52]),
        origin: L.point(-45888490.52,45888490.52)
    }),
    center: [733210.56 , -1230428.86],
    maxZoom: 18,
    zoomControl:false,
    attributionControl:false,
    zoom: 1,
});

2.创立一个layerGroup对时序图层等业务进行治理
3.collectionId和names需开发人员本人获取本人业务服务的相干

const imageBounds = '须要时序性能产品的bound'
const imageUrl = '******************'
thit.imageLayer =L.imageOverlay(imageUrl, imageBounds)
that.AniLayerGroup.addLayer(this.imageLayer)

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理