如何在sencha touch中获取圆形markerimage google地图
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 });
根据这个例子https://developers.google.com/maps/documentation/javascript/examples/marker-symbol-predefined你的图标应该是这样的:
icon: {
path: google.maps.SymbolPath.CIRCLE,
scale: 10
}
我对你的问题的理解正确吗?
自定义 Google 圆形地图标记
根据这个例子,
我成功实现了这个https://jsfiddle.net/uaxb76f8/12/
.gm-style img {
max-width: none;
border-radius: 25px !important;
}
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 });
根据这个例子https://developers.google.com/maps/documentation/javascript/examples/marker-symbol-predefined你的图标应该是这样的:
icon: {
path: google.maps.SymbolPath.CIRCLE,
scale: 10
}
我对你的问题的理解正确吗?
自定义 Google 圆形地图标记
根据这个例子,
我成功实现了这个https://jsfiddle.net/uaxb76f8/12/
.gm-style img {
max-width: none;
border-radius: 25px !important;
}