Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Created December 25, 2024 13:51
Show Gist options
  • Save yasudacloud/b3debcef29fa6f10c34cd70e5b973c56 to your computer and use it in GitHub Desktop.
Save yasudacloud/b3debcef29fa6f10c34cd70e5b973c56 to your computer and use it in GitHub Desktop.
// 関数コンポーネントで(ry
const line = L.polyline([{
lat: fromLatlng.lat,
lng: fromLatlng.lng
}, {
lat: toLatlng.lat,
lng: toLatlng.lng
}], {color: 'gray'});
line.addTo(map)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment