Code Monkey home page Code Monkey logo

Comments (5)

plainheart avatar plainheart commented on July 21, 2024

bmap 下的参数是怎样的?其实可以直接监听高德地图自身的移动、缩放事件。

from echarts-extension-amap.

CNFeffery avatar CNFeffery commented on July 21, 2024

@plainheart
对的,我发现直接用高德地图自带的事件监听就可以获取到了:
image
image

from echarts-extension-amap.

plainheart avatar plainheart commented on July 21, 2024

你希望 amaproam 能直接监听获取这些参数吗?

from echarts-extension-amap.

CNFeffery avatar CNFeffery commented on July 21, 2024

@plainheart
如果能对常见的缩放级别、当前地图矩形坐标范围等按照echarts的方式进行监听会方便很多,现在虽然也可以获取到,但是要麻烦一些

from echarts-extension-amap.

plainheart avatar plainheart commented on July 21, 2024

已发 v1.10.0

新增 returnMapCameraState 配置项,设置为 true 监听 amaproam 事件将能获取到地图相机状态,如中心点、缩放级别、俯仰角度、地图范围等信息。

参见示例:https://codepen.io/plainheart/pen/qBbdNYx

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.