Altinn / Altinn/app-frontend-react

Map: Zoom property has no effect when geometries are present

Open
#4,257 4 comments 0 reactions 0 assignees View on GitHub
kind/feature-request squad/utforming
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

Setting the `zoom`-property on the Map-component does not affect the zoom level when there are geometries present on the map. The expected behaviour is that the zoom can be set regardless of other properties on the map.

### Steps To Reproduce

1. Add a `Map` to the layout with both `geometries` and `zoom`.
2. Add geometries to the map (e.g. through data processing).
3. See that the zoom level does not affect the map.

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the Map component and reproduce the issue with both geometries and zoom configured. Trace how geometries affect the map's zoom level, then verify that the configured zoom is respected when geometries are present and that the existing reproduction steps no longer fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.