Giter VIP home page Giter VIP logo

Comments (5)

ding991 avatar ding991 commented on May 30, 2024

复现地址: https://codepen.io/ding991/pen/WNrZWYN

from wind-layer.

sakitam-fdd avatar sakitam-fdd commented on May 30, 2024

@ding991 这个问题前几天有人问过,你可以看下这个:https://codepen.io/sakitam-fdd/pen/BajRQdY
先复写掉 intersectsCoordinate :

windLayer.on('renderercreate', () => {
        console.log('load');

        const renderer = windLayer._getRenderer();

        if (renderer) {
          // renderer.project = function(coordinate) {
          //   const result = gcoord.transform(
          //     coordinate,    // 经纬度坐标
          //     gcoord.WGS84,               // 当前坐标系
          //     gcoord.BD09                 // 目标坐标系
          //   );
          //
          //   const map = this.getMap();
          //   const pixel = map.coordinateToContainerPoint(new maptalks.Coordinate(result[0], result[1]));
          //   return [
          //     pixel.x,
          //     pixel.y,
          //   ];
          // }

          // renderer.unproject = function() {}

          renderer.intersectsCoordinate = function() {
            return true;
          }
        }
      });

from wind-layer.

ding991 avatar ding991 commented on May 30, 2024

@sakitam-fdd 好的,我先试试,谢谢!请问可以把这个修复发个版本吗?

from wind-layer.

sakitam-fdd avatar sakitam-fdd commented on May 30, 2024

@ding991 这个晚点需要看下,他也不是由于插件问题引起的,这个周末会发个新版

from wind-layer.

sakitam-fdd avatar sakitam-fdd commented on May 30, 2024

close by b63a95b

from wind-layer.

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.