Leaflet初体验0x2:使用自定义标记图标

准备图片: 创建图标: //通过L.Icon定义图标对象 var greenIcon = L.icon({ iconUrl:'./leaf-green.png', shadowUrl:'./leaf-sahdow.png', iconSize:[38,95], shadowSize:[50,64], iconAnchor:[22,94],//标记点在图标上位置 shadowAncho
相关文章
相关标签/搜索