Skip to content

Fix: Geocoder pin should place location at the bottom#3421

Merged
igorDykhta merged 2 commits into
masterfrom
igr/fix-geocoder-pin-point-location
May 10, 2026
Merged

Fix: Geocoder pin should place location at the bottom#3421
igorDykhta merged 2 commits into
masterfrom
igr/fix-geocoder-pin-point-location

Conversation

@igorDykhta
Copy link
Copy Markdown
Collaborator

Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
@igorDykhta igorDykhta requested review from Copilot and lixun910 May 6, 2026 23:41
@igorDykhta igorDykhta self-assigned this May 6, 2026
@igorDykhta igorDykhta added the 3.3 Kepler.gl 3.3 release label May 6, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adjusts how the geocoder “place” pin icon is positioned so that its bottom tip (rather than its center) aligns with the searched geographic coordinate, addressing the visual offset described in #2401.

Changes:

  • Adds special-case icon-geometry anchoring for the geocoder layer so the place icon is anchored at its bottom.
  • Scales the anchored geometry and compensates by increasing the geocoder icon radius constant.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/layers/src/icon-layer/icon-layer.ts Adds a geocoder-layer-specific getIconGeometry wrapper to bottom-anchor (and scale) the place icon geometry before rendering.
src/constants/src/default-settings.ts Doubles GEOCODER_ICON_SIZE to compensate for the new geometry scaling.

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

Comment thread src/layers/src/icon-layer/icon-layer.ts Outdated
Comment thread src/constants/src/default-settings.ts
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
@igorDykhta igorDykhta merged commit df047a7 into master May 10, 2026
8 checks passed
@igorDykhta igorDykhta deleted the igr/fix-geocoder-pin-point-location branch May 10, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.3 Kepler.gl 3.3 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants