Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

隐藏的mapvLayer在拖动地图或缩放地图之后会自动显示出来 #22

Closed
zhang6685979 opened this issue Jul 19, 2018 · 1 comment

Comments

@zhang6685979
Copy link
Contributor

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

这是一个缺陷

One-line summary [问题简述]

由于业务需要我先将mapvLayer隐藏,然后拖动地图或缩放地图,隐藏的图层会被显示出来

Version [产品及版本]

  • iClient product (for leaflet,for openlayers,for mapboxgl,classic)[iClient 产品]:for mapboxgl
  • iClient version [iClient 版本]:9.1.0-alpha.1
  • Browser version [浏览器类型和版本]:chrome
  • OS Version [操作系统类型和版本]:windows

Actual Behavior [当前现象]

拖动地图之后会把隐藏的图层显示出来

Expected Behavior [期望现象]

拖动地图之后不显示隐藏的图层

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


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

image
需要将源码中直接调用show方法的地方根据条件判断

songyumeng added a commit that referenced this issue Sep 17, 2018
fix issue #22  优化mapboxgl mapv是否显示的逻辑
@songyumeng
Copy link
Member

下个版本发布,或者使用 dist 下的临时版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants