feat: Add custom icon support for document layer markers - #859
Conversation
PR Reviewer Guide 🔍(Review updated until commit 1bf03ed)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 1bf03ed Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit bda145c
Suggestions up to commit 76def1f
|
f993b42 to
bda145c
Compare
|
Persistent review updated to latest commit bda145c |
|
Persistent review updated to latest commit 1bf03ed |
95e6bc3 to
373d26d
Compare
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 2357698. ⛔ Hard block: Issues at High severity or above will block this PR from merging. The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
cc23ab4 to
af61359
Compare
Add the ability to style document layer points as icons instead of plain circle markers. Users can choose from built-in icons with customizable fill/outline colors and style (filled or outline), or upload their own SVG icons. Changes: - Add marker/icon toggle to document layer style panel - Add built-in icon set with color template system (FILL_COLOR, STROKE_COLOR) - Add icon picker component with built-in and custom tabs - Add custom SVG upload with client-side and server-side security validation - Add map-icon saved object type for persisting custom icons - Add CRUD API routes (POST, GET, DELETE) for custom icons - Update DocumentLayerFunctions to render icons via maplibre symbol layers - Extend DocumentLayerSpecification.style with markerType and iconConfig - Add unit tests for icon set, rendering logic, and saved object type Custom icons are stored as saved objects (shared across maps). When selected, the SVG is stored inline in the layer config so icons always render even if the saved object is later deleted. Signed-off-by: Heemin Kim <heemin@amazon.com>
Signed-off-by: Heemin Kim <heemin@amazon.com>
Description
Add the ability to style document layer points as icons instead of plain circle markers. Users can choose from built-in icons with customizable fill/outline colors and style (filled or outline), or upload their own SVG icons.
Changes:
Custom icons are stored as saved objects (shared across maps). When selected, the SVG is stored inline in the layer config so icons always render even if the saved object is later deleted.
Screen.Recording.2026-08-07.at.8.58.03.AM.mov
Issues Resolved
#568
#858
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.