Code Monkey home page Code Monkey logo

Comments (5)

plainheart avatar plainheart commented on August 22, 2024

现在不能拖拽吗?

from echarts-extension-amap.

plainheart avatar plainheart commented on August 22, 2024

哦 貌似理解错了 你是不是希望拖拽 echarts 避免地图被拖拽?
我在 Google Map 扩展里回复过类似需求,参见 plainheart/echarts-extension-gmap#5,后面会看下高德地图能不能处理。

from echarts-extension-amap.

andyFang94 avatar andyFang94 commented on August 22, 2024

哦 貌似理解错了 你是不是希望拖拽 echarts 避免地图被拖拽? 我在 Google Map 扩展里回复过类似需求,参见 plainheart/echarts-extension-gmap#5,后面会看下高德地图能不能处理。

hi, 感谢您的回复, 其实我目前在模仿 echarts-extension-amap 实现一个类似echarts-extension-bingmap 的东西
例如1:
bing map 为底
echarts 层级最上, 上画气泡图 滑动的时候 带动不了bing map (其实希望一同滑动)
例2:
bing map 在上 和 echats 在中,可实现拖动 但是没有echarts 的tooltips

所以想询问下 echarts-extension-amap 实现的时候有没有遇到过类似的问题 或者是如何解决的

from echarts-extension-amap.

plainheart avatar plainheart commented on August 22, 2024

不太熟悉必应地图,不过原理都差不多,一般会用地图提供的自定义 overlay 或者 layer 将 ECharts 图层嵌入到地图中,一般都是在地图图层上方(当然也可以通过 z-index 调整层叠顺序,用于防止图表元素覆盖住地图本身的覆盖物的场景),然后监听地图的更新事件(如移动、缩放、倾斜、旋转等),重绘 ECharts 图层即可。

from echarts-extension-amap.

andyFang94 avatar andyFang94 commented on August 22, 2024

thx

from echarts-extension-amap.

Related Issues (20)

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.