feat: add map layer with multi-provider support#113
Merged
liamwalder merged 8 commits intodevelopfrom Mar 30, 2026
Merged
Conversation
- Added caching headers to the geocoding API response for improved performance. - Updated MapSettings component to include new address search functionality with popover support. - Introduced new map settings options: scrollZoom, showNavControl, and showScaleBar. - Adjusted default map settings for better initial user experience. - Integrated server-side settings for Mapbox token retrieval in LayerRenderer and PageRenderer components.
- Updated MapSettings to include a ColorPicker for marker color selection. - Introduced debounced updates for latitude, longitude, and zoom changes to improve performance. - Adjusted default map settings to use markerColor instead of showMarker. - Integrated color variable resolution for marker colors in map rendering.
- Rename app ID to google-maps-embed for future JS API coexistence - Rename setting key to google_maps_embed_api_key - Rename env var to GOOGLE_MAPS_EMBED_API_KEY - Add Google Maps Embed API key resolution to editor init - Add Places API geocoding for Google provider - Debounce canvas height measurement to prevent scroll jumps
Closed
liamwalder
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a Map layer element supporting both Google Embedded Map and Mapbox providers, with address search, configurable zoom/style/marker, and a unified integrations page for API key management.
Changes
MapSettingspanel with provider selector, address search, zoom, style, and marker colormap-utils.tsfor iframe embed generation (Mapbox GL JS via srcDoc, Google Maps Embed API via src)map-server.tsfor server-side token resolution from env vars or app_settingsLayerRenderer(editor) andpage-fetcher(published pages)PageRendererfor SSRgoogle-maps-embedapp ID to allow future Google Maps JS API integrationTest plan