flutter_map용 드래그 마커 위젯으로 지도 위에서 마커의 상호작용 가능한 배치 및 이동을 가능하게 합니다. flutter_map의 기능을 확장하여 사용자가 원하는 위치로 마커를 끌어다 놓을 수 있게 하여 정밀한 지리 정보 입력이 필요한 애플리케이션에 적합합니다. 패키지는 flutter_map의 기존 API와 원활하게 통합되며 모바일, 웹, 데스크톱 등 모든 주요 플랫폼을 지원합니다. 경량이며 핵심 기능을 희생하지 않고 단순성에 초점을 맞춘 설계입니다.
See the example/lib/main.dart for usage, but the
included example below in this file should show pretty much everything.
Usage
This layer should probably be the last layer so IF it needs to be dragged
(otherwise why would you use this :)). If not, other layers may intercept
the gestures.
offset and dragOffset are there for tweaking icon/images if they should
not get displayed centered.
height is mainly for Images, use Icon(..., size: ...), but be aware
internal calculations are based on size.
rotateMarker toggles the markers' rotation on and off. True keeping markers
upright.
Use scrollMapNearEdge if the map should scroll when a marker is dragged
near the edge.
Enable useLongPress if you want to enable dragging after a long press
It may be interesting to move the map alternately to marker, too. So the marker
stays in place, but then technically you aren't dragging anymore, so thoughts
welcome.