This code works well in android but in WP the geometry are displayed off target (as shown in the snapshot attached..May I know what’s wrong? or Can you produce a sample code to achieve this?
Note the geometry is of the form: "MULTIPOLYGON (((153.524037 -28.498472, 153.523862 -28.498368,…".
And by the way, why is the map a white area on certain zoom level? See another file attached.
Yes, it is. Thanks. Now the issue is when I move along and want to show marker on every Location Change I get an ArgumentOutOfRange exception as shown in the attached snapshot.
Background:
I have created a Map View XF renderer which listens for GPS location change and repeatedly calls the following function:
Note that the same function runs well in Android Renderer (And when used in WP native Page;.i.e. without renderer). Does calling the above function repeatedly cause the exception to raise in WP? Can you reproduce the issue by implementing a XF MapView Renderer which does the same thing?
I guess there isn’t any problem with the code shown here, but I was wondering if you can give the data of currentLocation to us, then we can do a test to see what the exception it is, then we can dig into it as well, if a demo should be appreciated.
currentLocation data is X=153.5281, Y=-28.5046. I have prepared a sample solution to reproduce the problem. Plz find attached. App navigates to this fixed position. And as you click on Navigate button 2 or 3 times, you can see the exception which raises after calling navigateToCurrentPosition(..).
Btw, we are also developing the Xamarin.Forms now, it should be available soon, if you are interested in it, please contact support@thinkgeo.com, maybe they can ask development team for a version.
I tried the sample project with new dll’s in ap.thinkgeo.com:5001/fbsharing/DSvbfeLr (Managed Assemblies\Client). But I am still getting the same error.Click on Map a few times and you should see the error. Good that you started working on XF. Will be waiting for any update.
ArgumentOutOfRangeException occurs on WinPhone while calling map.moveTo(point); Same ArgumentOutOfRangeException occurs on android while calling map.CenterAt(point)
Here is the attached sample we used for test, which is created based your attached, as your demo was unable to be complied. Could you please have a try with the version dll package I pasted? All works fine on our end.
BTW.the Xamarin Forms edition has been completed by the development team. If you would like to get a version, please contact support@thinkgeo.com.
Xamarin Forms Edition has synchronized the ZoomTo and CenterAt methods. The MoveTo method is not existing in our other products, so I didn’t add it. I hope current APIs are enough for your most cases. Please try the latest preview version we will send you later today and Feel free to let me know if you have more queries.
Also, we can’t use XF edition for production until it is released for all platforms; i.e. android, iOS and WinPhone. Happy to see its WP version is also released.
Are you using the version "8.0.294.0" which can be downloaded at ap.thinkgeo.com:5001/fbsharing/A07zyrZE ? Here is a video what we use this version with the sample I provided, you see everything works fine. Would you please do a double-check or create a video for us to show the problem you are having?
Didn’t error description hint you about the possible root cause? I’m not sure how I can help you reproduce the error. What about having a team viewer/skype session to show you raising the error on my machine? Not sure it is related with my dev env. But the client has also complained of app crashing due to (most probably) the same reason.