We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to only display one country


I want to know how to only display one country ? Like China or USA and so on. I just want to mark the location on the map with the data .So I don't need simulation map. Just the single color is OK. And If I click one province  can change the map only display the province.  Can you provide a demo? Thanks

1 Reply

MV Mohana V Syncfusion Team December 19, 2016 09:05 AM UTC

Hi Blue,

Thanks for using syncfusion products.

We have validated your query "How to only display one country" and we can achieve your requirement by giving desired shapefile to the Uri property of Maps ShapeFileLayer.

Please find the list of json file for each states and countries from the below link,


Since the given files are in json format, you can convert desired json file to shapefile by using the below link,


We have prepared simple map sample to display "China" country alone and please find it from the below link,


Please get back us if you need any further assistance.

Mohana V 

Live Chat Icon For mobile
Up arrow icon