We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1227c9 commit 2b6a6e7Copy full SHA for 2b6a6e7
geo_json/render_geojson.tsx
@@ -0,0 +1,16 @@
1
+import assam_geojson from "./assam_geojson";
2
+import assam_revenue_circle from "./assam_revenue_circle";
3
+
4
+// Define a mapping of chart types to GeoJSON data
5
+const geojsonMapping: { [key: string]: any } = {
6
+ 'assam_district': assam_geojson,
7
+ 'assam_rc': assam_revenue_circle,
8
+ // Add more mappings as needed
9
+};
10
11
+// Function to render the appropriate GeoJSON based on chartType
12
+export const renderGeoJSON = (chartType: string): any => {
13
+ console.log(chartType);
14
15
+ return geojsonMapping[chartType.toLowerCase()] ;
16
0 commit comments