Hi,
I have created dynamic InformationLayer to display the user control. But I'm facing margin issue. Please check the screenshot with and without margin.
private Telerik.Windows.Controls.Map.InformationLayer calloutLayer;
public ReeferMapControl()
{
this.Language = XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name);
calloutLayer = new Telerik.Windows.Controls.Map.InformationLayer();
this.RfrMap.Items.Add(calloutLayer);
}
void ViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
BalloonCalloutUserControl callout = null;
currentLocation = new Telerik.Windows.Controls.Map.Location(CurrentLocation.GPSLatitude.Value, CurrentLocation.GPSLongitude.Value);
callout = new BalloonCalloutUserControl(CurrentLocation);
calloutLayer.Margin = new Thickness(-36, 0, 0, 0); //Images related to margin
Telerik.Windows.Controls.Map.MapLayer.SetLocation(callout, currentLocation);
this.calloutLayer.Items.Add(callout);
this.RfrMap.Center = currentLocation;
this.RfrMap.ZoomLevel = vm.ZoomLevel;
}
Thanks,
Sunil Kumar.