Skip to content

希望TileSuperMapRest可传入maxZoom,minZoom参数 #302

@luo-geng

Description

@luo-geng

Request a feature or report a bug? [这是一个需求还是一个缺陷]

缺陷

One-line summary [问题简述]

TileSuperMapRest可传入maxZoom,minZoom。防止layer设置maxZoom,minZoom和source不一致时(特别是当source的maxzoom小于layer的maxzoom时),出现瓦片加载错乱或者不加载的问题

Version [产品及版本]

  • iClient product (for leaflet,for openlayers,for mapboxgl,classic)[iClient 产品]:ol
  • iClient version [iClient 版本]:10.2.0
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Actual Behavior [当前现象]

layer设置maxZoom,minZoom和source不一致时(特别是当source的maxzoom小于layer的maxzoom时),出现瓦片加载错乱或者不加载的问题,因为上传文件大小有限制,用了灰色gif
这里在node_modules修改TileSuperMapRest的maxZoom,minZoom后,在高级别Zoom下可以加载,为修改之前,高级别Zoom时瓦片加载不了
动画9
image

Expected Behavior [期望现象]

TileSuperMapRest可传入maxZoom,minZoom
之前提过一个pr112

image

Example of reproducing the issue [重现现象的例子]


What is motivation or use case for changing the behavior? [需求的场景和目的是什么?]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions