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
相關文章
相關標籤/搜索