Skip to content

Commit

Permalink
Merge pull request #576 from aranaravi/develop
Browse files Browse the repository at this point in the history
[MOSIP-27934]Map blurred upon zoom is fixed
  • Loading branch information
aranaravi authored Nov 15, 2023
2 parents 53957b0 + a83c112 commit 3063ecc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions resident-ui/src/app/feature/booking/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,19 @@ export class MapComponent implements OnInit {

this.view = new OlView({
center: fromLonLat(this.lonLat),
zoom: 14
zoom: 14, // Set the zoom level manually
maxZoom: 12,
minZoom: 5,
zoomControl: false,
scaleControl: false,
scrollwheel: false,
});

this.map = new OlMap({
target: 'map',
// Added both layers
layers: [this.tileLayer, this.vectorLayer],
view: this.view
view: this.view,
});
}

Expand Down

0 comments on commit 3063ecc

Please sign in to comment.