首页 / 浏览问题 / WebGIS / 问题详情
leaflet平铺地图
55EXP 2022年05月05日

leaflet使用

L.supermap.tiledMapLayer(url).addTo(map);

加载地图以后只有一张地图,不会沿着x轴平铺,怎么实现平铺呢,openlayer有warX可以设置,但是leaflet好像没有

1个回答

您好,leaflet可以通过设置noWrap来控制地图是否平铺,默认为false即为平铺,设置为true时只展示一张地图;代码参考: new L.supermap.TiledMapLayer(url,{noWrap:false}).addTo(map);

3,143EXP 2022年05月06日
好的谢谢
...