File tree 1 file changed +0
-23
lines changed
harmony/maps/src/main/ets/AIRMaps
1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -162,29 +162,6 @@ export struct AIRMap {
162
162
163
163
// 我的位置按钮
164
164
this.mapController?.setMyLocationControlsEnabled(this.descriptor.rawProps.showsMyLocationButton);
165
-
166
- // 首次设置我的位置
167
- geoLocationManager.getCurrentLocation().then((result) => {
168
- // 设置用户的位置
169
- let position: geoLocationManager.Location = {
170
- "latitude": result.latitude,
171
- "longitude": result.longitude,
172
- "altitude": 0,
173
- "accuracy": 0,
174
- "speed": 0,
175
- "timeStamp": 0,
176
- "direction": 0,
177
- "timeSinceBoot": 0,
178
- //fixme 6.14 liwang新增
179
- "altitudeAccuracy": 0,
180
- "speedAccuracy": 0,
181
- "directionAccuracy": 0,
182
- "uncertaintyOfTimeSinceBoot": 0,
183
- "sourceType": geoLocationManager.LocationSourceType.GNSS
184
- };
185
- this.mapController?.setMyLocation(position);
186
- this.animateToRegion({latitude: result.latitude, longitude: result.longitude}, 500);
187
- });
188
165
}
189
166
}
190
167
MapsManager.getInstance().initMapComponentController(this.mapController)
You can’t perform that action at this time.
0 commit comments