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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to only display one country

Thread ID:





127895 Dec 16,2016 07:23 AM UTC Dec 19,2016 09:05 AM UTC WPF 1
Tags: SfMaps
Asked On December 16, 2016 07:23 AM UTC


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

Mohana V [Syncfusion]
Replied On 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 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon