Skip to content

Commit 5c44c0b

Browse files
committed
revert changes in non-geoportal apps
1 parent d08d57a commit 5c44c0b

File tree

103 files changed

+485
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+485
-273
lines changed

apps/belis/desktop/src/config/gazData.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { createConfig, ENDPOINTS } from "@carma/resources";
1+
import { createConfig, ENDPOINT } from "@carma-commons/resources";
22

33
const prefix = "GazDataForBelIS-OnlineByCismet";
44

55
const endpoints = [
6-
ENDPOINTS.ADRESSEN,
7-
ENDPOINTS.BEZIRKE,
8-
ENDPOINTS.QUARTIERE,
9-
ENDPOINTS.POIS,
10-
ENDPOINTS.KITAS,
6+
ENDPOINT.ADRESSEN,
7+
ENDPOINT.BEZIRKE,
8+
ENDPOINT.QUARTIERE,
9+
ENDPOINT.POIS,
10+
ENDPOINT.KITAS,
1111
];
1212

1313
const host = import.meta.env.VITE_WUPP_ASSET_BASEURL;

apps/belis/online/src/config/gazData.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { createConfig, ENDPOINTS } from "@carma/resources";
1+
import { createConfig, ENDPOINT } from "@carma-commons/resources";
22

33
const prefix = "GazDataForBelIS-OnlineByCismet";
44

55
const endpoints = [
6-
ENDPOINTS.ADRESSEN,
7-
ENDPOINTS.BEZIRKE,
8-
ENDPOINTS.QUARTIERE,
9-
ENDPOINTS.POIS,
10-
ENDPOINTS.KITAS,
6+
ENDPOINT.ADRESSEN,
7+
ENDPOINT.BEZIRKE,
8+
ENDPOINT.QUARTIERE,
9+
ENDPOINT.POIS,
10+
ENDPOINT.KITAS,
1111
];
1212

1313
const host = import.meta.env.VITE_WUPP_ASSET_BASEURL;

apps/belis/online/src/containers/TopNavbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import {
7171
EmptySearchComponent,
7272
LibFuzzySearch,
7373
} from "@carma-mapping/fuzzy-search";
74-
import { isAreaType } from "@carma/resources";
74+
import { isAreaType } from "@carma-commons/resources";
7575
import { builtInGazetteerHitTrigger } from "react-cismap/tools/gazetteerHelper";
7676

7777
//---------

apps/belis/online/src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import ReactDOM from "react-dom";
3-
import { cjsGlobalShim } from "@carma-commons/dom/window";
3+
import { cjsGlobalShim } from "@carma-commons/utils/window";
44
import App from "./App";
55
import * as serviceWorkerRegistration from "./serviceWorkerRegistration";
66

apps/lagis/desktop/src/components/commons/Map.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import {
5858
useSelection,
5959
} from "@carma-appframeworks/portals";
6060
import { LibFuzzySearch } from "@carma-mapping/fuzzy-search";
61-
import { isAreaType } from "@carma/resources";
61+
import { isAreaType } from "@carma-commons/resources";
6262
import { Control, ControlLayout } from "@carma-mapping/map-controls-layout";
6363
import { ZoomControl } from "@carma-mapping/components";
6464
import { TopicMapDispatchContext } from "react-cismap/contexts/TopicMapContextProvider";

apps/lagis/desktop/src/config/gazData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { createConfig, ENDPOINTS } from "@carma/resources";
1+
import { createConfig, ENDPOINT } from "@carma-commons/resources";
22

33
const prefix = "GazDataForHitzeinderstadtByCismet";
44

5-
const endpoints = [ENDPOINTS.ADRESSEN, ENDPOINTS.POIS, ENDPOINTS.KITAS];
5+
const endpoints = [ENDPOINT.ADRESSEN, ENDPOINT.POIS, ENDPOINT.KITAS];
66

77
const host = import.meta.env.VITE_WUPP_ASSET_BASEURL;
88
const crs = "3857";

apps/topicmaps/baederkarte/src/config/gazData.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { createConfig, ENDPOINTS } from "@carma/resources";
1+
import { createConfig, ENDPOINT } from "@carma-commons/resources";
22

33
const prefix = "GazDataForHochwasserkarteByCismet";
44

55
const endpoints = [
6-
ENDPOINTS.ADRESSEN,
7-
ENDPOINTS.BEZIRKE,
8-
ENDPOINTS.QUARTIERE,
9-
ENDPOINTS.POIS,
10-
ENDPOINTS.KITAS,
6+
ENDPOINT.ADRESSEN,
7+
ENDPOINT.BEZIRKE,
8+
ENDPOINT.QUARTIERE,
9+
ENDPOINT.POIS,
10+
ENDPOINT.KITAS,
1111
];
1212

1313
const host = import.meta.env.VITE_WUPP_ASSET_BASEURL;

