NAXAM / mapbox-xamarin-forms

Mapbox on Xamarin.Forms
Apache License 2.0
73 stars 41 forks source link

Map Bounds Are Not Properly Set To Query Map Features #98

Open saadsaifse opened 4 years ago

saadsaifse commented 4 years ago

Hi, in the code here the screen coordinates are not set to the correct coordinates for android. Should be set to mpbounds.NorthWest for tl and mpbounds.SouthEast for br

Right now, this function does not return any features

var tl = map.Projection.ToScreenLocation(mpbounds.NorthEast);
var br = map.Projection.ToScreenLocation(mpbounds.NorthEast);
var region = tl.ToRectF(br);
saadsaifse commented 4 years ago

Created a pull request already to fix this #99