0
Answer

MapControl DevExpress

Haziq Amjad

Haziq Amjad

6y
1.7k
1
Hi 
i am using the following code to get custom image on my offline map layer
 
DrawonMap(latitude,longitude); 
 
public void DrawonMap(double localLat, double localLon)
{
try
{
mapItemStorage1.Items.RemoveAt(0);
}
catch
{
}
#region #MapCustomElementExample
var customElement = new MapCustomElement()
{
Location = new GeoPoint(localLat,localLon)
};
var image = new Bitmap(imageFilePath);
customElement.Image = new Bitmap(image, new Size(40, 40));
mapItemStorage1.Items.Add(customElement);
#endregion #MapCustomElementExample
}
 
 whereas variable latitude and longitude are used to store data from my GPS. But on the map layer, i there s no image displayed.
 
i would appreciate if anybody could help