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

Removing Shapes from Map

Thread ID:





110849 Aug 27,2013 09:14 PM UTC Sep 3,2013 09:10 AM UTC WinRT 3
Tags: SfMaps
Ian Brbbington
Asked On August 27, 2013 09:14 PM UTC


I am employing the Map control in a project but would like to know if it is possible to remove components of the map or prevent them from displaying. Specifically, I would like to remove the vector associated with the Antarctic from the world.shp file shipped with the sample.

I have looked around online but not managed to find a pre-made map available with this change nor tools that would allow me to make the change myself (I have installed Quantum GIS but am at a loss as to where to start).

Any help or pointers provided would be much appreciated.

Joy Oyiess Rex  K [Syncfusion]
Replied On August 28, 2013 10:30 AM UTC

Hi Ian,


Thank you for your interest in Syncfusion products,


We have analysed your query, based on the implementation of SfMaps there is no support provided for edit the ShapeFile, but we can achieve your requirement by removing the specific Shape from the ShapeFile in the Map Loaded event, by specifying a value for it.


We have created a simple sample for the same, please find the sample in the attachment.


In the below attached sample, we have a Heat map which represents "World - Population".  In the ItemsSource of Map, we have specifically set the Population for "Antarctica"   as 15.(In our case Antarctica need to be removed )


After the Map loaded, we have to get the VisibleShapes from the ShapeFile and then we can remove the Shape which have the shapeValue as 15.


Similarly we need to remove the respective MapItems from the ShapeFile(If necessary).


Please let us know, if you need any further assistance.



Joy Oyiess Rex K


Ian Bebbington
Replied On September 2, 2013 08:28 PM UTC

Thanks for your reply Joy. I'm sure I'll use your approach at some point but in the mean time I managed to work out how to remove shapes using Quantum GIS.

Thank again.

Joy Oyiess Rex  K [Syncfusion]
Replied On September 3, 2013 09:10 AM UTC

Hi Ian,


Thanks for your update,


Please let us know, if you need any further assistance.



Joy Oyiess Rex K


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