Hi ,
I m really struggling with this problem, actually i retrieve the values from the database, but i want to show the pinpoint on the map based on the given latitude,longitude. i m using Dynamic layer so i don't know how to bind the latitude,longitude,and style( in this style i write the style of the pinpoint shape).
E.g:-
ControlTemplate objtemp = new ControlTemplate();
ContentControl Gpsvalue = new ContentControl();
string styleName = DefaultStyle;
try
{
Gpsvalue.Style = this.radMap1.Resources[styleName] as Style;
}
catch (Exception exception)
{
Gpsvalue.Style = this.radMap1.Resources["GreenStyle"] as Style;
}
// here i bind the location property
Gpsvalue.SetValue(MapLayer.LocationProperty, new Location(Convert.ToDouble(-29.8570032), Convert.ToDouble(31.0247936)));
but still i did't get solution, i think i need to do one more step, but i don't know, now i really want to know how to integrate the GPsValue to the given layer.
please tell me as soon as possible.
THanks
I m really struggling with this problem, actually i retrieve the values from the database, but i want to show the pinpoint on the map based on the given latitude,longitude. i m using Dynamic layer so i don't know how to bind the latitude,longitude,and style( in this style i write the style of the pinpoint shape).
E.g:-
ControlTemplate objtemp = new ControlTemplate();
ContentControl Gpsvalue = new ContentControl();
string styleName = DefaultStyle;
try
{
Gpsvalue.Style = this.radMap1.Resources[styleName] as Style;
}
catch (Exception exception)
{
Gpsvalue.Style = this.radMap1.Resources["GreenStyle"] as Style;
}
// here i bind the location property
Gpsvalue.SetValue(MapLayer.LocationProperty, new Location(Convert.ToDouble(-29.8570032), Convert.ToDouble(31.0247936)));
but still i did't get solution, i think i need to do one more step, but i don't know, now i really want to know how to integrate the GPsValue to the given layer.
please tell me as soon as possible.
THanks