GithubHelp home page GithubHelp logo

map-ui's People

Contributors

idcjaja avatar ll790226724 avatar moonrider avatar usernameisman avatar

Watchers

 avatar  avatar

Forkers

idcjaja

map-ui's Issues

SvgMarker

props

  • marker
  • markerStyle
  • icon
  • innerLabel

地图适应缩放

问题描述:

当地图容器或其父元素存在scale变换(其余变换没测试,可能也有别的部分变换)时, 地图的某些组件的鼠标事件会出现偏移的问题。

问题原因

canvas 绘制的地图没有图元概念,地图组件的事件均是依靠模拟计算得出,如果用户有变换会导致鼠标事件的坐标转换到canvas的坐标出现偏差,造成事件错位的现象。

解决方案

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.