Skip to content

Commit

Permalink
🔀 wo #43: merging dev after a couple of changes and a failed rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
helllth committed Jul 30, 2020
2 parents 33d165e + 323c1a7 commit a3847cb
Show file tree
Hide file tree
Showing 11 changed files with 132 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.git
.git/
node_modules
build
public/tmp/
10 changes: 9 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@





{
"type": "chrome",
Expand Down Expand Up @@ -104,8 +105,15 @@
"name": "Debug eBikes",
"url": " http://localhost:3000/#/ebikes",
"webRoot": "${workspaceRoot}"
},
{
"type": "chrome",
"request": "launch",
"name": "Debug iframetest",
"url": "http://localhost:3000/#/iframetest/",
"webRoot": "${workspaceRoot}"
}

http://localhost:3000/#/ebikes

]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@
"not ie <= 11",
"not op_mini all"
]
}
}
4 changes: 3 additions & 1 deletion src/components/bplaene/BPlanInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const BPlanInfo = ({
let planOrPlanteile_rk;
let planOrPlanteile_nrk;
let dokumentArt = '';

if (currentFeature.featuretype !== 'B-Plan') {
return <div />;
}
if (
currentFeature.properties.plaene_rk.length + currentFeature.properties.plaene_nrk.length >
1
Expand Down
4 changes: 2 additions & 2 deletions src/containers/BPlaene.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export class BPlaene_ extends React.Component {
this.props.planoffenlegungen.dataState.items.bplaene.includes(
selectedFeature.properties.nummer
) &&
selectedFeature.properties.status === 'nicht rechtskräftig'
(selectedFeature.properties.status === 'nicht rechtskräftig' ||
selectedFeature.properties.status === 'nicht rechtskräftig,rechtskräftig')
);
}

Expand Down Expand Up @@ -333,7 +334,6 @@ export class BPlaene_ extends React.Component {
`Sehr geehrte Damen und Herren,${br}${br}` +
`zum offenliegenden Bebauungsplan ${selectedFeature
.properties.nummer} äußere ich mich ` +
`als Privatperson | als Vertreter einer Firma oder Organisation [Nichtzutreffendes bitte löschen] ` +
`wie folgt:${br}` +
`${br}${br}` +
`[Tragen Sie hier bitte Ihre Stellungnahme ein.]${br}` +
Expand Down
1 change: 0 additions & 1 deletion src/containers/FNP.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,6 @@ export class Container_ extends React.Component {
`Sehr geehrte Damen und Herren,${br}${br}` +
`zur offenliegenden ${selectedFeature.properties
.name}. FNP-Änderung äußere ich mich ` +
`als Privatperson | als Vertreter einer Firma oder Organisation [Nichtzutreffendes bitte löschen] ` +
`wie folgt:${br}` +
`${br}${br}` +
`[Tragen Sie hier bitte Ihre Stellungnahme ein.]${br}` +
Expand Down
87 changes: 87 additions & 0 deletions src/containers/IFrameTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,93 @@ const Comp = () => {
</ul>
</div>
</div>

<h2 className='alt-header'>Offenlegungen</h2>
<p>
<iframe
src='http://localhost:3000/#/bplaene'
className='SP-Iframe__main'
allowfullscreen=''
title='Dieser iframe zeigt den Inhalt von https://wunda-geoportal.cismet.de/#/fnp/ an'
style={{ height: '512px', width: '868px' }}
/>
</p>
<div id='rahmen'>
<div id='col1'>
<p>
<b>Aktuelle Offenlegungen B-Pläne:</b>
</p>
<ul>
<li>
<a
onClick={() => {
document.getElementsByClassName('SP-Iframe__main')[2].src =
'http://localhost:3000/#/bplaene?gazHit=eyJzb3J0ZXIiOjE0OTcsInN0cmluZyI6IjEyNTkiLCJnbHlwaCI6ImZpbGUiLCJvdmVybGF5IjoiQiIsIngiOjM3NDE3OS41OSwieSI6NTY3NjYxMC41MywibW9yZSI6eyJ6bCI6MTgsInYiOiIxMjU5In0sInR5cGUiOiJicGxhZW5lIn0';
}}
>
Bebauungsplan 1259 - Staasstraße
</a>{' '}
(10.06. bis 22.07.2020){' '}
<a
href='https://wuppertal.planoffenlegung.de/#/docs/bplaene/1259/1/1'
target='_planoffenlegung'
>
<span role='img' aria-label='Document'>
📄
</span>
</a>
</li>

<li>
<a
onClick={() => {
document.getElementsByClassName('SP-Iframe__main')[2].src =
'http://localhost:3000/#/bplaene?gazHit=eyJzb3J0ZXIiOjE0ODYsInN0cmluZyI6IjEyNDEiLCJnbHlwaCI6ImZpbGUiLCJvdmVybGF5IjoiQiIsIngiOjM3NDQzMy44OSwieSI6NTY4MjA2Ni4zMywibW9yZSI6eyJ6bCI6MTgsInYiOiIxMjQxIn0sInR5cGUiOiJicGxhZW5lIn0';
}}
>
Bebauungsplan 1241 - Heubruch
</a>{' '}
(10.06. bis 22.07.2020){' '}
<a
href='https://wuppertal.planoffenlegung.de/#/docs/bplaene/1241/1/1'
target='_planoffenlegung'
>
<span role='img' aria-label='Document'>
📄
</span>
</a>
</li>
</ul>
</div>
<p>
<b>Aktuelle Offenlegungen FNP Änderungsverfahren:</b>
</p>
<ul>
<li>
<a
onClick={() => {
// console.log(
// 'document.getElementsByClassName(',
// document.getElementsByClassName('SP-Iframe__main')
// );
document.getElementsByClassName('SP-Iframe__main')[2].src =
'http://localhost:3000/#/fnp/rechtsplan?gazHit=eyJzb3J0ZXIiOjE2Niwic3RyaW5nIjoiMTE0IiwiZ2x5cGgiOiJmaWxlIiwib3ZlcmxheSI6IkYiLCJ4IjozNzQ0MjkuNiwieSI6NTY4MjA1OC4wMSwibW9yZSI6eyJ6bCI6MTUsInYiOiIxMTQifSwidHlwZSI6ImFlbmRlcnVuZ3N2In0=';
}}
>
114. Änderung des Flächennutzungsplanes - Bahnhof Heubruch
</a>{' '}
(10.06. bis 22.07.2020){' '}
<a
href='https://wuppertal.planoffenlegung.de/#/docs/aenderungsv/114/1/1'
target='_planoffenlegung'
>
<span role='img' aria-label='Document'>
📄
</span>
</a>
</li>
</ul>
</div>
</div>
);
};
Expand Down
1 change: 1 addition & 0 deletions src/containers/TopicMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class TopicMap_ extends React.Component {
try {
let gazHit = JSON.parse(window.atob(gazHitBase64));
let suppressMarker = true;
this.props.mappingActions.setFeatureCollection([]);
builtInGazetteerHitTrigger(
[ gazHit ],
this.leafletRoutedMap.leafletMap.leafletElement,
Expand Down
3 changes: 3 additions & 0 deletions src/redux/modules/bplaene.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,11 @@ function convertPropArrayToFeature(propArray, counter) {
// console.log('plaene_rk', JSON.stringify(plaene_rk));
// console.log('plaene_nrk', JSON.stringify(plaene_nrk));
// console.log('docs', JSON.stringify(docs));
const featuretype = 'B-Plan';

return {
id: propArray[0] + '.' + counter,
featuretype,
type: 'Feature',
selected: false,
geometry: geom,
Expand Down
41 changes: 24 additions & 17 deletions src/redux/modules/ehrenamt.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ export default function ehrenamtReducer(state = initialState, action) {
return newState;
}
case types.SET_FILTERED_OFFERS: {
const cleanOffers = action.offers.filter((o) => o !== null);
newState = objectAssign({}, state);
newState.filteredOffers = action.offers;
newState.filteredOffers = cleanOffers;
newState.filteredOfferIndex = kdbush(
action.offers,
cleanOffers,
(p) => p.point25832[0],
(p) => p.point25832[1]
);
Expand Down Expand Up @@ -468,21 +469,27 @@ function loadOffers(finishedHandler = () => {}) {
let zielgruppen = new Set();

for (let offer of data) {
currentOffer = offer;
offer.point25832 = convertPoint(offer.geo_x, offer.geo_y);
if (offer.globalbereiche) {
for (let g of offer.globalbereiche) {
globalbereiche.add(g);
}
}
if (offer.kenntnisse) {
for (let k of offer.kenntnisse) {
kenntnisse.add(k);
}
}
if (offer.zielgruppen) {
for (let z of offer.zielgruppen) {
zielgruppen.add(z);
if (offer !== undefined && offer !== null) {
currentOffer = offer;
try {
offer.point25832 = convertPoint(offer.geo_x, offer.geo_y);
if (offer.globalbereiche) {
for (let g of offer.globalbereiche) {
globalbereiche.add(g);
}
}
if (offer.kenntnisse) {
for (let k of offer.kenntnisse) {
kenntnisse.add(k);
}
}
if (offer.zielgruppen) {
for (let z of offer.zielgruppen) {
zielgruppen.add(z);
}
}
} catch (e) {
console.error('error during import of new offers ', e, currentOffer);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/redux/modules/fnp_aenderungsverfahren.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function convertAEVToFeature(aev, index) {
}
const id = aev.id;
const type = 'Feature';
const featuretype = 'Hauptnutzung';
const featuretype = 'Änderungsverfahren';

const selected = false;
const geometry = aev.geojson;
Expand Down

0 comments on commit a3847cb

Please sign in to comment.