src/Map.cpp
void Aircraft::MapDrawLabel (XPLMMapLayerID inLayer, float yOfs)
{
    // draw only if said to be visible on this map
    if (!std::isnan(mapX) && !std::isnan(mapY)) {
        XPLMDrawMapLabel(inLayer,
                         mapLabel.c_str(),
                         mapX, mapY + yOfs,
                         xplm_MapOrientation_UI,
                         0.0f);
    }
}
// Actually draw the map icon's label
Actually draw the map icon's label
Actually draw the map icon ' s label
void Aircraft::MapDrawLabel (XPLMMapLayerID inLayer, float yOfs)
{
    if (!std::isnan(mapX) && !std::isnan(mapY)) {
        XPLMDrawMapLabel(inLayer,
                         mapLabel.c_str(),
                         mapX, mapY + yOfs,
                         xplm_MapOrientation_UI,
                         0.0f);
    }
}
void Aircraft :: MapDrawLabel ( XPLMMapLayerID inLayer , float yOfs ) { if ( ! std :: isnan ( mapX ) && ! std :: isnan ( mapY ) ) { XPLMDrawMapLabel ( inLayer , mapLabel . c_str ( ) , mapX , mapY + yOfs , xplm_MapOrientation_UI , 0.0f ) ; } }
Actually draw the map icon's label
Actually draw the map icon ' s label
// draw only if said to be visible on this map