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

MapPointTemplate doesnt have a datacontext

Thread ID:





132378 Aug 29,2017 01:26 PM UTC Sep 1,2017 10:44 AM UTC UWP 1
Tags: SfMaps
Vasiliy Lukin
Asked On August 29, 2017 01:26 PM UTC

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:SubShapeFileLayer x:Name="sublayer22"  ShapeIDPath="OSM_ID" ShapeIDTableField="OSM_ID"  ItemsSource="{Binding SettlementFinancialDataList}" LayoutType="Tile" EnableSelection="True" Uri="Shapes.settlements.shp">
                                        <!--<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=...}"/>

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

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.



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

This page will automatically be redirected to the 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