Open dalton5 opened 4 years ago
OK I finally found the solution by checking the source code
`var ms = MapSpan.FromCenterAndRadius( new Position(SearchInputValue.Place.Latitude, SearchInputValue.Place.Longitude) , new Distance(SearchInputValue.Radius));
MapValue.InitialCameraUpdate = CameraUpdateFactory.NewBounds(ms.ToBounds(), 0);`
What does the padding mean for the method CameraUpdateFactory.NewBounds?
hi dalton5, im stuck at the same point. I have to zoom in deeper automatically, when a marker is selected.
could u find any solution?
Hi,
I use the last version of XFGMaps.
I try to initialize the position with:
MapValue.MoveToRegion( MapSpan.FromCenterAndRadius( new Position(SearchInputValue.Place.Latitude, SearchInputValue.Place.Longitude) , new Distance(SearchInputValue.Radius)));
But nothing happens.
Then I tried to use as explained in other issues
MapValue.InitialCameraUpdate = CameraUpdateFactory.NewPosition(new Position(SearchInputValue.Place.Latitude, SearchInputValue.Place.Longitude));
It works well but I would like to show the map with a radius.
How can I set the zoom ratio to radius or to make working MoveToRegion?
Thanks,