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.
Unfortunately, activation email could not send to your email. Please try again.

How to only display one country

Thread ID:

Created:

Updated:

Platform:

Replies:

127895 Dec 16,2016 02:23 AM Dec 19,2016 04:05 AM WPF 1
loading
Tags: SfMaps
blue
Asked On December 16, 2016 02:23 AM

Hi 

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 04:05 AM

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,

http://www.syncfusion.com/downloads/support/directtrac/general/ze/Maps_GeoJSON514517143

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

http://mapshaper.org/ 

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

http://www.syncfusion.com/downloads/support/directtrac/general/ze/WpfApplication1-855265656

Please get back us if you need any further assistance.

Regards,
Mohana V 


CONFIRMATION

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.

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.

;