簡體   English   中英

如何在Sencha Touch中獲取圓形markerimage谷歌地圖

[英]How to get circle markerimage google map in sencha touch

var markerImage = new google.maps.MarkerImage( images/beachflag.png );

var marker = new google.maps.Marker ({ map: googleMapComp, position: storeResult_coords, icon: markerImage, title: title, animation: google.maps.Animation.DROP });

將圓形的Google Map標記定制化

根據這個例子

我能夠成功實現此功能https://jsfiddle.net/uaxb76f8/12/

  .gm-style img {
     max-width: none;
     border-radius: 25px !important;
    }

根據此示例https://developers.google.com/maps/documentation/javascript/examples/marker-symbol-predefined,您的圖標應如下所示:

icon: {
  path: google.maps.SymbolPath.CIRCLE,
  scale: 10
}

我是否正確理解您的問題?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM