# open-ui5/open.ui5.google.maps.googlemap architecture

> Architecture diagram of the GitHub repository open-ui5/open.ui5.google.maps.googlemap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/open-ui5/open.ui5.google.maps.googlemap
- Repository: https://github.com/open-ui5/open.ui5.google.maps.googlemap

## Overview

This is a small SAPUI5 map-control library. A UI consumer configures GoogleMap with coordinates, zoom, size, and map type; the control initializes the Google Maps API and displays a map. Its address lookup geocodes a query, centers the map and places a marker, or fires a wrongAddress event. The map control and map-type constants are the only runtime components shown; the README provides no further capabilities. External API interactions are visible in the control source.

Main entry points: [`open/ui5/google/maps/GoogleMap.js`](https://github.com/open-ui5/open.ui5.google.maps.googlemap/blob/master/open/ui5/google/maps/GoogleMap.js) (GoogleMap control), [`open/ui5/google/maps/MapTypeId.js`](https://github.com/open-ui5/open.ui5.google.maps.googlemap/blob/master/open/ui5/google/maps/MapTypeId.js) (Map type constants)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_map_control["Map control"]
  node_google_map["GoogleMap control<br/>[GoogleMap.js]"]
  node_map_types["Map type constants<br/>[MapTypeId.js]"]
end

node_consumer(("UI consumer"))
node_google_maps["Google Maps API"]
node_map_display["Rendered map"]
node_wrong_address["Wrong-address event"]

node_consumer -->|"configures"| node_google_map
node_google_map -->|"uses defaults"| node_map_types
node_google_map -->|"loads and calls"| node_google_maps
node_google_map -->|"renders"| node_map_display
node_google_map -->|"geocodes address"| node_google_maps
node_google_map -->|"fires on failure"| node_wrong_address

click node_google_map "https://github.com/open-ui5/open.ui5.google.maps.googlemap/blob/master/open/ui5/google/maps/GoogleMap.js"
click node_map_types "https://github.com/open-ui5/open.ui5.google.maps.googlemap/blob/master/open/ui5/google/maps/MapTypeId.js"

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_google_map,node_map_types,node_consumer toneBlue
class node_google_maps toneMint
class node_map_display,node_wrong_address toneIndigo
```

## Components

### Map control

- [GoogleMap control](https://github.com/open-ui5/open.ui5.google.maps.googlemap/blob/master/open/ui5/google/maps/GoogleMap.js): `open/ui5/google/maps/GoogleMap.js`
- [Map type constants](https://github.com/open-ui5/open.ui5.google.maps.googlemap/blob/master/open/ui5/google/maps/MapTypeId.js): `open/ui5/google/maps/MapTypeId.js`

### Other components

- **UI consumer**
- **Google Maps API**
- **Rendered map**
- **Wrong-address event**

## Connections

- UI consumer → GoogleMap control: configures (evidence: `open/ui5/google/maps/GoogleMap.js`)
- GoogleMap control → Map type constants: uses defaults (evidence: `open/ui5/google/maps/GoogleMap.js`)
- GoogleMap control → Google Maps API: loads and calls (evidence: `open/ui5/google/maps/GoogleMap.js`)
- GoogleMap control → Rendered map: renders (evidence: `open/ui5/google/maps/GoogleMap.js`)
- GoogleMap control → Google Maps API: geocodes address (evidence: `open/ui5/google/maps/GoogleMap.js`)
- GoogleMap control → Wrong-address event: fires on failure (evidence: `open/ui5/google/maps/GoogleMap.js`)
