Skip to content

Map Editor in Portals - Part 3 - Save map configuration - #2910

Open
robyngit wants to merge 6 commits into
developfrom
feature-1995-map-editor-part3
Open

robyngit wants to merge 6 commits into
developfrom
feature-1995-map-editor-part3

Conversation

@robyngit

Copy link
Copy Markdown
Member

This PR saves the current Cesium map configuration when a portal is saved, replacing the placeholder that returned the original unchanged config.

  • Save current map settings, layers, layer categories, terrains, and viewfinder cards
  • Keep configured asset options, icons, and visibility without saving live map state or the temporary download polygon layer
  • Support viewfinder cards, including legacy zoom presets
  • Add tests for detailed map configs and portal XML save and reload

Part of #1995

@robyngit
robyngit added this pull request to stack #2895 September 24, 2026 22:39
@robyngit
robyngit requested a review from DarianGill September 24, 2026 22:40

@DarianGill DarianGill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me logically, but seeing as there aren't any updates to the actual editor, when I poked around on my local dev browser I wasn't able to confirm functionality interactively--I assume that'll come in part 4. I can confirm all 3057 tests pass and there are no glaring inconsistencies. Appreciate the additional attention to testing and internal viewfinderCard consitency.

Comment thread src/js/models/maps/Map.js
@robyngit
robyngit force-pushed the feature-1995-map-editor-part3 branch from 35c53e2 to 9982140 Compare September 29, 2026 13:35
Base automatically changed from feature-1995-map-editor-part2 to develop September 29, 2026 15:17
@robyngit
robyngit force-pushed the feature-1995-map-editor-part3 branch from 9982140 to 205db1b Compare September 29, 2026 15:18
- Keep original asset shortcut names, icon IDs, and config'ed cesium options.
- Ensure we exclude cesium model objects and other properties for interactive/display purposes
- Ensure CesiumVectorData doesn't replace the filter config with a filters collection before we can save the original configuration
- Add tests including one that verifies that complex configurations can round trip correctly

Issue #1995
- Serialize current map settings, layers, categories, and terrains
- Exclude temporary drawing assets and keep original viewfinder config for now
- Test map and portal configuration round trips

Issue #1995
- Serialize card categories, inline cards, and URL sources
- Save legacy presets under the current viewfinder keys
- Add tests for edits, reloads, and portal map config persistence

Issue #1995
- Save the original asset settings instead of changes made while the map is in use
- Leave out unused settings while preserving an explicitly disabled outline

Issue #1995
@robyngit
robyngit force-pushed the feature-1995-map-editor-part3 branch from 205db1b to 6d16762 Compare September 29, 2026 17:52

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants