Skip to content

Commit

Permalink
Merge pull request #34 from cphelefu/refactored-pr
Browse files Browse the repository at this point in the history
Refactored pr
  • Loading branch information
jolevesq authored Oct 2, 2024
2 parents 0687ef2 + 464d67a commit db84f61
Show file tree
Hide file tree
Showing 137 changed files with 353 additions and 388 deletions.
87 changes: 87 additions & 0 deletions docs/architecture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# GeoView Demo Architecture

## Overview

The GeoView Demo project is designed to showcase the capabilities of the GeoView library.
GeoViewDemo offers users the following functionalities;
- Ability to build and test their config files via a UI.
- A place to try GeoView API functions and see the code that triggers such functions.
This document provides an overview of the architecture, including the main components and their interactions.

![image](https://github.com/user-attachments/assets/b971db56-442c-4a90-987c-3204e5eed9ef)


## The UI Structure

The UI structure consists mainly of two sections. The map and the drawers sections.
The map basically renders the generated map.
The drawer consists of different tabs - each displaying information about the map or offering a way of manipulating the map.

## Folder Structure

The GeoView Demo project follows a structured layout to maintain clarity and organization. Below is an overview of the main folders and their purposes:

```
/geoview-demo
├── /docs
├── /src
│ ├── /components
│ ├── /providers
│ ├── /routes
│ └── /pages
│ └── /constants.ts
│ └── /types.ts
```

### /docs
- **Purpose**: Contains all the documentation related to the project, including architectural overviews, API documentation, and user guides.

### /src
- **Purpose**: The main source code of the project.
- **Subfolders**:
- **/components**: Contains React components used in the UI.
- **/routes**: Contains routes for the application. At the moment the application has only one route (/default); but can be expanded to add more routes.
- **/providers**: This folder containers all our providers used in the application.
- **/routes**: Pages associated with routes.

### /public
- **Purpose**: Static files that are publicly accessible, such as HTML templates, images, and other assets.

This folder structure promotes a clean separation of concerns, making the project easier to navigate and maintain.





































4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<link rel="icon" type="image/svg+xml" href="https://canadian-geospatial-platform.github.io/geoview/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://canadian-geospatial-platform.github.io/geoview/cgpv-main.js"></script>
<script src="https://canadian-geospatial-platform.github.io/geoview/public/cgpv-main.js"></script>
<title>GeoView Demo Page</title>
</head>
<body>
Expand Down
Binary file removed public/favicon.ico
Binary file not shown.
Binary file removed public/img/Check.png
Binary file not shown.
9 changes: 0 additions & 9 deletions public/img/GeoCaIcon.svg

This file was deleted.

Binary file removed public/img/Logo.png
Binary file not shown.
Binary file removed public/img/Marker.png
Binary file not shown.
Binary file removed public/img/guide/datatable/action_icon_filters.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/img/guide/datatable/column_action.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/datatable/column_hide_25.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/datatable/column_show.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/datatable/density.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/datatable/export.svg

This file was deleted.

Binary file removed public/img/guide/datatable/filter.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/img/guide/datatable/filter_clear_25.svg

This file was deleted.

Binary file removed public/img/guide/datatable/filter_open.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/img/guide/datatable/filter_toggle.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/datatable/filter_toggle_25.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/datatable/fullscreen.svg

This file was deleted.

Binary file removed public/img/guide/datatable/layer_features.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/img/guide/datatable/pin_left_25.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/datatable/pin_right_25.svg

This file was deleted.

Binary file removed public/img/guide/datatable/settings.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/img/guide/datatable/zoom.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/footer/back_arrow_30.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/img/guide/footer/back_arrow_50.svg

This file was deleted.

Binary file removed public/img/guide/footer/bar_chart.png
Binary file not shown.
Binary file removed public/img/guide/footer/chart.png
Binary file not shown.
Binary file removed public/img/guide/footer/chart1.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/chart_30.svg
Diff not rendered.
Binary file removed public/img/guide/footer/chart_x.png
Diff not rendered.
Binary file removed public/img/guide/footer/checkbox.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/data_table.svg
Diff not rendered.
Binary file removed public/img/guide/footer/datatable.png
Diff not rendered.
Binary file removed public/img/guide/footer/details.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/direction_arrow_30.svg
Diff not rendered.
Binary file removed public/img/guide/footer/eye.png
Diff not rendered.
Binary file removed public/img/guide/footer/eye_disabled.png
Diff not rendered.
Binary file removed public/img/guide/footer/eye_not_visible.png
Diff not rendered.
Binary file removed public/img/guide/footer/footer.png
Diff not rendered.
Binary file removed public/img/guide/footer/footer_tabs.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/forward_arrow_30.svg
Diff not rendered.
Binary file removed public/img/guide/footer/icon_multiple.png
Diff not rendered.
Binary file removed public/img/guide/footer/icon_single.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/layers_30.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/lock_30.svg
Diff not rendered.
Binary file removed public/img/guide/footer/pie_chart.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/play_arrow.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/play_arrow_30.svg
Diff not rendered.
Diff not rendered.
Binary file removed public/img/guide/footer/time_slider.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/time_slider_30.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/footer/view_25.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/geosearch/clear.svg
Diff not rendered.
Binary file removed public/img/guide/geosearch/geofilter_en.png
Diff not rendered.
Binary file removed public/img/guide/geosearch/geofilter_fr.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/geosearch/geolocator.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/geosearch/geolocator_20.svg
Diff not rendered.
Binary file removed public/img/guide/geosearch/searchbar_en.png
Diff not rendered.
Binary file removed public/img/guide/geosearch/searchbar_fr.png
Diff not rendered.
Binary file removed public/img/guide/geosearch/visiblemap_en.png
Diff not rendered.
Binary file removed public/img/guide/geosearch/visiblemap_fr.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/add_25.svg
Diff not rendered.
Binary file removed public/img/guide/layers/add_layer.png
Diff not rendered.
Binary file removed public/img/guide/layers/check.png
Diff not rendered.
Binary file removed public/img/guide/layers/details.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/details.svg
Diff not rendered.
Binary file removed public/img/guide/layers/group.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/group.svg
Diff not rendered.
Binary file removed public/img/guide/layers/highlight.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/highlight_60.svg
Diff not rendered.
Binary file removed public/img/guide/layers/opacity.png
Diff not rendered.
Binary file removed public/img/guide/layers/refresh.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/refresh_60.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/remove_25.svg
Diff not rendered.
Binary file removed public/img/guide/layers/settings.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/sort_25.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/table_view.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/table_view_60.svg
Diff not rendered.
Binary file removed public/img/guide/layers/view.png
Diff not rendered.
Binary file removed public/img/guide/layers/zoom.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/layers/zoom_60.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/attribute.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/chevron_left.svg
Diff not rendered.
Binary file removed public/img/guide/navigation/chevron_overview.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/chevron_up.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/crosshair.svg
Diff not rendered.
37 changes: 0 additions & 37 deletions public/img/guide/navigation/down_arrow_20.svg
Diff not rendered.
Binary file removed public/img/guide/navigation/enable.png
Diff not rendered.
Binary file removed public/img/guide/navigation/fix_north.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/fullscreen.svg
Diff not rendered.
Binary file removed public/img/guide/navigation/geolocation.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/geolocation.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/home.svg
Diff not rendered.
Binary file removed public/img/guide/navigation/keyboard_nav.png
Diff not rendered.
Binary file removed public/img/guide/navigation/map_info.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/minus.svg
Diff not rendered.
Binary file removed public/img/guide/navigation/overview.png
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/plus.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/up_arrow.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/navigation/up_arrow_20.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/sidebar/about.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/img/guide/sidebar/basemap.svg
Diff not rendered.
Loading

0 comments on commit db84f61

Please sign in to comment.