Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
ae3e723
fix webgl behavior, add average fct for calcRatio
a3rtgm-ds May 24, 2023
0712c65
fix merge conflicts
a3rtgm-ds Jun 5, 2023
d0adedb
minor fixes
a3rtgm-ds Jun 7, 2023
1fc0a90
updated manual links
JohnnaFly Aug 29, 2023
c9940ef
update man. flächen manual
JohnnaFly Aug 29, 2023
422a95b
update manuals komplett
JohnnaFly Aug 29, 2023
312c466
change location manual
JohnnaFly Aug 29, 2023
2cc94b9
Update 001manual_introduction.md
JohnnaFly Aug 30, 2023
bd00bdc
final version MANUAL august
JohnnaFly Aug 31, 2023
4f89d6e
Update 001manual_introduction.md
JohnnaFly Aug 31, 2023
4d3ca1c
unit test is done
bertramhillmann Sep 5, 2023
fb8c851
refactor - cosi exportPDF, rm component, WIP
a3rtgm-ds Sep 5, 2023
1ce41df
refactor - move addChapter
a3rtgm-ds Sep 5, 2023
d99d044
Merge branch 'dev' of bitbucket.org:geowerkstatt-hamburg/addons into dev
a3rtgm-ds Sep 5, 2023
4246450
update korrektur PD
JohnnaFly Sep 5, 2023
62f6451
nachtrag
JohnnaFly Sep 5, 2023
2b29471
minor bug fixes sm
bertramhillmann Sep 6, 2023
292f72d
VPI-109 update tab visitor types to show n/a for months with no data …
zehbeck Sep 14, 2023
f68ae4a
rechtschreibung manuals
mabafaba Sep 15, 2023
88f1313
korrekturen peter gabi
mabafaba Sep 15, 2023
4b92bcc
finalfinalfinal
JohnnaFly Sep 15, 2023
ea9b463
Merge branch 'dev' of https://github.com/citysciencelab/cosi into dev
JohnnaFly Sep 15, 2023
55f3fe1
new manuals auswahlm reportt
mabafaba Sep 15, 2023
c135801
copy manuals from gh dev branch
mabafaba Sep 15, 2023
bc8ec7d
manual zusammenfuehrung
mabafaba Sep 15, 2023
049647c
manual zusammenfuehrung
mabafaba Sep 15, 2023
2fdf846
headline breaks and updated sh file
mabafaba Sep 15, 2023
bebb3b0
inhalt links update
mabafaba Sep 15, 2023
3fe98fc
inhalt links update
mabafaba Sep 15, 2023
8bbfda4
fix links in inhaltsverzeichnis
mabafaba Sep 15, 2023
6222720
fix links in inhaltsverzeichnis
mabafaba Sep 15, 2023
802e1c1
introduction bitbucket style header links
mabafaba Sep 15, 2023
adb983f
minor link fix
mabafaba Sep 15, 2023
628b9d8
Merge branch 'dev' into COSI-manual_update_bitbucketlinks
mabafaba Sep 15, 2023
75e4e7a
VPI wo ticket fix agegroup tab was not updated on location change and…
zehbeck Sep 18, 2023
dcfacd0
VPI-update-store-structure-for-dwelltime-data
zehbeck Sep 18, 2023
8e5226a
added utils/test
bertramhillmann Sep 18, 2023
f105f5e
typo
bertramhillmann Sep 18, 2023
c007b17
VPI-110 update compare tabs by adding line charts, hints and change t…
zehbeck Sep 18, 2023
15e229c
Issue:1071 services with different ports but same hostname will be ha…
Sep 21, 2023
08badd5
VPI-110 update compare tabs to allow for comparison of hourly data of…
zehbeck Sep 21, 2023
dcfa223
VPI update initial year for tab visitor types
zehbeck Sep 22, 2023
f8acf3d
VPI fix chart change bug in activities tab
zehbeck Sep 22, 2023
96b3d99
Bugfix: polygon style editting for webgl layer works
feng-lgv Sep 24, 2023
43b83e2
Merge branch 'dev' into Issue1071_vcOblique_services_with_different_p…
Sep 25, 2023
36db979
G31DEV1-1724-Fix Incorrect values are displayed in the mietenspiegel …
sebadu Sep 22, 2023
2eb8140
G31DEV1-1743-Fix PDF is not created if configured attributes are miss…
sebadu Sep 27, 2023
01b3b48
VPI update small details on several tabs
zehbeck Sep 28, 2023
66f274c
VPI update contents of info tab
zehbeck Sep 29, 2023
4a5e433
2.38.0
RederCh Oct 4, 2023
a73e6d4
Merge branch 'dev' of bitbucket.org:geowerkstatt-hamburg/addons into dev
a3rtgm-ds Oct 4, 2023
01d6120
Merge pull request #1 from comapsproject/COSI-1555-unit-test-for-sele…
a3rtgm-ds Oct 4, 2023
41fbea7
Merge branch 'dev' of github.com:comapsproject/comaps into dev
a3rtgm-ds Oct 5, 2023
f3c1c9a
fix - filterPolygon for accessibilityAnalysis, TODO: unittests
a3rtgm-ds Oct 10, 2023
ba781dc
VPI-67 update contents of info tab
zehbeck Oct 11, 2023
cc435dd
fixed test with watch
InkaDudek Oct 12, 2023
8aedea6
linter
InkaDudek Oct 12, 2023
cb23fd0
skipped tests
InkaDudek Oct 12, 2023
e2df076
commented out unused
InkaDudek Oct 12, 2023
1476b2f
linter
InkaDudek Oct 12, 2023
4b12278
upgrade to ol 8.1, remove imgSize from Icon
InkaDudek Oct 11, 2023
cf6dcfe
rollback
InkaDudek Oct 13, 2023
21ad13b
fixed test watch
InkaDudek Oct 13, 2023
89c542a
removed global.MutationObserver
InkaDudek Oct 13, 2023
cdedabe
G31DEV1-1770 Refactor: moving statistic Daschboard from core to addon
feng-lgv Oct 16, 2023
10010b4
fix - naming issue in mapping.json, update - add public-transport as …
a3rtgm-ds Oct 18, 2023
967d8ea
Merge branch 'dev' of bitbucket.org:geowerkstatt-hamburg/addons into dev
a3rtgm-ds Oct 18, 2023
a97a412
G31DEV1-1807-statistic-selector-behaviour
Oct 19, 2023
f3cb7de
G31DEV1-1802 Fix: the color in legend and map is the same in statisti…
feng-lgv Oct 19, 2023
18a8f3f
G31DEV1-1806 Fix: update visibility of legend
inga-fuhrmann Oct 20, 2023
752ad9d
G31DEV1-1780 Add: three components dashboard, template admin and temp…
feng-lgv Oct 19, 2023
bd265ce
G31DEV1-1819 fix: the mousehover text for difference button on statis…
feng-lgv Oct 20, 2023
f54c1c3
G31DEV1-1780 Refactor: removing two unnecessary tools and move templa…
feng-lgv Oct 23, 2023
8af09b2
G31DEV1-1704-doc-statistik-dashboard - add docs for statistic dashboard
kouroshlgv Oct 20, 2023
dc459a1
CoSI-Delete unnecessary file actionsExport.spec.js
sebadu Oct 24, 2023
2f9c68a
G31DEV1-1788 Add: paramter tooToOpen so that a tool can be open after…
feng-lgv Oct 24, 2023
a7bf5d4
VPI-125 add loading of mobile cell grid layer and de-/activate it by …
zehbeck Oct 11, 2023
7de27fb
G31DEV1-1820 Add: TemplateAdmin Component
inga-fuhrmann Oct 26, 2023
7dc0ef6
VPI-128 rename tab and select contents for tab 'compare dates'
zehbeck Oct 26, 2023
d383dc5
VPI-127 update charttitle in some tabs
zehbeck Oct 26, 2023
fcdb594
G31DEV1-1813 Add: list of all tools in dropdown
feng-lgv Oct 26, 2023
9d242fa
G31DEV1-1792-DSM-TemplateManager Add a button to import templates.
sebadu Oct 25, 2023
465ff34
G31DEV1-1814-vorlagenAdmin-statisticData
Oct 26, 2023
ce6785a
G31DEV1-1828 Fix: sorting the order of statistical data in dropdown and
feng-lgv Oct 27, 2023
ac6260d
G31DEV1-1829 Bugfix: if there are no districts selected, the next too…
feng-lgv Oct 27, 2023
88b0f11
G31DEV1-1800-TemplateManager The mapping of the statistical data can …
sebadu Oct 26, 2023
8994a14
G31DEV1-1830 Fix: buttons no longer reload the page in TemplateAdmin
inga-fuhrmann Oct 27, 2023
5d4be9d
changelog for v2.39.0
InkaDudek Nov 1, 2023
771ff51
2.39.0
InkaDudek Nov 1, 2023
4376bb2
changelog for unreleased
InkaDudek Nov 1, 2023
f5959df
G31DEV1-VorlagenAdmin-Update Little style changes.
sebadu Nov 1, 2023
995da3c
G31DEV1-1838 Fix: changing the column order in xcel file for statisti…
feng-lgv Nov 2, 2023
56eb21e
G31DEV1-1822 Add: paramter enableBuffer to decide if the buffer as In…
feng-lgv Nov 2, 2023
8e88be5
G31DEV1-1836-Dashboard-Fix The value of the statistics is not always …
sebadu Nov 3, 2023
f4f9c8a
G31DEV1-1835 Add: the function to lauch the tool directly after loadi…
feng-lgv Nov 3, 2023
9893e02
G31DEV1-1811-vorlagenadmin-laden-geodata - prepare geodata for dropdown
kouroshlgv Oct 27, 2023
ecb8d53
G31DEV1-TemplateManager-Fix Unit test.
sebadu Nov 6, 2023
5673ede
Merge branch 'dev' of https://bitbucket.org/geowerkstatt-hamburg/addo…
sebadu Nov 6, 2023
3e6baa7
VPI-130 update css class for data card to avoid mess up with legend
zehbeck Nov 7, 2023
f79abc0
VPI-129 add subtitles to compare tabs
zehbeck Nov 7, 2023
541ea3d
G31DEV1-1840 Add: validationfor input feld in template admin
feng-lgv Nov 6, 2023
f6d9cbd
G31DEV1-1839 Add: function to export the output in json file
feng-lgv Nov 8, 2023
46187bb
G31DEV1-1824-Dashboard-Update If several templates are loaded, all st…
sebadu Nov 7, 2023
401e44c
G31DEV1-1832 Add: reference values to template admin form
inga-fuhrmann Nov 9, 2023
d47877b
G31DEV1-1805-Dashboard-Update It is possible to add an optional colum…
sebadu Nov 13, 2023
a05dade
G31DEV1-1841 Add: reference value in template admin tool
feng-lgv Nov 13, 2023
b4de253
bugfix/G31DEV1-1771-referenz-console-error - bugfix to solve console …
kouroshlgv Nov 8, 2023
b916c8c
G31DEV1-1851 Fix: replacing the statsFeatureFilter from propertyName …
feng-lgv Nov 15, 2023
1e8dc38
G31DEV1-1850 Add: function to enable only number and comma in input f…
feng-lgv Nov 14, 2023
36e3bd0
G31DEV1-1864 Fix: removing tag for tool in template admin
feng-lgv Nov 15, 2023
731876b
G31DEV1-1860 Add: parameter prefixExportFilename to add prefix of the…
feng-lgv Nov 15, 2023
1eae064
G31DEV1-1863-adjust-xls-export
Nov 16, 2023
45b9ec8
G31DEV1-1857-vorlagenadmin-statistische-daten-in-zeilen - modify layo…
kouroshlgv Nov 16, 2023
9b2783f
G31DEV1-1862-Dashboard-Update Show all statistics even if they are on…
sebadu Nov 17, 2023
384ac6e
G31DEV1-1857-vorlagenadmin-statistische-daten-in-zeilen - prevent dou…
kouroshlgv Nov 16, 2023
ea25138
VPI-132 update chart labels for residents in compare tabs
zehbeck Nov 21, 2023
f0a3378
G31DEV1-1852-vorlagenManager-layer-fix
Nov 20, 2023
5afb5a5
G31DEV1-1861 Add: sort last loaded template as the first in dashboard
inga-fuhrmann Nov 21, 2023
3ba2075
G31DEV1-1867 Add: draggable statistic cards
inga-fuhrmann Nov 23, 2023
5a809bd
G31DEV1-1845-Vorlagen-Update Design was adapted to the admin template.
sebadu Nov 23, 2023
cf5b0fc
G31DEV1-1843 Add: template import function
feng-lgv Nov 20, 2023
338c3ee
G31DEV1-1853 Fix: if the help layers are removed from tree, the check…
feng-lgv Nov 24, 2023
c0970a5
G31DEV1-1856 Add: adjust unit depending on valueType in TemplateAdmin
inga-fuhrmann Nov 27, 2023
f20c542
G31DEV1-1866 Fix: the unit test error in statistic dashboard
feng-lgv Nov 27, 2023
71ebc2d
update package-lock.json
SvenJB1113 Nov 29, 2023
af22e27
G31DEV1-1871-vorlagenadmin-multi-vorlage - modify single import to multi
kouroshlgv Nov 27, 2023
0daf65e
G31DEV1-1894 Fix: allows comma as decimal in input field
feng-lgv Nov 29, 2023
a322c19
G31DEV1-1870-Dashboard-Update If no values are available but the nece…
sebadu Nov 27, 2023
37ba2fc
G31DEV1-1896 rafactor: make geodata as layer optional
feng-lgv Nov 30, 2023
575289c
G31DEV1-1886 Fix: loading the layer from layerIds in template manager
feng-lgv Nov 30, 2023
0d5363c
G31DEV1-1891-tools-for-templateAdmin
Nov 30, 2023
b6f1b7e
G31DEV1-1887 Fix: the bugs with orientationValue in vorlagenAdmin with
feng-lgv Nov 29, 2023
411550b
G31DEV1-1900-dashboard-info
Dec 1, 2023
c29cfcb
G31DEV1-1893 adjust ux ui in TemplateAdmin
inga-fuhrmann Dec 1, 2023
f2e6f54
G31DEV1-1905 Add: selectedTemplate to state
inga-fuhrmann Dec 5, 2023
1ea3a1b
G31DEV1-1912-bugfix-orientationValue
Dec 6, 2023
d00e4bd
2.40.0
RederCh Dec 6, 2023
8030710
Merge branch 'dev' of https://bitbucket.org/geowerkstatt-hamburg/addo…
RederCh Dec 6, 2023
650cbe4
BG-4505 rm Reihenmittelhaeuser merged with singular form
Oct 12, 2023
93cbcfb
BG-4505 calculation component correction
Nov 14, 2023
d6eee26
BG-4505 implemented retrieving config printServiceId
Nov 15, 2023
86edf9d
BG-4505 improved active button visibility
Nov 16, 2023
3aaeeae
BG-4505 pr requested changes
Nov 27, 2023
87fbcb7
BG-4505 rm Reihenmittelhaeuser merged with singular form
Oct 12, 2023
a61a164
BG-4505 calculation component correction
Nov 14, 2023
631b6f8
BG-4505 corrected calculated result dependend on selected option afte…
Nov 28, 2023
c520359
G31DEV1-1868 Refactor: making orientationValue's label configurable in
feng-lgv Dec 5, 2023
5c0769c
G31DEV1-1903-dashboard-rem-hidden-cols - remove hidden cols from export
kouroshlgv Dec 6, 2023
3b57a7c
G31DEV1-1897-Dashboard-Update Values are calculated even if the requi…
sebadu Dec 4, 2023
95eaff8
G31DEV1-1837-export-dashboard-grouping-sheets
Nov 6, 2023
9d7415d
G31DEV1-1892-vorlagenmanager-load-wms - load wms and wfs
kouroshlgv Nov 30, 2023
deba01e
G31DEV1-1885-upload-vorlagenman-validation: check json properties
kouroshlgv Dec 4, 2023
d5a30f1
add support for lts node version ^20.9.0 and npm Version ^10.1.0
Dec 7, 2023
cf5419f
G31DEV1-1925 Fix: error when deselected templates
inga-fuhrmann Dec 14, 2023
9c9612f
G31DEV1-1919 Add: calculated value in exported excel file
feng-lgv Dec 14, 2023
1605f19
G31DEV1-1926-vorlagenadmin-hilfe-txt - add help text
kouroshlgv Dec 18, 2023
1b4a246
Fix: - is also allowd for orientation value so that input can be a range
feng-lgv Dec 18, 2023
60f73d4
G31DEV1-1887 Fix: the orienation value can not be added after loading…
feng-lgv Dec 18, 2023
194ce4b
DSM-Fix Update mapping json.
sebadu Dec 20, 2023
6c6b4b0
G31DEV1-1931 Fix: if the template with the same name is upload again,…
feng-lgv Dec 20, 2023
aff6ba4
G31DEV1-1927-Dashboard-Fix For calculated statistical values, the tot…
sebadu Dec 20, 2023
93fdc50
G31DEV1-1932-DistrictSelector-Fix When change the district level, the…
sebadu Dec 20, 2023
e697b63
2.41.0
RederCh Jan 8, 2024
a6036fd
DPS-1743 DipasTheme: change color of more button to red and add the p…
atimmermann Jan 12, 2024
f62021a
G31DEV1-1967 Refactor: changing the text and length of title in stati…
feng-lgv Jan 17, 2024
1b72795
fix boris building position is only displayed for EFH
RederCh Jan 18, 2024
b6be2cd
G31DEV1-1972 Fix: the data format in excel from string to number so t…
feng-lgv Jan 17, 2024
87cd2ae
2.41.1
InkaDudek Jan 9, 2024
a6ba600
update CHANGELOG.md
RederCh Jan 18, 2024
b4b90ed
2.41.2
RederCh Jan 18, 2024
bf7fb4e
changelog for v.2.41.2
RederCh Jan 18, 2024
ed13237
G31DEV1-1973 Fix: the layerid for statistische gebiete, stadtteil and…
feng-lgv Jan 19, 2024
d3a0f60
VPI fix new year bug as long as no data available
zehbeck Jan 17, 2024
2e27838
G31DEV1-1979 Fix: the bug of exporting excel file in einrichtungsüber…
feng-lgv Jan 25, 2024
37b8f5f
Fixed schoolroute multilinestring
KBGeo Jan 25, 2024
6893dac
added test
KBGeo Jan 29, 2024
a50aa5f
G31DEV1-2011 Fix: unit test of cosi for new ol version
feng-lgv Feb 6, 2024
6bda972
changelog for v2.42.0
KBGeo Feb 7, 2024
3ef3a64
2.42.0
KBGeo Feb 7, 2024
7e76c53
G31DEV1-1929 Remove: statisticDashboard module from addons.
feng-lgv Feb 19, 2024
d69e470
DPS-1936 set colors for button from gfi attributes
atimmermann Feb 22, 2024
8fc88d0
streetsmart: respect supportedMapModes: 2D
InkaDudek Feb 27, 2024
62766ce
G31DEV1 Update Mapping json
Mar 4, 2024
7cba144
changelog for v2.43.0
InkaDudek Mar 6, 2024
816087d
2.43.0
InkaDudek Mar 6, 2024
3ac1138
changelog for unreleased
InkaDudek Mar 6, 2024
f0532fe
Merge branch 'dev' into cosi-airview
a3rtgm-ds Mar 12, 2024
f7fccbb
merge manuals from csl
a3rtgm-ds Mar 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,29 @@

