Skip to content

Use new mapbender core style utils for placeholder detection and external graphics style#161

Merged
Phocacius merged 2 commits into
developfrom
work/use-new-style-utils
Jul 20, 2026
Merged

Use new mapbender core style utils for placeholder detection and external graphics style#161
Phocacius merged 2 commits into
developfrom
work/use-new-style-utils

Conversation

@Phocacius

Copy link
Copy Markdown
Member

For mapbender/mapbender#1897, utilities used in the digitizer are now also used by the SearchRouter, they are therefore moved to the core repository. This PR introduces their usage to the digitizer to avoid code duplication.

@astroidex astroidex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested works fine

  • png/svg
  • placeholder
  • size

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Digitizer’s StyleAdapter to use the new Mapbender core utilities for data-placeholder detection/resolution and external-graphic (icon) styling, avoiding duplicated logic that was moved to the core repository (per mapbender/mapbender#1897).

Changes:

  • Replaced local placeholder detection/resolution helpers with Mapbender.StyleUtil.detectDataPlaceholders, getPlaceholderResolver, and resolvePlaceholders.
  • Replaced local external-graphic icon style creation/expansion with Mapbender.Util.ExternalGraphicUtil.getIconStyle.
  • Minor formatting adjustments in callback function spacing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Mapbender/DigitizerBundle/Resources/public/StyleAdapter.js Outdated
Comment thread src/Mapbender/DigitizerBundle/Resources/public/StyleAdapter.js
@Phocacius
Phocacius merged commit 59359b0 into develop Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants