I have a resource file with map markers such as the following:
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?