Leaflet.LabeledIcon
一个传单图标,它环绕另一个 L.Icon 并在其旁边提供一个 HTML 标签。
用法
// Create an instance of L.Icon (or a subclass)
var originalIcon = new L.Icon();
// Wrap it up and add a label
var labeledIcon = new L.LabeledIcon({html:'Foobar!', icon: originalIcon});
// Now you can use it wherever you would use a L.Icon
var marker = L.marker(coordinages,{icon:icon});
选项
var labeledIcon = new L.LabeledIcon({
h
1