【问题标题】:google maps : how to draw markers as rounded-border images? [duplicate]谷歌地图:如何将标记绘制为圆形边框图像? [复制]
【发布时间】:2017-08-17 06:01:09
【问题描述】:

我正在使用这个 jquery 库: http://tilotiti.github.io/jQuery-Google-Map/

我得到的结果是:

我希望这张图片是圆角的(圆形)

有没有办法做到这一点?

【问题讨论】:

    标签: jquery google-maps google-maps-api-3


    【解决方案1】:

    如果图像是<img src=''> 标签,则尝试应用其中一个 css

    HTML

    <img class="round_img" src="your image">
    

    CSS

    .round_img {
        border:1px solid blue;
        border-radius: 50%;
        max-width:200px;
    }
    

    .round_img {
        border-radius: 50%;
    } 
    

    【讨论】:

    • 这是针对 HTML 的。你试过谷歌地图吗?这是画布。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-21
    • 2017-10-31
    • 2014-06-21
    • 1970-01-01
    • 1970-01-01
    • 2012-05-31
    • 2014-07-21
    相关资源
    最近更新 更多