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.

MapPointTemplate doesnt have a datacontext

Thread ID:

Created:

Updated:

Platform:

Replies:

132378 Aug 29,2017 09:26 AM Sep 1,2017 06:44 AM UWP 1
loading
Tags: SfMaps
Vasiliy Lukin
Asked On August 29, 2017 09:26 AM

Hi,
I have a shapefile of points representing settlements. And now I want to render corresponding MapPoint (size and color) depending on population and some financial data.
But it seems like MapPoint data template doesn't have any datacontext. It is actually ModelView that binded to my page root grid. Any suggestions?

 <syncfusion:ShapeFileLayer.SubShapeFileLayers>
                             <syncfusion:SubShapeFileLayer x:Name="sublayer22"  ShapeIDPath="OSM_ID" ShapeIDTableField="OSM_ID"  ItemsSource="{Binding SettlementFinancialDataList}" LayoutType="Tile" EnableSelection="True" Uri="Shapes.settlements.shp">
<syncfusion:SubShapeFileLayer.MapPointTemplate>
                                    <DataTemplate>                                      
                                        <!--<Ellipse Height="15" Width="15" Margin="-10,-10,0,0" Stroke="White" Fill="#8AC63C"/>-->
                                        <Ellipse Height="{Binding OSM_ID, Converter=...}"  Width="{Binding OSM_ID, Converter=...}" Margin="-10,-10,0,0" Stroke="White" Fill="{Binding OSM_ID, Converter=...}"/>
                                    </DataTemplate>
                                </syncfusion:SubShapeFileLayer.MapPointTemplate>
</syncfusion:SubShapeFileLayer>



Ashwin Kumaravel [Syncfusion]
Replied On September 1, 2017 06:44 AM

Hi Vasiliy,

Sorry for the delay,

We have validated your query “MapPointTemplate doesnt have a datacontext” and in our current implementation of Map control we do not have support to set data context for MapPointTemplate.We have logged feature request for the same and it will be available in Volume 3 sp2 release which is expected to be released at the end of September.

Regards,
Ashwin


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.

;