Skip to content

for mapboxgl mapvLayer在浏览器缩放后拖动地图部分元素清除不掉 #14

@zhang6685979

Description

@zhang6685979

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

这是一个缺陷

One-line summary [问题简述]

缩放浏览器时mapvLayer会根据devicePixelRatio进行缩放,拖动地图时会对mapv元素进行重绘,因为context的缩放导致部分元素在clear时清除不掉

Version [产品及版本]

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

Actual Behavior [当前现象]

Expected Behavior [期望现象]

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

image

目前的解决办法是:
clear时将width和height同时除以缩放比例就能解决此问题


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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy