Answers:
您现在可以执行此操作,从0.7版开始,还有一个名为“ maxNativeZoom”的附加选项,此选项之后将对图块进行插值。
这是信息:
minZoom Number 0 Minimum zoom number.
maxZoom Number 18 Maximum zoom number.
maxNativeZoom Number null Maximum zoom number the tiles source has available. If it is specified, the tiles on all zoom levels higher than maxNativeZoom will be loaded from maxZoom level and auto-scaled.
我用来实现它的代码示例在这里:
var aerial = new L.tileLayer(serverURL + "/arcgis/rest/services/Basemaps/Orthophoto/ImageServer/tile/{z}/{y}/{x}", {
attribution: attribution,
maxZoom: 20,
maxNativeZoom: 18
});