Giter Club home page Giter Club logo

Comments (7)

AxeMea avatar AxeMea commented on August 22, 2024

传字符串呢?类似这样

markers.push({
   icon: 'your image url '
})

from vue-amap.

Perrywzp avatar Perrywzp commented on August 22, 2024

嗯嗯,这招也试过了,没有生效

from vue-amap.

Perrywzp avatar Perrywzp commented on August 22, 2024

嗯嗯,这招也试过了,没有生效
image
不过我现在发现的问题是,怎么拿到高德地图自身的AMap,vue-amap里拿到amapmanage拿到的是当前这个实力,,,我是想着直接用AMap的Icon类生成一个icon对象

from vue-amap.

Perrywzp avatar Perrywzp commented on August 22, 2024

Uploading image.png…
看了下源码,我想应该是这个吧。。。

from vue-amap.

cottom avatar cottom commented on August 22, 2024

content用字符串应该是可以的我刚刚试了下,你看你的content属性有没有绑定上去, :content="marker.content"

<el-amap vid="amap" :zoom="zoom" :center="center">
          <el-amap-marker v-for="marker in markers" :content="marker.content" :position="marker.position" :events="marker.events" :visible="marker.visible" :draggable="marker.draggable"></el-amap-marker>
        </el-amap>

脚本load完毕的这个promise是有的;如果有这个需求回头把文档放出来

from vue-amap.

Perrywzp avatar Perrywzp commented on August 22, 2024

嗯嗯,确实是没有绑,感谢!
脚本load完毕的这个promise我在源码里是看到了, 觉得文档可以放一放。(当然content也已经可以满足业务需求了)

from vue-amap.

cottom avatar cottom commented on August 22, 2024

好的,回头我完善下

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