geomap_package 2.1.2
geomap_package: ^2.1.2 copied to clipboard
A Flutter package for displaying geomaps with Google Maps and Flutter Map, supporting both mobile and web platforms with GetX state management.
2.1.2 #
Performance #
- Lazy-load NotoColorEmoji font: Font
NotoColorEmoji-Regular.ttf(~23MB) đã được loại bỏ khỏiFontManifest.jsonvà không còn tải trước khi render frame đầu tiên. Thay vào đó, font được tải runtime từ CDN (cdn.sharemap.live) hoặc fallback về asset trong bundle chỉ khi thực sự cần hiển thị marker emoji — giúp cải thiện đáng kể tốc độ khởi động khi nhúng package qua iframe. - Background pre-load:
GeoMapController.init()kích hoạt tải font ngầm (unawaited) ngay khi controller khởi tạo, giảm thiểu độ trễ khi marker emoji xuất hiện lần đầu.
Added #
publicBaseUrlconfig inGeoMapConfigto support dynamic public map URL generation.- Detect exact browser URL on web for
getPublicGeoMapUrl.
2.1.0 #
Added #
- UI Customization: Thêm
infoCardModelvàdriverInfoCardModelvàoGeoMapPubliccho phép tùy chỉnh thông tin hiển thị trên các thẻ. - Multi-day Tracking: Hỗ trợ chọn xem lịch sử di chuyển theo từng ngày thông qua dropdown mới.
- Enhanced Data Models: Bổ sung các thông tin
address,time,plate, vàphonecho modelUserJoinGeoMap. - Extended Map Features: Thêm hỗ trợ cho các trường dữ liệu mới trong
MapGeoModelnhưisReturn,totalGeofencing, vàlistDetectTracing.
Improved #
- New Design: Cập nhật giao diện mới hiện đại hơn cho toàn bộ gói GeoMap trên cả Mobile và Web.
- Marker Rendering: Cải thiện hiệu suất và cách hiển thị marker trên bản đồ.
- UI Components: Thiết kế lại các thành phần
GeoMapDriverInfoCard,GeoMapStatusCardvàGeoMapCollapsedTimeline. - API Handling: Tối ưu hóa việc gọi API tracking thông qua
datasetCodeổn định hơn.
2.0.0 #
BREAKING CHANGES #
- New Tracking Engine: Migrated completely to the Dataset Tracking API for improved accuracy and reliability.
- Response Format Change: Replaced
geoMapTracingkey withDatasetTrackingin API responses. - Model Cleanup: Removed deprecated fields (
listConfigurationAPI,expiredTime,key,value,automaticRunTime) fromTrackingVehicleConfiguration. - API Removal: Removed the legacy
getListTracingByTimeRangemethod fromApiService.
Added #
- Support for dynamic
automaticRunTimefetched directly from the Dataset detail. - Added
datasetCodetoMapGeoModelto support multi-dataset tracking. - New
DatasetModelto handle dataset-specific configurations.
Improved & Fixed #
- UI Stability: Fixed text overflow issues in
GeoMapInfoCardwith smart ellipsis (max 2 lines) and improved wrapping. - Performance: Optimized the data refresh sequence to avoid redundant API calls.
1.0.0 #
- Initial public release
- Support for Google Maps on mobile and web platforms
- Support for Flutter Map on all platforms (mobile and web)
- Universal
GeoMapPublicwidget that works across platforms GeoMapControllerfor managing map state and dataGeoMapConfigfor configuring map behavior and appearance- Role-based views:
viewer(full features) anddriver(simplified view) - Close button callback for WebView integration
- Custom font configuration support
- Custom API base URLs for development and production environments
- Internationalization support (English and Vietnamese)
- Display markers, circles, polygons, and polylines
- Real-time data refresh capabilities