0
這裏是我的代碼分割成合金/ JS /造型 不管我在哪裏放置borderRadius/borderWidth
性能卻忽視了它鈦Appcelerator的圓角?
合金:
<Label id="image_label"></Label>
JS:
function setAnnotation(location) {
var annotation = map.createAnnotation({
title: location.title,
subtitle: location.latitude + ', ' + location.longitude,
latitude: location.latitude,
longitude: location.longitude,
image: $.image_label.toImage(),
borderRadius:22, //DOESNT WORK
borderWidth: 6, //DOESNT WORK
});
$.map.setAnnotations([annotation]);
}
風格:
//LABEL ANNOTATION
"#image_label": {
color : 'black',
font : {fontSize:'15dp',font:"monospace",fontWeight:"bold"},
height : '30dp',
width : '30dp',
borderRadius:999, //DOESNT WORK
borderWidth: 99, //DOESNT WORK
backgroundImage:'https://pbs.twimg.com/profile_images/604644048/sign051.gif'
}
我從你明白的是我應該使用,而不是標籤元素查看, 它仍然does not工作IM仍然讓周圍的圓形圖像方白 http://i.imgur.com/nEYNsl4.png –
HTTPS:/ /ibb.co/gn53tv對我來說工作得很好。我已經用該代碼更新了示例 – miga