@@ -69,7 +69,7 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
69
69
point: LatLng (90 , 0 ),
70
70
radius: 20000 ,
71
71
useRadiusInMeter: true ,
72
- color: Colors .red ,
72
+ color: Colors .yellow ,
73
73
)
74
74
];
75
75
for (final lon in [- 90.0 , 0.0 , 90.0 , 180.0 ]) {
@@ -81,6 +81,18 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
81
81
));
82
82
}
83
83
84
+ // Add latitude line at 80 degrees
85
+ final distancePoleToLat80 =
86
+ const Distance ().distance (LatLng (90 , 0 ), LatLng (80 , 0 ));
87
+ circles.add (CircleMarker (
88
+ point: LatLng (90 , 0 ),
89
+ radius: distancePoleToLat80,
90
+ useRadiusInMeter: true ,
91
+ color: Colors .transparent,
92
+ borderColor: Colors .black,
93
+ borderStrokeWidth: 1.0 ,
94
+ ));
95
+
84
96
return Scaffold (
85
97
appBar: AppBar (title: const Text ('EPSG:3413 CRS' )),
86
98
drawer: buildDrawer (context, EPSG3413Page .route),
@@ -91,18 +103,27 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
91
103
const Padding (
92
104
padding: EdgeInsets .only (top: 8.0 , bottom: 2.0 ),
93
105
child: Text (
94
- 'This map is in EPSG:3413 ' ,
106
+ 'Tricky edge-cases with polar projections ' ,
95
107
style: TextStyle (
96
108
fontWeight: FontWeight .bold,
97
109
color: Colors .blue,
98
110
fontSize: 16.0 ,
99
111
),
100
112
),
101
113
),
114
+ const Text (
115
+ 'Details: https://github.com/fleaflet/flutter_map/pull/1295' ),
102
116
const Padding (
103
117
padding: EdgeInsets .only (top: 8.0 , bottom: 2.0 ),
104
- child: Text (
105
- 'This page demonstrates some tricky edge-cases for maps with a polar projection.' ,
118
+ child: SizedBox (
119
+ width: 500 ,
120
+ child: Text (
121
+ '• Northern and eastern directions are relative to where you are on the map:\n '
122
+ ' • A red dot moves north toward the yellow dot (North Pole).\n '
123
+ ' • A red dot moves east counter-clockwise along the black latitude line (80°).\n '
124
+ '• The lower left and right corners of the overlay image are the northern corners.'
125
+ //textAlign: TextAlign.center,
126
+ ),
106
127
),
107
128
),
108
129
Flexible (
@@ -126,9 +147,6 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
126
147
layers: ['gebco_north_polar_view' ],
127
148
),
128
149
),
129
- CircleLayerOptions (
130
- circles: circles,
131
- ),
132
150
OverlayImageLayerOptions (
133
151
overlayImages: [
134
152
OverlayImage (
@@ -141,7 +159,10 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
141
159
).image,
142
160
)
143
161
],
144
- )
162
+ ),
163
+ CircleLayerOptions (
164
+ circles: circles,
165
+ ),
145
166
],
146
167
),
147
168
),
0 commit comments