zyzdev / flutter_street_view

10 stars 34 forks source link

Why with my Gps Coordinate dont' work ? #3

Closed andreaitferri closed 3 years ago

andreaitferri commented 3 years ago

Hi

i testing you lib with this data, initPos: LatLng(40.782475, 14.609774), but i see only black screen :)

My data are correct i get it from my gps app for localize car and truck

Help me:)

zyzdev commented 3 years ago

Hi @andreaitferri ,

Setting initRadius to a big value can solve it. I can find a street view on the Via Zeccagnuolo Rd while setting initRadius to 500.

initPos: LatLng(40.782475, 14.609774),
initRadius: 500,

Street view screenshot shown below. Screenshot_20211020-182207

andreaitferri commented 3 years ago

Thanks for your reply!

This not work for me, i have inserted the param initRadius 500, but the result is same black screen.

If i insert initPos: LatLng(25.0780892, 121.5753234) work very well, if i use initPos: LatLng(40.782475, 14.609774) don't work :((

andreaitferri commented 3 years ago

class MapStreetView extends StatefulWidget { final PointModel point; const MapStreetView({required this.point});

@override State createState() => MapStreetViewState(); }

class PointModel { double latitude; double longitude;

PointModel({ required this.latitude, required this.longitude, });

factory PointModel.fromData(dynamic data) { double latitude = data["latitude"]; double longitude = data["longitude"];

return PointModel(
  latitude: latitude,
  longitude: longitude,
);

} }

initPos: LatLng(widget.point.longitude, widget.point.latitude),

I using your class i call MapStreetView and i passing Pointmodel like here MaterialButton( onPressed: () => Navigator.push( context, MaterialPageRoute( builder: (context) => MapStreetView( point: new PointModel(latitude: veichel.latitude, longitude: veichel.longitude), ), )),

zyzdev commented 3 years ago

Hi @andreaitferri ,

I test your code at Android&iOS. Still work for me. The code of demo videos(link).

https://user-images.githubusercontent.com/16483162/138578667-7ceb7aad-171e-4c04-a4c0-9fdcb938def6.mov

https://user-images.githubusercontent.com/16483162/138578669-8b1130da-0b33-46ac-922a-873e1e8853c3.mov

zyzdev commented 3 years ago

Close issue here. Can't reproduce bug and set big initRadius can find street view.

andreaitferri commented 3 years ago

Thanks!!!!

I'm testing now this code! Your plugin is very beautiful and there isn't similar to pub.dev :)

============================= Andrea Ferri 349 1928014

Il giorno mar 26 ott 2021 alle ore 08:27 Zhe-Yi, Zhu < @.***> ha scritto:

Close issue here. Can't reproduce bug and set big initRadius can find street view.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zyzdev/flutter_street_view/issues/3#issuecomment-951602491, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATGXUKJJ2LYJ7HLGF2IXPVDUIZC53ANCNFSM5GJUIAIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.