@@ -397,3 +397,43 @@ def keys(self):
397397 ["param_help" ],
398398 ],
399399}
400+
401+
402+ # =========================================================================
403+ # Map viewer control definitions (shared across backends)
404+ # =========================================================================
405+
406+ # Available colormaps for map layers
407+ MAP_COLORMAPS = [
408+ "viridis" , "terrain" , "gray" , "plasma" , "inferno" , "magma" ,
409+ "cividis" , "coolwarm" , "RdBu" , "Blues" , "Greens" , "ocean" ,
410+ ]
411+
412+ # -- Navigation / action controls --
413+ MAP_NAV_SPECS : List [ControlSpecType ] = [
414+ ButtonSpec ("btn_zoom_fit" , "Fit All" , tooltip = "Zoom to fit all layers" , width = "70px" ),
415+ ButtonSpec ("btn_zoom_track" , "Fit Track" , tooltip = "Zoom to fit tracks" , width = "70px" ),
416+ ButtonSpec ("btn_zoom_wci" , "Go to WCI" , tooltip = "Pan to current WCI position" , width = "80px" ),
417+ ButtonSpec ("btn_refresh_tracks" , "Refresh" , tooltip = "Refresh tracks from connected viewers" , width = "70px" ),
418+ CheckboxSpec ("auto_update" , "Auto-update map" , value = True ),
419+ CheckboxSpec ("auto_center_wci" , "Follow WCI position" , value = False ),
420+ ]
421+
422+ # -- Misc / hover --
423+ MAP_MISC_SPECS : List [ControlSpecType ] = [
424+ LabelSpec ("lbl_coords" , "Lat: --, Lon: --" , width = "300px" ),
425+ ]
426+
427+ # -- Colorbar controls --
428+ MAP_COLORBAR_SPECS : List [ControlSpecType ] = [
429+ DropdownSpec ("colorbar_layer" , "Colorbar:" ,
430+ options = [("None" , None )], value = None , width = "200px" ),
431+ ]
432+
433+ # Map tab layout for Qt dock-based viewer
434+ MAP_TAB_LAYOUT : Dict [str , List [List [str ]]] = {
435+ "Navigation" : [
436+ ["btn_zoom_fit" , "btn_zoom_track" , "btn_zoom_wci" , "btn_refresh_tracks" ],
437+ ["auto_update" , "auto_center_wci" ],
438+ ],
439+ }
0 commit comments