Code Monkey home page Code Monkey logo

Comments (7)

ioslh avatar ioslh commented on July 20, 2024

参考这里

对于我们尚未提供的组件,你也完全可以在地图的实例创建成功后,亲自调用高德的实例化方法进行创建;一个例子参考如何使用AMap.Geocoder以及相应的 jsfiddle 示例。 或者在 GitHub 上给我们提交PR或者issue。

from react-amap.

richartan avatar richartan commented on July 20, 2024

首先先谢谢快速的回复!我按照你给的示例,写了以下代码,可以调出advancedInfowindow, 但是进行搜索的时候却报错。
image
image

from react-amap.

richartan avatar richartan commented on July 20, 2024

少了一张错误的screenshot
image
在jsfiddle上运行也是同样的错误。

from react-amap.

richartan avatar richartan commented on July 20, 2024

https://jsfiddle.net/fantasy2005/ko6d187t/

from react-amap.

ioslh avatar ioslh commented on July 20, 2024

image

注意这一段:

如果设置了panel属性,路线规划和poi搜索的结果可以显示在panel指定的div中:文档地址

我看到你设置了 {panel: 'panel'},页面中应该有个 id 为 panel 的元素才对,否则就会出错。

from react-amap.

richartan avatar richartan commented on July 20, 2024

解决了,太感谢了!
附上https://jsfiddle.net/fantasy2005/ko6d187t/ 希望对其他人有帮助。

from react-amap.

richartan avatar richartan commented on July 20, 2024

再次感谢@ioslh

from react-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.