def generate_xmap(x_len, y_len, all_cids, all_xcoords, all_ycoords):
 img_height = (x_len * 80)
 img_width = (y_len * 80)
 xmap = []
 for (cid, x, y) in zip(all_cids, all_xcoords, all_ycoords):
  xmap.append((AREA_SRC % (x, (img_height - y), cid, cid)))
 return (xmap, img_height, img_width)

def generate_xmap ( x_len , y_len , all_cids , all_xcoords , all_ycoords ) : img_height = ( x_len * 80 ) img_width = ( y_len * 80 ) xmap = [ ] for ( cid , x , y ) in zip ( all_cids , all_xcoords , all_ycoords ) : xmap . append ( ( AREA_SRC % ( x , ( img_height - y ) , cid , cid ) ) ) return ( xmap , img_height , img_width )
generates the html interactive image map .