Hi,
I need to read Shapefiles manually to be able to remove some polygons. (Can't use MapShapeReader, right?)
MainPage.xaml:
MapViewModel.cs:
How can I set ToolTips to each polygon (State: StateName) from the ViewModel to the InformationLayer ?
Since I can't use MapShapeReader in this scenario I can't use ToolTipFormat="STATE_NAME"
Thank you,
Nuno
I need to read Shapefiles manually to be able to remove some polygons. (Can't use MapShapeReader, right?)
MainPage.xaml:
<
telerik:InformationLayer
x:Name
=
"StateLayer"
ItemsSource
=
"{Binding Source={StaticResource DataContext}, Path=States, Mode=TwoWay}"
>
MapViewModel.cs:
public
List<FrameworkElement> States
{
get
{
return
_states; }
set
{
if
(
this
._states == value)
return
;
_states = value;
OnPropertyChanged(
"States"
);
}
}
...
this
.States = _allShapesToLoad;
// I'm using MVVM to bind this.States to the InformationLayer ItemsSource
How can I set ToolTips to each polygon (State: StateName) from the ViewModel to the InformationLayer ?
Since I can't use MapShapeReader in this scenario I can't use ToolTipFormat="STATE_NAME"
Thank you,
Nuno