- Home
- Forum
- Xamarin.Forms
- SfMaps not rendering in Xamarin.Forms NavigationPage
SfMaps not rendering in Xamarin.Forms NavigationPage
I was having issues implementing SfMaps into our application when I stumbled on this forum post containing a sample implementation:https://www.syncfusion.com/forums/132071/xamarin-app-crashes-when-sfmap-is-loading
Even with the sample, I was not able to get the map to render in my application.
Even with the sample, I was not able to get the map to render in my application.
Turns out it's because my page is wrapped in a NavigationPage. In fact, most Xamarin.Forms applications will be using NavigationPages.
Is this expected behaviour? SfMaps is not very useful in Xamarin.Forms if it cannot be implemented in NavigationPages.
Is this expected behaviour? SfMaps is not very useful in Xamarin.Forms if it cannot be implemented in NavigationPages.
Thanks in advance
SIGN IN To post a reply.
3 Replies
SG
Sri Gayathri Gopalakrishnan
Syncfusion Team
November 15, 2017 04:49 PM UTC
Hi Geoffrey,
Thanks for using Syncfusion Products,
Query: SfMaps not rendering in Xamarin.Forms NavigationPage
We have analyzed your query and based on that we have prepared simple sample. Added Maps in Navigation Page. Please download the sample from the link.
We have used 15.3.0.33 version for Syncfusion.Xamarin.SfMaps
http://www.syncfusion.com/downloads/support/directtrac/general/ze/NavigationMaps-231333762
Since we are not aware of the exact scenario issue reproduced ,we would like to know the following details,to provide you the solution sooner
-Modify the attached sample to replicate the issue
-Provide your sample along with replication procedure
Please get back to us if you have concern,
Regards,
Sri Gayathri.G
Thanks for using Syncfusion Products,
Query: SfMaps not rendering in Xamarin.Forms NavigationPage
We have analyzed your query and based on that we have prepared simple sample. Added Maps in Navigation Page. Please download the sample from the link.
We have used 15.3.0.33 version for Syncfusion.Xamarin.SfMaps
http://www.syncfusion.com/downloads/support/directtrac/general/ze/NavigationMaps-231333762
Since we are not aware of the exact scenario issue reproduced ,we would like to know the following details,to provide you the solution sooner
-Modify the attached sample to replicate the issue
-Provide your sample along with replication procedure
Please get back to us if you have concern,
Regards,
Sri Gayathri.G
GC
Geoffrey Chen
November 15, 2017 08:35 PM UTC
Here's a simplified example of broken rendering because of NavigationPage: https://drive.google.com/open?id=18xJR7zBNMlOWgggHAS4kzo5Vy1ceRE9K
I also am having difficulties figuring out what is required for a shape file to work with SfMaps, as I have downloaded some that will crash the app, and modified functioning shape files (ie. through QGIS) only to have it not work with SfMaps. Alternatively, I have tried GeoJSON files downloaded from: http://www.syncfusion.com/uploads/user/uploads/Maps_GeoJSON.zip, which are not recognized by SfMaps.
And a more realistic implementation of why a SfMaps page would be wrapped in NavigationPage (to implement in MasterDetail menu): https://drive.google.com/open?id=1-mw7qGWFP5VDV5rAZZiRkVXJwLuXuf2K
It does seem that the shape files used are a part of the issue though, as world1.shp seems to render fine, but usa_state.shp (taken from an older Syncfusion sample) will break.
It does seem that the shape files used are a part of the issue though, as world1.shp seems to render fine, but usa_state.shp (taken from an older Syncfusion sample) will break.
I also am having difficulties figuring out what is required for a shape file to work with SfMaps, as I have downloaded some that will crash the app, and modified functioning shape files (ie. through QGIS) only to have it not work with SfMaps. Alternatively, I have tried GeoJSON files downloaded from: http://www.syncfusion.com/uploads/user/uploads/Maps_GeoJSON.zip, which are not recognized by SfMaps.
AK
Ashwin Kumaravel
Syncfusion Team
November 16, 2017 03:02 PM UTC
Hi Geoffrey,
Thanks for contacting Syncfusion Support.
We were able to reproduce the reported issue “Maps USA shape file is not rendering in Navigation page in Forms Android” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.
Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/
Regards,
Ashwin
Thanks for contacting Syncfusion Support.
We were able to reproduce the reported issue “Maps USA shape file is not rendering in Navigation page in Forms Android” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.
Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/
Regards,
Ashwin
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
GC Geoffrey Chen
- Nov 14, 2017 05:02 PM UTC
- Nov 16, 2017 03:02 PM UTC