leaflet关闭底图切换的过渡效果
//leaflet底图切换时,关闭过渡效果
var map = L.map('map', {fadeAnimation: false}).setView([23.16, 113.23], 7);
加入此参数即可,{fadeAnimation: false}
//加载地图
var BMap = L.tileLayer(mapUrl, {
crs: L.CRS.EPSG3857,
minZoom: 2,
maxZoom: 8,
id: 'z',
}).addTo(map);
BMap.setUrl(mapurl);//切换底图
map.setMaxZoom(maxzoom);//设置zoom
map.doubleClickZoom.disable();//双击不允许缩放
转载自:https://blog.csdn.net/STRIVEYe/article/details/88309577