我正在尝试使用http://jvectormap.com/examples/markers-world/的标记样式,但我很难将背景图像应用于这些标记
背景属性在这里不起作用,有什么指示吗?
markerStyle: {
initial: {
fill: '#F8E23B',
stroke: '#383f47',
background: 'url("image.jpg") no-repeat 0 0 transparent'
}
},发布于 2013-12-09 15:32:43
找到另一种选择
jvectormap: How to implement HTML instead of simple string in the markers label/tooltip?
$('#map').vectorMap({
markerStyle: {
initial: {
fill: '#F8E23B',
stroke: '#383f47'
}
},
backgroundColor: '#383f47',
markers: [
{latLng: [46.90, 8.45], name: "My marker name"}
],
onMarkerLabelShow: function(event, label, code) {
label.html("<img src=\"img/logo.png\"><br>"+ label.html());
}
});https://stackoverflow.com/questions/20355518
复制相似问题