widgets/map/news_operations library
News marker operations for GeoMapWidget.
Copyright (C) 2025, Software Innovation Institute, ANU.
Licensed under the GNU General Public License, Version 3 (the "License").
License: https://opensource.org/license/gpl-3-0.
Functions
-
fetchNewsForBounds(
{required BuildContext context, required MapController mapController, required GdeltNewsService newsService, required void updateState(List< NewsMarker> markers, bool loading)}) → Future<void> - Fetches news for current map bounds.
-
getVisibleNewsInBounds(
{required MapController mapController, required List< NewsMarker> newsMarkers, required bool showNews}) → List<NewsMarker> - Gets visible news markers within map bounds.
-
showNewsListDialogAsync(
{required BuildContext context, required MapController mapController, required GdeltNewsService newsService, required List< NewsMarker> getVisibleMarkers(), required void updateState(List<NewsMarker> markers, bool loading, bool show)}) → Future<void> - Shows news list dialog and handles news marker operations.
-
updateNewsFromCacheForBounds(
{required MapController mapController, required GdeltNewsService newsService, required void setMarkers(List< NewsMarker> ), required Future<void> fetchForCurrentBounds()}) → void - Updates news markers from cache when map position changes.