# ignf/gpu-entree-carto architecture

> Architecture diagram of the GitHub repository ignf/gpu-entree-carto, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ignf/gpu-entree-carto
- Repository: https://github.com/ignf/gpu-entree-carto
- Video tour (about a minute): https://gitdiagram.com/ignf/gpu-entree-carto/video

## Overview

entree-carto is a Vue/OpenLayers GPU urban-planning map, delivered both as a demo SPA and an embeddable library. The principal workflow takes a user from a map or location search to map navigation, layer/document selection, and parcel or territory information; users can also sketch or edit geometry and export print views. The README documents major integrations and standalone bundles. Some map and print internals are unsampled, so their links are included only where documented or directly referenced by indexed excerpts.

Main entry points: [`src/views/DemoView.vue`](https://github.com/ignf/gpu-entree-carto/blob/main/src/views/DemoView.vue) (Map view), [`src/components/map/SearchEngineControl.vue`](https://github.com/ignf/gpu-entree-carto/blob/main/src/components/map/SearchEngineControl.vue) (Map search), [`src/lib/mountSearchEngine.ts`](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/mountSearchEngine.ts) (Standalone search mount), [`src/composables/managedLayers.ts`](https://github.com/ignf/gpu-entree-carto/blob/main/src/composables/managedLayers.ts) (Layer manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_spa["Demo SPA routes<br/>[main.ts]"]
  node_map_view["Map view<br/>[DemoView.vue]"]
end

subgraph group_map["Map and layers"]
  node_map_shell["OpenLayers map<br/>[MapShell.vue]"]
  node_map_controls["Map controls"]
  node_layer_manager["Layer manager<br/>[managedLayers.ts]"]
  node_catalog["Document catalogue"]
  node_tab_panels["Side panels<br/>[tabPanels.ts]"]
end

subgraph group_search["Search and information"]
  node_search_control["Map search"]
  node_search_engine["Advanced search"]
  node_location_search["Location search<br/>[locationSearch.ts]"]
  node_geocode["Geocoding services<br/>[Geocode.ts]"]
  node_fiche_service["Parcel and territory info"]
  node_fiche_api["GPU fiche API<br/>[ficheInfoFetch.ts]"]
end

subgraph group_tools["Geometry tools"]
  node_geometry_editor["Geometry editor<br/>[GeometryEditor.ts]"]
  node_sketch_control["Sketch controls<br/>[SketchControl.ts]"]
  node_transform["Geometry transforms"]
  node_sketch_demo["Sketch bundle entry<br/>[index.ts]"]
end

subgraph group_integration["Embeds and export"]
  node_print_ui["Print workflow<br/>[MapPrintModal.vue]"]
  node_print_export["Map export<br/>[mapExport.ts]"]
  node_embed_viewer["Embedded map viewer<br/>[EmbedMapViewer.vue]"]
  node_standard_viewer["Viewer API"]
  node_standalone_search["Standalone search mount"]
end

node_user(("Map user"))

node_user -->|"opens app"| node_spa
node_spa -->|"routes to"| node_map_view
node_user -->|"uses map"| node_map_view
node_map_view -->|"renders"| node_map_shell
node_map_view -->|"renders"| node_map_controls
node_user -->|"searches"| node_search_control
node_map_controls -->|"includes"| node_search_control
node_search_control -->|"uses"| node_search_engine
node_search_control -->|"resolves location"| node_location_search
node_search_control -->|"loads fiche"| node_fiche_service
node_user -.->|"requests location"| node_geocode
node_user -->|"selects layers"| node_layer_manager
node_map_view -->|"uses"| node_layer_manager
node_layer_manager -->|"reads configuration"| node_catalog
node_map_view -->|"uses"| node_tab_panels
node_fiche_service -->|"fetches data"| node_fiche_api
node_user -->|"edits geometry"| node_geometry_editor
node_geometry_editor -->|"uses"| node_sketch_control
node_user -->|"opens sketch tools"| node_sketch_demo
node_sketch_demo -->|"mounts"| node_sketch_control
node_sketch_control -.->|"supports transforms"| node_transform
node_user -->|"prints map"| node_print_ui
node_print_ui -.->|"exports map"| node_print_export
node_user -->|"embeds map"| node_embed_viewer
node_user -->|"configures viewer"| node_standard_viewer
node_user -->|"mounts search"| node_standalone_search
node_standalone_search -->|"creates"| node_search_engine
node_standalone_search -->|"handles results"| node_location_search

click node_spa "https://github.com/ignf/gpu-entree-carto/blob/main/src/main.ts"
click node_map_view "https://github.com/ignf/gpu-entree-carto/blob/main/src/views/DemoView.vue"
click node_map_shell "https://github.com/ignf/gpu-entree-carto/blob/main/src/components/map/MapShell.vue"
click node_map_controls "https://github.com/ignf/gpu-entree-carto/tree/main/src/components/map"
click node_layer_manager "https://github.com/ignf/gpu-entree-carto/blob/main/src/composables/managedLayers.ts"
click node_catalog "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/layerConfig/documentCatalogStartup.ts"
click node_tab_panels "https://github.com/ignf/gpu-entree-carto/blob/main/src/composables/tabPanels.ts"
click node_search_control "https://github.com/ignf/gpu-entree-carto/blob/main/src/components/map/SearchEngineControl.vue"
click node_search_engine "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/search/createSearchEngineAdvanced.ts"
click node_location_search "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/search/locationSearch.ts"
click node_geocode "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/services/Geocode.ts"
click node_fiche_service "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/fiche/ficheInfoService.ts"
click node_fiche_api "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/fiche/ficheInfoFetch.ts"
click node_geometry_editor "https://github.com/ignf/gpu-entree-carto/blob/main/src/geometry-editor/GeometryEditor.ts"
click node_sketch_control "https://github.com/ignf/gpu-entree-carto/blob/main/src/geometry-editor/SketchControl.ts"
click node_transform "https://github.com/ignf/gpu-entree-carto/blob/main/src/geometry-editor/ModifyTransformController.ts"
click node_sketch_demo "https://github.com/ignf/gpu-entree-carto/blob/main/src/sketch/index.ts"
click node_print_ui "https://github.com/ignf/gpu-entree-carto/blob/main/src/components/map/MapPrintModal.vue"
click node_print_export "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/map/print/mapExport.ts"
click node_embed_viewer "https://github.com/ignf/gpu-entree-carto/blob/main/src/embed/EmbedMapViewer.vue"
click node_standard_viewer "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/createStandardViewer.ts"
click node_standalone_search "https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/mountSearchEngine.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_spa,node_map_view,node_user toneBlue
class node_map_shell,node_map_controls,node_layer_manager,node_catalog,node_tab_panels toneAmber
class node_search_control,node_search_engine,node_location_search,node_geocode,node_fiche_service,node_fiche_api toneMint
class node_geometry_editor,node_sketch_control,node_transform,node_sketch_demo toneRose
class node_print_ui,node_print_export,node_embed_viewer,node_standard_viewer,node_standalone_search toneIndigo
```

## Components

### Application shell

- [Demo SPA routes](https://github.com/ignf/gpu-entree-carto/blob/main/src/main.ts): `src/main.ts`
- [Map view](https://github.com/ignf/gpu-entree-carto/blob/main/src/views/DemoView.vue): `src/views/DemoView.vue`

### Map and layers

- [OpenLayers map](https://github.com/ignf/gpu-entree-carto/blob/main/src/components/map/MapShell.vue): `src/components/map/MapShell.vue`
- [Map controls](https://github.com/ignf/gpu-entree-carto/tree/main/src/components/map): `src/components/map`
- [Layer manager](https://github.com/ignf/gpu-entree-carto/blob/main/src/composables/managedLayers.ts): `src/composables/managedLayers.ts`
- [Document catalogue](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/layerConfig/documentCatalogStartup.ts): `src/lib/layerConfig/documentCatalogStartup.ts`
- [Side panels](https://github.com/ignf/gpu-entree-carto/blob/main/src/composables/tabPanels.ts): `src/composables/tabPanels.ts`

### Search and information

- [Map search](https://github.com/ignf/gpu-entree-carto/blob/main/src/components/map/SearchEngineControl.vue): `src/components/map/SearchEngineControl.vue`
- [Advanced search](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/search/createSearchEngineAdvanced.ts): `src/lib/search/createSearchEngineAdvanced.ts`
- [Location search](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/search/locationSearch.ts): `src/lib/search/locationSearch.ts`
- [Geocoding services](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/services/Geocode.ts): `src/lib/services/Geocode.ts`
- [Parcel and territory info](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/fiche/ficheInfoService.ts): `src/lib/fiche/ficheInfoService.ts`
- [GPU fiche API](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/fiche/ficheInfoFetch.ts): `src/lib/fiche/ficheInfoFetch.ts`

### Geometry tools

- [Geometry editor](https://github.com/ignf/gpu-entree-carto/blob/main/src/geometry-editor/GeometryEditor.ts): `src/geometry-editor/GeometryEditor.ts`
- [Sketch controls](https://github.com/ignf/gpu-entree-carto/blob/main/src/geometry-editor/SketchControl.ts): `src/geometry-editor/SketchControl.ts`
- [Geometry transforms](https://github.com/ignf/gpu-entree-carto/blob/main/src/geometry-editor/ModifyTransformController.ts): `src/geometry-editor/ModifyTransformController.ts`
- [Sketch bundle entry](https://github.com/ignf/gpu-entree-carto/blob/main/src/sketch/index.ts): `src/sketch/index.ts`

### Embeds and export

- [Print workflow](https://github.com/ignf/gpu-entree-carto/blob/main/src/components/map/MapPrintModal.vue): `src/components/map/MapPrintModal.vue`
- [Map export](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/map/print/mapExport.ts): `src/lib/map/print/mapExport.ts`
- [Embedded map viewer](https://github.com/ignf/gpu-entree-carto/blob/main/src/embed/EmbedMapViewer.vue): `src/embed/EmbedMapViewer.vue`
- [Viewer API](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/createStandardViewer.ts): `src/lib/createStandardViewer.ts`
- [Standalone search mount](https://github.com/ignf/gpu-entree-carto/blob/main/src/lib/mountSearchEngine.ts): `src/lib/mountSearchEngine.ts`

### Other components

- **Map user**

## Connections

- Map user → Demo SPA routes: opens app (evidence: `README.md`)
- Demo SPA routes → Map view: routes to (evidence: `src/main.ts`)
- Map user → Map view: uses map (evidence: `README.md`)
- Map view → OpenLayers map: renders (evidence: `src/views/DemoView.vue`)
- Map view → Map controls: renders (evidence: `src/views/DemoView.vue`)
- Map user → Map search: searches (evidence: `README.md`)
- Map controls → Map search: includes (evidence: `src/views/DemoView.vue`)
- Map search → Advanced search: uses (evidence: `src/components/map/SearchEngineControl.vue`)
- Map search → Location search: resolves location (evidence: `src/components/map/SearchEngineControl.vue`)
- Map search → Parcel and territory info: loads fiche (evidence: `src/components/map/SearchEngineControl.vue`)
- Map user → Geocoding services: requests location
- Map user → Layer manager: selects layers (evidence: `README.md`)
- Map view → Layer manager: uses (evidence: `src/views/DemoView.vue`)
- Layer manager → Document catalogue: reads configuration (evidence: `src/composables/managedLayers.ts`)
- Map view → Side panels: uses (evidence: `src/views/DemoView.vue`)
- Parcel and territory info → GPU fiche API: fetches data (evidence: `src/lib/fiche/ficheInfoService.ts`)
- Map user → Geometry editor: edits geometry (evidence: `README.md`)
- Geometry editor → Sketch controls: uses (evidence: `src/geometry-editor/index.ts`)
- Map user → Sketch bundle entry: opens sketch tools (evidence: `README.md`)
- Sketch bundle entry → Sketch controls: mounts (evidence: `src/sketch/index.ts`)
- Sketch controls → Geometry transforms: supports transforms
- Map user → Print workflow: prints map (evidence: `README.md`)
- Print workflow → Map export: exports map
- Map user → Embedded map viewer: embeds map (evidence: `README.md`)
- Map user → Viewer API: configures viewer (evidence: `README.md`)
- Map user → Standalone search mount: mounts search (evidence: `README.md`)
- Standalone search mount → Advanced search: creates (evidence: `src/lib/mountSearchEngine.ts`)
- Standalone search mount → Location search: handles results (evidence: `src/lib/mountSearchEngine.ts`)
