static_map_service 1.1.0
static_map_service: ^1.1.0 copied to clipboard
A type-safe Dart package for generating static map image URLs from Google Maps, Apple Maps, and Mapbox.
1.1.0 #
Fixes #
- Apple Maps: Rename query parameters to
z,spnandimgsto conform to the Web Snapshots specification. - Apple Maps: Fix
AppleMapSizeto separate width and height withx. - Apple Maps: Fix
AppleMapOverlayto emitlineDashOffsetandlineDashas integers. - Apple Maps: Build
annotations,overlaysandimgswithjsonEncodeto escape special characters. - Google Maps: Fix
GoogleMapFeatureLandscapeto use a dot separator for sub-types. - Mapbox: Fix double percent-encoding of overlays in the generated URL.
- Mapbox: Reject
paddingoutsideMapboxMapService.auto. - Fix
MapLatLngto keep 6 decimal places and to treatNaNas0.
Breaking Change #
- Apple Maps: Rename
AppleMapOverlayparameterslineDashPhasetolineDashOffsetandlineDashPatterntolineDash. Both now takeintinstead ofdouble.
Deprecations #
- Mapbox: Deprecate
MapboxMarkerSize.medium, which is not part of the specification.
Refactoring & Others #
- Add regression tests for the generated
urlof each service. - Fix the example in
README.md. - Update
AGENTS.md.
1.0.0 #
Features #
- Support Mapbox Static Images API.
- Apple Maps: Support
overlaysandimagesparameters. - Implement Encoded Polyline Algorithm for efficient paths.
- Add
exampleproject.
Fixes #
- Google Maps: Fix URL generation for multiple markers and styles to conform to multi-value parameter specifications.
Refactoring & Others #
- Breaking Change: Refactor
MapboxMapServiceto use.auto()constructor for automatic viewport fitting. - Internal parameter building logic refactor for better maintainability and type safety.
- Convert all Mapbox overlays to
extension type constfor better performance and consistency. - Achieve 100% test coverage with robust assertion and boundary checks.
- Support Dart 3.8 features (null-aware collection elements).
- Setup GitHub Actions CI.
- Add topics and repository info to
pubspec.yaml. - Improve documentation.
0.0.2 #
- Use extension type.
0.0.1 #
- Initial version.