Map not getting displayed

Hey! I tried the code to display world map but it is not getting displayed. Kindly help me in displaying it.

Attaching the dart file associated with it.

Attachment: country_chart_4e705d61.zip

3 Replies 1 reply marked as answer

LR Lakshmi Radha Krishnan Syncfusion Team July 20, 2020 07:22 AM UTC

Hi Pruthvik,

 

Greetings from Syncfusion.

 

We checked your code and the map is rendering as expected. We suspect that you may have missed to add the .json file to the assets folder or you may have missed to add the .json file reference to the pubspec.yaml file. Could you please check these cases? 

 

world_map.json: https://www.syncfusion.com/downloads/support/forum/156198/ze/world_map-1570081224.zip  

Reference link: https://help.syncfusion.com/flutter/maps/getting-started#add-a-geojson-file

 
If you still face any problem, feel free to contact us and we would be happy to help you further.

 

Regards,

Lakshmi R.


Marked as answer

PR Pruthvik July 20, 2020 08:27 AM UTC

Thankk you so much for helping out. I didn't add the assests file in pubspec.yaml. Thank you for helping me figure this out.


LR Lakshmi Radha Krishnan Syncfusion Team July 21, 2020 06:16 AM UTC

Hi Pruthvik,

 

Thanks for the update. We are glad to know that the given solution works. Please let us know if you need any further assistance.

 

Regards,

Lakshmi R.

 


Loader.
Up arrow icon