手戻り修正、APK出力
This commit is contained in:
@ -37,6 +37,7 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
|
||||
|
||||
StreamSubscription? subscription;
|
||||
Timer? _timer;
|
||||
bool curr_marker_display = false;
|
||||
|
||||
Map<LatLng, Marker> _markerCache = {};
|
||||
List<Marker> _markers = [];
|
||||
@ -52,7 +53,12 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
|
||||
WidgetsBinding.instance.addObserver(this);
|
||||
_startIdleTimer();
|
||||
|
||||
//_initMarkers();
|
||||
// MapControllerの初期化が完了するまで待機
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
setState(() {
|
||||
indexController.isMapControllerReady.value = true;
|
||||
});
|
||||
});
|
||||
|
||||
// indexController.mapController = MapController(initCompleter: mapControllerCompleter);
|
||||
|
||||
@ -171,7 +177,9 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
|
||||
//}else{
|
||||
// labelText=i.properties!['cp'];
|
||||
}
|
||||
//debugPrint("Text=${labelText}");
|
||||
if( i.properties!['cp'] <= 0 ) {
|
||||
debugPrint("Text=${labelText}");
|
||||
}
|
||||
final double maxWidth = labelText.length * 16.0;
|
||||
GeoJSONMultiPoint p = i.geometry as GeoJSONMultiPoint;
|
||||
return InkWell(
|
||||
@ -398,7 +406,11 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
|
||||
stream: locationController.locationMarkerPositionStream,
|
||||
builder: (context, snapshot) {
|
||||
if (!snapshot.hasData) {
|
||||
debugPrint("====== Not display current marker");
|
||||
//debugPrint("====== Not display current marker");
|
||||
curr_marker_display = true;
|
||||
}else if(curr_marker_display){
|
||||
debugPrint("====== Displayed current marker");
|
||||
curr_marker_display = false;
|
||||
}
|
||||
return Container();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user