@@ -46,7 +46,7 @@ public async void Load()
46
46
_recordedViewChanges = parser . ParseSequence ( ( JObject ) mapInfo ) ;
47
47
48
48
var firstView = _recordedViewChanges . FirstOrDefault ( x => x is SetCameraSequenceCommand ) as SetCameraSequenceCommand ;
49
- Map . mapInformation . SetInformation ( firstView . center , firstView . zoom , firstView . pitch , firstView . bearing , firstView . scale ) ;
49
+ Map . MapInformation . SetInformation ( firstView . center , firstView . zoom , firstView . pitch , firstView . bearing , firstView . scale ) ;
50
50
Map . LoadMapView ( ( ) => Debug . Log ( "file loaded" ) ) ;
51
51
}
52
52
@@ -130,16 +130,16 @@ public void Record(MapboxMap map, Camera cam)
130
130
var wait = new WaitSequenceCommand ( ) { duration = 0 } ;
131
131
var set = new SetCameraSequenceCommand ( )
132
132
{
133
- center = Conversions . WebMercatorToLatLon ( ( GetCenterPosition ( ) * Map . mapInformation . Scale ) . ToVector2d ( ) + Map . mapInformation . CenterMercator ) ,
134
- bearing = Map . mapInformation . Bearing ,
135
- pitch = 90 - Map . mapInformation . Pitch ,
136
- zoom = Map . mapInformation . Zoom ,
137
- scale = map . mapInformation . Scale
133
+ center = Conversions . WebMercatorToLatLon ( ( GetCenterPosition ( ) * Map . MapInformation . Scale ) . ToVector2d ( ) + Map . MapInformation . CenterMercator ) ,
134
+ bearing = Map . MapInformation . Bearing ,
135
+ pitch = 90 - Map . MapInformation . Pitch ,
136
+ zoom = Map . MapInformation . Zoom ,
137
+ scale = map . MapInformation . Scale
138
138
} ;
139
139
_recordedViewChanges . Add ( wait ) ;
140
140
_recordedViewChanges . Add ( set ) ;
141
141
142
- Map . mapInformation . ViewChanged += RecordViewChanges ;
142
+ Map . MapInformation . ViewChanged += RecordViewChanges ;
143
143
}
144
144
}
145
145
@@ -166,7 +166,7 @@ public JObject DumpLogs()
166
166
167
167
//File.WriteAllText(FilePath, main.ToString());
168
168
169
- Map . mapInformation . ViewChanged -= RecordViewChanges ;
169
+ Map . MapInformation . ViewChanged -= RecordViewChanges ;
170
170
//_isRecording = false;
171
171
return main ;
172
172
}
@@ -190,7 +190,7 @@ private void RecordViewChanges(IMapInformation info)
190
190
var wait = new WaitSequenceCommand ( ) { duration = deltaTime } ;
191
191
192
192
var command = new SetCameraSequenceCommand ( ) ;
193
- command . center = Conversions . WebMercatorToLatLon ( ( GetCenterPosition ( ) * Map . mapInformation . Scale ) . ToVector2d ( ) + Map . mapInformation . CenterMercator ) ;
193
+ command . center = Conversions . WebMercatorToLatLon ( ( GetCenterPosition ( ) * Map . MapInformation . Scale ) . ToVector2d ( ) + Map . MapInformation . CenterMercator ) ;
194
194
command . pitch = 90 - info . Pitch ;
195
195
command . bearing = info . Bearing ;
196
196
command . zoom = info . Zoom ;
0 commit comments