How limegreentangerine/mapboxkit works
Mapbox for Concrete CMS provides two user-facing capabilities: an editable page map block and a PHP UK geocoding helper. Administrators save a public token in the dashboard; the block exposes it through an AJAX route and renders a configurable browser map. Geocoding queries Mapbox, filters low-confidence matches, and caches successful and no-match results. The graph uses README statements for documented browser and package workflows; unsampled subsystem details are not inferred.
Main entry points: Mapbox.php Geocoding helper · view.js Browser map · controller.php Block controller · mapbox.php Settings form
Components 18
Package settings
- Package controller
controller.php - Settings form
single_pages/dashboard/mapbox.php - Settings handler
controllers/single_pages/dashboard/mapbox.php - Package configuration
Map block
- Block editor
blocks/mapbox/form.php - Block controller
blocks/mapbox/controller.php - Marker records
blocks/mapbox/controller.php - Map view
blocks/mapbox/view.php - Browser map
blocks/mapbox/view.js - AJAX key route
src/Ajax/Mapbox.php
Geocoding
- Geocoding helper
src/Api/Mapbox.php - Geocode cache
src/Search/CachedGeocode.php - Mapbox logger
src/Log/MapboxLogger.php
Other components
- Site administrator
- Mapbox GL JS
- Site visitor
- PHP application
- Mapbox Geocoding API
Connections 17
- Site administrator → Settings form: configures token
README.md - Settings form → Settings handler: submits settings
single_pages/dashboard/mapbox.php - Settings handler → Package configuration: saves token
controllers/single_pages/dashboard/mapbox.php - Package controller → AJAX key route: registers route
controller.php - Package controller → Settings form: adds page
controller.php - Package configuration → AJAX key route: provides token
src/Ajax/Mapbox.php - Site visitor → Browser map: views map
README.md - Block editor → Block controller: submits settings
blocks/mapbox/controller.php - Block controller → Marker records: reads and writes
blocks/mapbox/controller.php - Block controller → Map view: sets map config
blocks/mapbox/controller.php - Map view → Browser map: renders map
README.md - Browser map → AJAX key route: requests token
README.md - Browser map → Mapbox GL JS: uses library
README.md - PHP application → Geocoding helper: calls helper
README.md - Geocoding helper → Geocode cache: reads and writes
src/Api/Mapbox.php - Geocoding helper → Mapbox Geocoding API: requests geocoding
src/Api/Mapbox.php - Geocoding helper → Mapbox logger: logs errors
src/Api/Mapbox.php