Skip to content

Commit 4d97fc7

Browse files
committed
Preventing map rotation
Rotation of the map was distorting the generated map.
1 parent 4c5f029 commit 4d97fc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/samples/generate_offline_map/generate_offline_map_sample.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ class _GenerateOfflineMapSampleState extends State<GenerateOfflineMapSample>
157157
_map = ArcGISMap.withItem(portalItem);
158158
_mapViewController.arcGISMap = _map;
159159

160+
// Offline map generation does not consider rotation, so disable it.
161+
_mapViewController.interactionOptions.rotateEnabled = false;
162+
160163
// Create an OfflineMapTask for the map.
161164
_offlineMapTask = OfflineMapTask.withOnlineMap(_map);
162165

0 commit comments

Comments
 (0)