简体   繁体   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 });

Cutomize Google Map marker with Rounded shape 将圆形的Google Map标记定制化

According to this example, 根据这个例子

I was able to implement this successfully https://jsfiddle.net/uaxb76f8/12/ 我能够成功实现此功能https://jsfiddle.net/uaxb76f8/12/

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

According to this example https://developers.google.com/maps/documentation/javascript/examples/marker-symbol-predefined your icon should be like this: 根据此示例https://developers.google.com/maps/documentation/javascript/examples/marker-symbol-predefined,您的图标应如下所示:

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

Did I understand your problem correctly? 我是否正确理解您的问题?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM