Skip to content

Commit

Permalink
BGDIINF_SB-3161 : constrains OL to only show map in LV95 extent
Browse files Browse the repository at this point in the history
  • Loading branch information
pakb committed Nov 8, 2023
1 parent 6ae1020 commit 1b136f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/map/components/openlayers/OpenLayersMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,17 @@ export default {
minResolution: VIEW_MIN_RESOLUTION,
rotation: this.rotation,
projection: WEBMERCATOR.epsg,
extent: LV95.getBoundsAs(WEBMERCATOR).flatten,
constrainOnlyCenter: true,
})
this.lv95View = new View({
zoom: this.zoom,
minResolution: VIEW_MIN_RESOLUTION,
rotation: this.rotation,
resolutions: LV95_RESOLUTIONS,
projection: LV95.epsg,
extent: LV95.bounds.flatten,
constrainOnlyCenter: true,
})
this.setCurrentMapViewAccordingToProjection()
Expand Down

0 comments on commit 1b136f9

Please sign in to comment.