sidebar-menu.component // #projectionSelectionTemplate for export protocol format
and allow to show/edit the values as number or text representation in corresponding format.
I added format selection to coordinates.component behind the small symbol at right.
This my be difficult to click on touchscreen, so perhaps it have to be moved to somewhere else / increase in size / other option to open.
I don't know how/where this setting should be persisted in your concept so I leave an TODO for that.
In edit-coordinates.component the values can now be entered as numbers or formatted strings.
Also the json is pretty printed for display (but can be changed with prettyf or course).
The new GPS°'" format have an slightly problem if used in edit-coordinates.component as if the json conversion have to escape the ".
But on parsing the values back for save, it's allowed to remove the " symbol on the coordinates completely, for simplify it an bit.
are never used, I adjusted them anyway.
Also the "selectedProjectionIndex" have not any effect, as it cannot be set/changed and is not used by coordinates.component
I suggest to delete this functions and the selectedProjectionIndex if not planed to be used again.
PS: is there an option to do the DeepSource checks locally? "yarn lint" have not shown any issues.
This pull request contains a redesign of the projection / coordinate format systems with added functions. It fixes https://github.com/zskarte/zskarte-client/issues/57
It adds a Coord format selection to:
and allow to show/edit the values as number or text representation in corresponding format.
I added format selection to coordinates.component behind the small symbol at right.
This my be difficult to click on touchscreen, so perhaps it have to be moved to somewhere else / increase in size / other option to open. I don't know how/where this setting should be persisted in your concept so I leave an TODO for that.
In edit-coordinates.component the values can now be entered as numbers or formatted strings. Also the json is pretty printed for display (but can be changed with prettyf or course).
The new GPS°'" format have an slightly problem if used in edit-coordinates.component as if the json conversion have to escape the ".
But on parsing the values back for save, it's allowed to remove the " symbol on the coordinates completely, for simplify it an bit.
In map-renderer.component.ts the functions
are never used, I adjusted them anyway. Also the "selectedProjectionIndex" have not any effect, as it cannot be set/changed and is not used by coordinates.component I suggest to delete this functions and the selectedProjectionIndex if not planed to be used again.
PS: is there an option to do the DeepSource checks locally? "yarn lint" have not shown any issues.