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