Code Monkey home page Code Monkey logo

Comments (3)

plainheart avatar plainheart commented on August 22, 2024

这些的使用方法跟高德API是一样的,获取到高德地图实例后可随意使用。

// 获取高德地图实例
var amap = chart.getModel().getComponent("amap").getAMap();
var style = [
  {
      url: 'https://a.amap.com/jsapi_demos/static/images/mass0.png',
      anchor: new AMap.Pixel(6, 6),
      size: new AMap.Size(11, 11)
  }, {
      url: 'https://a.amap.com/jsapi_demos/static/images/mass1.png',
      anchor: new AMap.Pixel(4, 4),
      size: new AMap.Size(7, 7)
  }, {
      url: 'https://a.amap.com/jsapi_demos/static/images/mass2.png',
      anchor: new AMap.Pixel(3, 3),
      size: new AMap.Size(5, 5)
  }
];
var mass = new AMap.MassMarks(citys, {
    opacity: 0.8,
    zIndex: 111,
    cursor: 'pointer',
    style: style
});
mass.setMap(amap);

image

from echarts-extension-amap.

xcqwan avatar xcqwan commented on August 22, 2024

@plainheart 感谢回复🙏。使用这种方法是可以的。这种是在amap上绘制散点图,然后点聚合也是在amap基础上做。其实我想问的是另外一种,以amap做底图,使用echarts来绘制散点图(type: 'scatter'), 这种如何做点聚合?

from echarts-extension-amap.

plainheart avatar plainheart commented on August 22, 2024

这个恐怕得自己做聚合算法,监听地图缩放事件,动态更新ECharts散点图的data。

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.