gmap onzoomchanged not fired

UI Components for Angular
Post Reply
VortexLWD
Posts: 7
Joined: 27 Sep 2019, 13:20

17 May 2021, 11:11

Hi. I noticed the event doesnt fire (using primeng 11.3.2). Is it fixed in 11.4.0? Thanks!

<p-gmap #gmap [style]="{'width':'100%','height':'540px'}"
[options]="options" [overlays]="overlays"
(onMapReady)="setMap($event)" (onMapClick)="handleMapClick($event)"
(onOverlayClick)="handleOverlayClick($event)"
(onZoomChanged)="zoomChanged($event)"
(onOverlayDragEnd)="handleDragEnd($event)"></p-gmap>

VortexLWD
Posts: 7
Joined: 27 Sep 2019, 13:20

18 May 2021, 06:38

Hi, new day = new round. I've looked at the TS file but couldnt find any errors (it should work!).

I found a workaround ... If I attach a handler myself (which has the same name!) it works ...Strange

setMap(event) {
this.map = event.map;
this.map.addListener("zoom_changed", () => {
this.getMapBounds();
});
}

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests