Google Maps를 확장하여 개발자가 지도 위에 사용자 정의 위젯 기반 마커를 배치할 수 있도록 해주는 플러터 패키지입니다. 표준 마커와 달리 이 패키지는 아이콘, 아바타, 인터랙티브 요소 등 어떤 플러터 위젯이라도 지도 마커로 사용할 수 있게 합니다. Google Maps 플러그인과 원활하게 통합되며, Android, iOS, Web 플랫폼을 모두 지원합니다. 단순한 이미지나 텍스트를 넘어서 풍부하고 동적 또는 상호작용 가능한 마커 콘텐츠가 필요한 앱에 이상적입니다.
You need to insert the list of WidgetMarker to use widget markers.
Make sure that you still need to use onTap method when you use gestures.
class WidgetMarker {
WidgetMarker({
required this.position,
required this.markerId,
required this.widget,
this.onTap,
}) : assert(markerId.isNotEmpty);
final LatLng position;
/// Keep this unique, otherwise it will not appear.
final String markerId;
/// Gestures of widget is disabled.
/// Use this callback instead.
final VoidCallback? onTap;
final Widget widget;
}
If you have any requests or questions, feel free to ask on github.
Contributors ✨
Thanks goes to these wonderful people (emoji key):