### Fixed

---

## v2.43.0 - 2024-03-06

### Changed
- StreetSmart: if started as control, it is not available in 3D mode.

---
## v2.42.0 - 2024-02-07

### Fixed
- SchoolRoutePlanning: Fixed showing the route with OL 8.2.0.

---
## v2.41.2 - 2024-01-18
### Fixed
- Boris: In the Calculation tab, the building position is only displayed for EFH

---
## v2.39.0 - 2023-11-01
### Added
- The new addon [statisticDashboard](https://bitbucket.org/geowerkstatt-hamburg/addons/src/dev/statisticDashboard/) A tool to display statistical data. Further details: [statisticDashboard documentation](https://bitbucket.org/geowerkstatt-hamburg/addons/src/dev/statisticDashboard/doc/config.json.md)

---
## v2.34.0 - 2023-06-07
### Changed
Expand Down
4 changes: 4 additions & 0 deletions addonsConf.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,9 @@
},
"wholeCityList": {
"type": "tool"
},
"TemplateAdmin": {
"path": "cosi/TemplateAdmin",
"type": "tool"
}
}
67 changes: 48 additions & 19 deletions boris/components/BorisComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ export default {
FloorComponent
},
computed: {
...mapGetters("Tools/BorisComponent", ["active", "id", "icon", "renderToWindow", "resizableWindow", "initialWidth", "initialWidthMobile", "keepOpen", "filteredLayerList", "isAreaLayer", "isStripesLayer", "textIds", "selectedPolygon", "selectedLayerName", "selectedLanduse", "selectedBrwFeature", "convertedBrw", "buttonValue", "buildingDesigns", "positionsToStreet", "selectedOption", "isProcessFromParametricUrl", "paramUrlParams"]),
...mapGetters("Tools/Print", ["printFileReady", "fileDownloadUrl", "filename", "printStarted", "progressWidth"]),
...mapGetters("Tools/BorisComponent", [
"active", "id", "icon", "renderToWindow", "resizableWindow", "initialWidth",
"initialWidthMobile", "keepOpen", "filteredLayerList", "isAreaLayer",
"isStripesLayer", "textIds", "selectedPolygon", "selectedLayerName",
"selectedLanduse", "selectedBrwFeature", "convertedBrw", "buttonValue",
"buildingDesigns", "positionsToStreet", "isProcessFromParametricUrl",
"paramUrlParams", "selectedBuildDesign", "selectedPositionToStreet"
]),
...mapGetters("Tools/Print", [
"printFileReady", "fileDownloadUrl", "filename", "printStarted", "progressWidth"
]),
/**
* Gets a list of layers without the stripes-layers
* @return {Array} filteredListWithoutStripes which is used to select by date
Expand Down Expand Up @@ -89,15 +98,20 @@ export default {
newValue === "GR Grünland" ||
newValue === "EGA Erwerbsgartenanbaufläche" ||
newValue === "F forstwirtschaftliche Fläche" ||
newValue === "LAD Läden (eingeschossig)"
) {
newValue === "LAD Läden (eingeschossig)") {
if (oldValue === "MFH Mehrfamilienhäuser" ||
oldValue === "GH Geschäftshäuser (mehrgeschossig, Wertanteil Erdgeschoss)" ||
oldValue === "BH Bürohäuser") {
this.setButtonValue("info");
}
}
}
if (newValue === "EFH Ein- und Zweifamilienhäuser") {
this.setSelectedBuildDesign("eh Einzelhaus (freistehend)");
}
else {
this.setSelectedBuildDesign("");
}
this.matchPolygonFeatureWithLanduse({feature: this.selectedPolygon, selectedLanduse: newValue});
}
},
Expand Down Expand Up @@ -128,8 +142,8 @@ export default {
}
},
selectedLayerName () {
this.setBuildingDesigns(["eh Einzelhaus (freistehend)", "dh Doppelhaushälfte", " dd Doppelhaus (ganzes Doppelhaus)", "rm Reihenmittelhaus", "rm Reihenmittelhäuser", "re Reihenendhaus", "g geschlossene Bauweise", "a abweichende Bauweise (Gartenhofhaus)"]);
this.setPositionsToStreet(["F Frontlage", "E Ecklage", "P Pfeifenstielgrundstück", "H Hinterlage (in 2. Reihe durch Wegerecht erschlossen)"]);
this.setBuildingDesigns(this.buildingDesigns);
this.setPositionsToStreet(this.positionsToStreet);
}
},
created () {
Expand Down Expand Up @@ -179,15 +193,28 @@ export default {
}
},
/**
* Handles option-change for individual property conversion
* Handles option-change of the building design for the individual property conversion
* @param {String} event the selected option
* @param {String} subject contains subject information for the select: building design oder position to street
* @returns {void}
*/
handleBuildingDesignOptionChange (event, subject) {
const eventValue = event.target.value;

this.setSelectedBuildDesign(eventValue);
this.updateSelectedBrwFeature({converted: subject, brw: eventValue});
this.sendWpsConvertRequest({state: this});
},
/**
* Handles option-change of positon to street for the individual property conversion
* @param {String} event the selected option
* @param {String} subject contains subject information for the select: building design oder position to street
* @returns {void}
*/
handleOptionChange (event, subject) {
handlePositionToStreetOptionChange (event, subject) {
const eventValue = event.target.value;

this.setSelectedOption(eventValue);
this.setSelectedPositionToStreet(eventValue);
this.updateSelectedBrwFeature({converted: subject, brw: eventValue});
this.sendWpsConvertRequest({state: this});
},
Expand Down Expand Up @@ -343,30 +370,30 @@ export default {
class="d-flex mb-2"
>
<button
class="btn btn-primary bi-info-circle-fill col me-1"
:class="(buttonValue === 'info') ? 'btn btn-primary btn active' : 'btn btn-primary'"
class="bi-info-circle-fill col me-1"
:class="(buttonValue === 'info') ? 'btn btn-primary' : 'btn btn-default'"
value="info"
:title="$t('additional:modules.tools.boris.detailInformation.title')"
@click="setButtonValue($event.target.value)"
/>
<button
class="btn btn-primary bi-geo-alt-fill col me-1"
:class="(buttonValue === 'lage') ? 'btn btn-primary btn active' : 'btn btn-primary'"
class="bi-geo-alt-fill col me-1"
:class="(buttonValue === 'lage') ? 'btn btn-primary' : 'btn btn-default'"
value="lage"
:title="$t('additional:modules.tools.boris.locationDescription.title')"
@click="setButtonValue($event.target.value)"
/>
<button
class="btn btn-primary bi-currency-euro col "
:class="(buttonValue === 'euro') ? 'btn btn-primary btn active' : 'btn btn-primary'"
class="bi-currency-euro col "
:class="(buttonValue === 'euro') ? 'btn btn-primary' : 'btn btn-default'"
value="euro"
:title="$t('additional:modules.tools.boris.landCalculation.title')"
@click="setButtonValue($event.target.value)"
/>
<button
v-if="selectedBrwFeature.get('schichtwert')"
class="btn btn-primary bi-list-ul col ms-1"
:class="(buttonValue === 'liste') ? 'btn btn-primary btn active' : 'btn btn-primary'"
class="bi-list-ul col ms-1"
:class="(buttonValue === 'liste') ? 'btn btn-primary' : 'btn btn-default'"
value="liste"
:title="$t('additional:modules.tools.boris.floorValues.title')"
@click="setButtonValue($event.target.value)"
Expand Down Expand Up @@ -405,9 +432,10 @@ export default {
:text-id="2"
:text="$t('additional:modules.tools.boris.landCalculation.buildingDesignsInfo')"
:toggle-info-text="toggleInfoText"
:handle-change="handleOptionChange"
:handle-change="handleBuildingDesignOptionChange"
:subject="'zBauweise'"
:type="'select'"
:selected-option="selectedBuildDesign"
/>
</div>
<div
Expand All @@ -421,9 +449,10 @@ export default {
:text-id="3"
:text="$t('additional:modules.tools.boris.landCalculation.positionToStreetInfo')"
:toggle-info-text="toggleInfoText"
:handle-change="handleOptionChange"
:handle-change="handlePositionToStreetOptionChange"
:subject="'zStrassenLage'"
:type="'select'"
:selected-option="selectedPositionToStreet"
/>
</div>
<div
Expand Down
35 changes: 9 additions & 26 deletions boris/components/CalculationComponent.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
import {mapMutations} from "vuex";
import mutations from "../store/mutationsBoris";

export default {
name: "CalculationComponent",
Expand Down Expand Up @@ -44,34 +42,18 @@ export default {
type: {
type: String,
required: true
}
},
methods: {
...mapMutations("Tools/Boris", Object.keys(mutations)),
/**
* Check if 'Einzelhäuser' or 'Doppelhäuser' are selected to change the option name to singular
* @param {String} option is one option of the options of buildingDesigns or positionsToStreet
* @return {String} zBauweise that changes the term to singular
*/
checkForBuildingMatch (option) {

let zBauweise = this.selectedBrwFeature.get("zBauweise");
const zStrassenLage = this.selectedBrwFeature.get("zStrassenLage");

if (this.selectedBrwFeature.get("zBauweise") === "eh Einzelhäuser") {
zBauweise = "eh Einzelhaus (freistehend)";
}
else if (this.selectedBrwFeature.get("zBauweise") === "dh Doppelhaushälften") {
zBauweise = "dh Doppelhaushälfte";
}

return option === zBauweise || option === zStrassenLage;
},
selectedOption: {
type: String,
default: "",
required: false
}
}

};

</script>


<template>
<div id="calculation-component">
<div
Expand All @@ -90,15 +72,16 @@ export default {
</dt>
<dd>
<select
:value="selectedOption"
class="form-select"
:aria-label="$t('additional:modules.tools.boris.landCalculation.ariaLabelBuildingDesigns')"
@select="$emit('select', $event.target.value)"
@change="handleChange($event, subject)"
>
<option
v-for="(option, i) in options"
:key="i"
:value="option"
:selected="checkForBuildingMatch(option)"
>
{{ option }}
</option>
Expand Down
4 changes: 2 additions & 2 deletions boris/store/actionsBoris.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ const actions = {
"zEntwicklungszustand": feature.get("entwicklungszustand"), // Mandatory attribute for WPS
"zBeitragszustand": feature.get("beitragszustand"), // Mandatory attribute for WPS
"zNutzung": feature.get("nutzung_kombiniert"), // Mandatory attribute for WPS
"zBauweise": feature.get("anbauart") !== "" ? feature.get("anbauart") : null,
"zBauweise": state.selectedBuildDesign !== "" ? state.selectedBuildDesign : null,
"zGeschossfl_zahl": feature.get("geschossfl_zahl") !== "" ? feature.get("geschossfl_zahl") : null,
"zGrdstk_flaeche": feature.get("grdstk_flaeche") !== "" ? feature.get("grdstk_flaeche") : null,
"zStrassenLage": feature.get("nutzung_kombiniert") === "EFH Ein- und Zweifamilienhäuser" ? "F Frontlage" : null
"zStrassenLage": feature.get("nutzung_kombiniert") === "EFH Ein- und Zweifamilienhäuser" ? state.selectedPositionToStreet : null
});

commit("setSelectedBrwFeature", feature);
Expand Down
22 changes: 17 additions & 5 deletions boris/store/stateBoris.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@
* @property {Boolean} isProcessFromParametricUrl - true if paremetric URL is being used
* @property {Object} paramUrlParams - parameters that are used to center map and select relevant options to display data
* @property {String} buttonValue - html value of button that indicates which further information are displayed
* @property {Object} buildingDesigns - list of building designs that are options for the Conversion to Individual Property
* @property {Object} positionsToStreet - list of positions to streets that are options for the Conversion to Individual Property
* @property {Object} buildingDesigns - list of building designs that are options for the conversion to individual property
* @property {Object} positionsToStreet - list of positions to streets that are options for the conversion to individual property
* @property {String} selectedBuildingDesign - is the selected option of building designs
* @property {String} selectedPositionToStreet - is the selected option of positions to street
* @property {String} selectedOption - is the selected option of building designs or positions to street
* @property {String} selectedBuildingDesign - is the selected option of building designs
* @property {String} selectedPositionToStreet - is the selected option of positions to street
* @property {String} wpsId - the id of the used web processing service
* @property {String} fmwProcess - the FME process triggered via the WPS
*/
Expand Down Expand Up @@ -60,9 +64,17 @@ const state = {
isProcessFromParametricUrl: false,
paramUrlParams: {},
buttonValue: "info",
buildingDesigns: ["eh Einzelhaus (freistehend)", "dh Doppelhaushälfte", " dd Doppelhaus (ganzes Doppelhaus)", "rm Reihenmittelhaus", "rm Reihenmittelhäuser", "re Reihenendhaus", "g geschlossene Bauweise", "a abweichende Bauweise (Gartenhofhaus)"],
positionsToStreet: ["F Frontlage", "E Ecklage", "P Pfeifenstielgrundstück", "H Hinterlage (in 2. Reihe durch Wegerecht erschlossen)"],
selectedOption: "",
buildingDesigns: [
"eh Einzelhaus (freistehend)", "dh Doppelhaushälfte", " dd Doppelhaus (ganzes Doppelhaus)",
"rm Reihenmittelhaus", "re Reihenendhaus", "g geschlossene Bauweise",
"a abweichende Bauweise (Gartenhofhaus)"
],
positionsToStreet: [
"F Frontlage", "E Ecklage", "P Pfeifenstielgrundstück",
"H Hinterlage (in 2. Reihe durch Wegerecht erschlossen)"
],
selectedBuildDesign: "",
selectedPositionToStreet: "F Frontlage",
wpsId: "1001",
fmwProcess: "BRWConvert.fmw"
};
Expand Down
44 changes: 41 additions & 3 deletions boris/tests/unit/components/BorisComponent.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,31 @@ describe("ADDONS: addons/boris/components/BorisComponent.vue", () => {
expect(store.state.Tools.BorisComponent.buttonValue).to.equals("info");
expect(Boris.actions.matchPolygonFeatureWithLanduse.calledOnce).to.equal(true);
});
it("selectedLanduse shall change selectedBuildDesign to 'EFH Ein- und Zweifamilienhäuser'", () => {
const oldValue = "BH Bürohäuser",
newValue = "EFH Ein- und Zweifamilienhäuser";

store.state.Tools.BorisComponent.active = true;
store.state.Tools.BorisComponent.buttonValue = "liste";
wrapper = shallowMount(BorisComponent, {store, localVue});
wrapper.vm.$options.watch.selectedLanduse.call(wrapper.vm, newValue, oldValue);

expect(store.state.Tools.BorisComponent.buttonValue).to.equals("info");
expect(store.state.Tools.BorisComponent.selectedBuildDesign).to.equals("eh Einzelhaus (freistehend)");
expect(Boris.actions.matchPolygonFeatureWithLanduse.calledOnce).to.equal(true);
});
it("selectedLanduse shall change selectedBuildDesign to ''", () => {
const oldValue = "EFH Ein- und Zweifamilienhäuser",
newValue = "MFH Mehrfamilienhäuser";

store.state.Tools.BorisComponent.active = true;
store.state.Tools.BorisComponent.buttonValue = "liste";
wrapper = shallowMount(BorisComponent, {store, localVue});
wrapper.vm.$options.watch.selectedLanduse.call(wrapper.vm, newValue, oldValue);

expect(store.state.Tools.BorisComponent.selectedBuildDesign).to.equals("");
expect(Boris.actions.matchPolygonFeatureWithLanduse.calledOnce).to.equal(true);
});
});
describe("selectedBrwFeature watcher", () => {
it("selectedBrwFeature: should change buttonValue to 'info'", () => {
Expand Down Expand Up @@ -249,15 +274,28 @@ describe("ADDONS: addons/boris/components/BorisComponent.vue", () => {
});
});
describe("handle input and option change methods", () => {
it("handleOptionChange", () => {
it("handle option change: handleBuildingDesignOptionChange", () => {
const event = {target: {value: store.state.Tools.BorisComponent.buildingDesigns[1]}, get: () => "value"},
subject = "zBauweise";

store.state.Tools.BorisComponent.active = true;
wrapper = shallowMount(BorisComponent, {store, localVue});
wrapper.vm.handleOptionChange(event, subject);
wrapper.vm.handleBuildingDesignOptionChange(event, subject);

expect(store.state.Tools.BorisComponent.selectedBuildDesign).to.equal(store.state.Tools.BorisComponent.buildingDesigns[1]);
expect(Boris.actions.updateSelectedBrwFeature.calledOnce).to.equal(true);
expect(Boris.actions.sendWpsConvertRequest.calledOnce).to.equal(true);

});
it("handle option change: handlePositionToStreetOptionChange", () => {
const event = {target: {value: store.state.Tools.BorisComponent.positionsToStreet[1]}, get: () => "value"},
subject = "zStrassenLage";

store.state.Tools.BorisComponent.active = true;
wrapper = shallowMount(BorisComponent, {store, localVue});
wrapper.vm.handlePositionToStreetOptionChange(event, subject);

expect(store.state.Tools.BorisComponent.selectedOption).to.equal(store.state.Tools.BorisComponent.buildingDesigns[1]);
expect(store.state.Tools.BorisComponent.selectedPositionToStreet).to.equal(store.state.Tools.BorisComponent.positionsToStreet[1]);
expect(Boris.actions.updateSelectedBrwFeature.calledOnce).to.equal(true);
expect(Boris.actions.sendWpsConvertRequest.calledOnce).to.equal(true);

Expand Down
3 changes: 2 additions & 1 deletion boris/tests/unit/components/FloorComponent.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ describe("ADDONS: addons/boris/components/FloorComponent.vue", () => {
title: "title",
feature: {
},
label: "subtitle"
label: "subtitle",
landuse: "MFH Mehrfamilienhäuser"
};
wrapper = shallowMount(FloorComponent, {
store,
Expand Down
Loading