@@ -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,7 +103,7 @@ 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
+ 'This demonstrates some tricky edge-cases with polar projections ' ,
95
107
style: TextStyle (
96
108
fontWeight: FontWeight .bold,
97
109
color: Colors .blue,
@@ -101,8 +113,15 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
101
113
),
102
114
const Padding (
103
115
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.' ,
116
+ child: SizedBox (
117
+ width: 500 ,
118
+ child: Text (
119
+ '• Northern and eastern directions are relative to where you are on the map:\n '
120
+ ' • A red dot moves north toward the yellow dot (North Pole).\n '
121
+ ' • A red dot moves east counter-clockwise along the black latitude line (80°).\n '
122
+ '• The lower left and right corners of the overlay image are the northern corners.' ,
123
+ //textAlign: TextAlign.center,
124
+ ),
106
125
),
107
126
),
108
127
Flexible (
@@ -126,9 +145,6 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
126
145
layers: ['gebco_north_polar_view' ],
127
146
),
128
147
),
129
- CircleLayerOptions (
130
- circles: circles,
131
- ),
132
148
OverlayImageLayerOptions (
133
149
overlayImages: [
134
150
OverlayImage (
@@ -141,7 +157,10 @@ class _EPSG3413PageState extends State<EPSG3413Page> {
141
157
).image,
142
158
)
143
159
],
144
- )
160
+ ),
161
+ CircleLayerOptions (
162
+ circles: circles,
163
+ ),
145
164
],
146
165
),
147
166
),
0 commit comments