def display_waypoints(wploader, map):
 mission_list = wploader.view_list()
 polygons = wploader.polygon_list()
 map.add_object(mp_slipmap.SlipClearLayer('Mission'))
 for i in range(len(polygons)):
  p = polygons[i]
  if (len(p) > 1):
   map.add_object(mp_slipmap.SlipPolygon(('mission %u' % i), p, layer='Mission', linewidth=2, colour=(255, 255, 255)))
  labeled_wps = {}
  for i in range(len(mission_list)):
   next_list = mission_list[i]
   for j in range(len(next_list)):
    if (next_list[j] not in labeled_wps):
     map.add_object(mp_slipmap.SlipLabel(('miss_cmd %u/%u' % (i, j)), polygons[i][j], str(next_list[j]), 'Mission', colour=(0, 255, 255)))
     labeled_wps[next_list[j]] = (i, j)

def display_waypoints ( wploader , map ) : mission_list = wploader . view_list ( ) polygons = wploader . polygon_list ( ) map . add_object ( mp_slipmap . SlipClearLayer ( 'Mission' ) ) for i in range ( len ( polygons ) ) : p = polygons [ i ] if ( len ( p ) > 1 ) : map . add_object ( mp_slipmap . SlipPolygon ( ( 'mission %u' % i ) , p , layer = 'Mission' , linewidth = 2 , colour = ( 255 , 255 , 255 ) ) ) labeled_wps = { } for i in range ( len ( mission_list ) ) : next_list = mission_list [ i ] for j in range ( len ( next_list ) ) : if ( next_list [ j ] not in labeled_wps ) : map . add_object ( mp_slipmap . SlipLabel ( ( 'miss_cmd %u/%u' % ( i , j ) ) , polygons [ i ] [ j ] , str ( next_list [ j ] ) , 'Mission' , colour = ( 0 , 255 , 255 ) ) ) labeled_wps [ next_list [ j ] ] = ( i , j )
display the waypoints .