apps/topicmaps/bplan-auskunft/src/app/components/FuzzySearchWrapper.tsx

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
1-
import { useContext } from "react";
2-
import { useDispatch } from "react-redux";
3-
import type { UnknownAction } from "redux";
4-
import L from "leaflet";
5-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6-
import { faSearch } from "@fortawesome/free-solid-svg-icons";
7-
8-
import { ResponsiveTopicMapContext } from "react-cismap/contexts/ResponsiveTopicMapContextProvider";
9-
import { TopicMapContext } from "react-cismap/contexts/TopicMapContextProvider";
10-
11-
import { ManagedProjections } from "@carma/geo/proj";
12-
import { ENDPOINTS, isAreaType } from "@carma/resources";
13-
import type { SearchResultItem } from "@carma/types";
141
import {
152
SelectionMetaData,
163
useSelection,
174
useSelectionTopicMap,
185
} from "@carma-appframeworks/portals";
19-
20-
import { getBoundingBoxForLeafletMap } from "@carma-mapping/engines/leaflet";
216
import { LibFuzzySearch } from "@carma-mapping/fuzzy-search";
7+
import { type SearchResultItem } from "@carma/types";
228

9+
import { ResponsiveTopicMapContext } from "react-cismap/contexts/ResponsiveTopicMapContextProvider";
10+
import { useContext } from "react";
11+
import { ENDPOINT, isAreaType } from "@carma-commons/resources";
12+
import { useDispatch } from "react-redux";
2313
import {
2414
getPlanFeatureByTitle,
2515
getPlanFeatures,
2616
} from "../../store/slices/bplaene";
27-
17+
import { TopicMapContext } from "react-cismap/contexts/TopicMapContextProvider";
18+
import L from "leaflet";
19+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
20+
import { faSearch } from "@fortawesome/free-solid-svg-icons";
21+
import type { UnknownAction } from "redux";
22+
import { getBoundingBoxForLeafletMap } from "@carma-mapping/utils";
23+
import proj4 from "proj4";
2824
interface FuzzySearchProps {
2925
setFeatures: (hit) => void;
3026
setSelectedIndex: (idx) => void;
@@ -55,7 +51,7 @@ const FuzzySearchWrapper = ({
5551
const selectionMetaData: SelectionMetaData = {
5652
selectedFrom: "gazetteer",
5753
selectionTimestamp: Date.now(),
58-
isAreaSelection: isAreaType(selection.type),
54+
isAreaSelection: isAreaType(selection.type as ENDPOINT),
5955
};
6056
setSelection(Object.assign({}, selection, selectionMetaData));
6157

@@ -90,7 +86,7 @@ const FuzzySearchWrapper = ({
9086
) {
9187
const boundingBox = getBoundingBoxForLeafletMap(
9288
routedMapRef?.leafletMap,
93-
ManagedProjections.EPSG25832
89+
proj4.defs("EPSG:25832")
9490
);
9591
dispatch(
9692
getPlanFeatures({

apps/topicmaps/bplan-auskunft/src/config/gazData.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { createConfig, ENDPOINTS } from "@carma/resources";
1+
import { createConfig, ENDPOINT } from "@carma-commons/resources";
22

33
const prefix = "GazDataForHochwasserkarteByCismet";
44

55
const endpoints = [
6-
ENDPOINTS.ADRESSEN,
7-
ENDPOINTS.BEZIRKE,
8-
ENDPOINTS.QUARTIERE,
9-
ENDPOINTS.POIS,
10-
ENDPOINTS.KITAS,
11-
ENDPOINTS.BPLAENE,
6+
ENDPOINT.ADRESSEN,
7+
ENDPOINT.BEZIRKE,
8+
ENDPOINT.QUARTIERE,
9+
ENDPOINT.POIS,
10+
ENDPOINT.KITAS,
11+
ENDPOINT.BPLAENE,
1212
];
1313
const host = import.meta.env.VITE_WUPP_ASSET_BASEURL;
1414
const crs = "25832";

apps/topicmaps/bplan-auskunft/src/utils/gazData.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ import { getGazDataForTopicIds } from "react-cismap/tools/gazetteerHelper";
33

44
import { host } from "../constants/bplaene";
55

6+
export type ENDPOINT =
7+
| "adressen"
8+
| "aenderungsv"
9+
| "bezirke"
10+
| "bpklimastandorte"
11+
| "bplaene"
12+
| "ebikes"
13+
| "emob"
14+
| "geps"
15+
| "geps_reverse"
16+
| "kitas"
17+
| "prbr"
18+
| "no2"
19+
| "quartiere"
20+
| "pois";
21+
622
export const getGazData = async (setGazData) => {
723
const prefix = "GazData";
824
const sources: Partial<Record<ENDPOINT, string | null>> = {};

0 commit comments

Comments
 (0)