Problems with SubShapeFileLayer in SfMaps

Hi,

I have a few questions about SfMaps.

I added rivers sublayer to my main map layer and got two problems with it:

1 Sublayer blocks interaction with main layer, i.e. selection, popup.

2 SfMaps draws rivers with artefacts treating some parts like a bounded shapes. In QGIS there is no bounded shapes in my ESRI shapefile.

Question about RangeColorMapping:

3 How can I reproduce color value that was generated by RangeColorMapping?

I tried to interpolate color like (FromColor* (1 - val) + ToColor * val) but it gives slightly different result.


Test project is in attached file.


Thanks,

Vasiliy


Attachment: WpfSfMaps_49ae0c60.zip

1 Reply

SG Sri Gayathri Gopalakrishnan Syncfusion Team December 26, 2017 12:22 PM UTC

Hi Vasiliy,

Thanks for using Syncfusion Products,

Query1: Sublayer blocks interaction with main layer

We have analyzed your query, as per our current implementation, interaction(Selection) will be working for Sublayer. Based on your query, IsHitTestVisible can be set to false for Sublayer so that underlying layer can be accessed.

Code Snippet: 
  
subLayer.IsHitTestVisible = false;


Query2: SfMaps draws rivers with artefacts treating some parts like bounded shapes.

We were unaware of your scenario. We suspect that some parts of the shapes are filled with Grey Color. Since it is a closed path, background color gets filled. Please set the shapefill to transparent in ShapeSettings to hide the fill color in sublayer.

Code Snippet: 
 
ShapeSetting settings = new ShapeSetting()
{
ShapeFill = Brushes.Transparent,
ShapeStroke = (SolidColorBrush)new BrushConverter().ConvertFromString("Blue"),
ShapeStrokeThickness = 0.5
};
 
  
Screenshot: 
   
Query3: How can I reproduce color value that was generated by RangeColorMapping?

We can fill the shapes based on range value(From and To Property) in RangeColorMapping. In this, we can give any color(own color logic) to fill the shapes.

Since we are not aware of the exact scenario issue reproduced, we would like to know the following details to provide the solution as soon as possible,

-Modify the existing sample to replicate your scenario with screen shot.
-Provide your sample with replication procedure

Regards,
Sri Gayathri. G 


Loader.
Up arrow icon