0

I have a resource file with map markers such as the following:
enter image description here

Now in my renderer, I would like to grab a given marker by its name in order to render it on the map. (not working) Example:

foreach (PointTypes.PointType type in pointTypes)
{
    string pointTypeName = type.GetName();
    // how to do the following?
    Bitmap selectedIcon = Resources.Map_Marker.GetItemByName("Marker_"+pointTypeName)
    // Render the obtained Marker on the map
}

What would be the apropriate way?

julian bechtold
  • 1,875
  • 2
  • 19
  • 49

0 Answers0