Haziq Amjad

Haziq Amjad

  • NA
  • 5
  • 1.6k

MapControl DevExpress

Jul 12 2018 6:08 AM
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