Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map view allways start offset(0,0) #1160

Closed
xleonard opened this issue Aug 20, 2022 · 5 comments
Closed

map view allways start offset(0,0) #1160

xleonard opened this issue Aug 20, 2022 · 5 comments
Labels

Comments

@xleonard
Copy link

Screen Shot 2022-08-20 at 9 25 57 PM

@xleonard
Copy link
Author

mapbox_gl: ^0.16.0
mapbox_gl_platform_interface: ^0.16.0
mapbox_gl_web: ^0.16.0

Stack(
children:[SlideTransition(
position: offsetAnimation,
child:Positioned(
top: 100,
left: 100,
//child: Container(color: Colors.red,width: 200,height: 200,),
child: Container(
width: 200,
height: 200,
child: MapboxMap(
dragEnabled: true,
key: _widgetKey1,
accessToken:'myAccessToken',
initialCameraPosition:
CameraPosition(target: LatLng(33.569126, 73.1231471)),
//onMapCreated: _onMapCreated,
//onStyleLoadedCallback: _onStyleLoadedCallback,
myLocationEnabled: true,
myLocationTrackingMode: MyLocationTrackingMode.Tracking,
minMaxZoomPreference: const MinMaxZoomPreference(14, 17),
),
)

          ))])

@Xennis
Copy link
Contributor

Xennis commented Aug 23, 2022

Same here. Can be reproduced by running the examples and open the "Scrolling Map":

Screenshot_20220823-180128.png

@JigneshWorld
Copy link

It seems like this issue is still open for Flutter 3.
flutter/flutter#103630

@Xennis
Copy link
Contributor

Xennis commented Aug 26, 2022

Thanks a lot. Read through flutter/flutter#103630 A fix already exists. For me it works with Flutter 3.3.0 again 🎉 (from the beta channel).

@stale
Copy link

stale bot commented Oct 26, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 26, 2022
@stale stale bot closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants