Custom EA loading into map feature#286
Conversation
|
General remarks:
UX:
UI:
CODE:
|
|
Renaming EA to GC: customEA -> customGC Checked if sliderGCs only add at GridNode T0 Refresh legend after adding customGC Scale polygon based on installed capacity + make square polygon Updated subtitles between sliders and buttons Removed b_removeAllCustomEAs Separate overlapping code into smaller functions Removed 'f_deselectPreviousSelect' at the end of 'f_removeCustomEA' Adjusted comments Using existing sliderGC owner
No longer gridbatteries assigned to every GridNode -> now only top node Grid battery slider now really only affects GridBattery at T0 Default values aangepast
Cleaned up f_ClickOnMap and put it into seperate functions. Implemented custom drawing of polygons for solarfarms Removed GIS size scaling for all energy assets Added collection to temporary save coordinates -> removed lat/lon arguments Created polygon shape help functions
Added functions to change text + appearance of the title text boxes of ehub Fixed bugs of appearance of forcedClickScreen of filter function and ehub configurator
Created helper function f_adjustTextToFitRectangle to fit and Y-center the ShapeText within a ShapeRectangle. -> Group MUST ALWAYS first be set invisible so changes are applied -> empty AnyLogic cache -> otherwise text is visually misplaced when using setY or setX, while this is not true in reality. Transformed customGC booleans into single boolean + using OL_EnergyAssetType to differentiate
Custom GC removal fix Consistency updates List of Pair coordinates converted to List of Points Assigned p_annotation
+ adjusted max range for sliders + default capacities
Updated UX since settings are now pages of tabElectricity, depending if the custom GC is selected or not
Possibility for user to load solarfarms, windfarms, and grid batteries with adaptable settings into the model.
Phase 1 of the pull-request:
Afterwards, phase 2 with focus on appearance of UI
Merge with zero_engine pull request: Zenmo/zero_engine#287