question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dragEnd event on agm-map?

See original GitHub issue

Hi all. How can i catch dragEnd event on map such as: <agm-map (dragend)="mapDragEnd($event)"></agm-map> Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
seblemeurcommented, Jul 10, 2018

For now, I did like that, no bug :

your.component.html :

<agm-map [latitude]="10" [longitude]="12" [zoom]="3" (mapReady)="mapReady($event)">
</agm-map>

your.component.ts :

mapReady(map) {
    this.map = map;

    var that = this;
    this.map.addListener("dragend", function () {
      //do what you want
    });
}
6reactions
svetoslavhsavovcommented, Jun 19, 2018

Hello, Is the dragend event turned on ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

dragEnd event on agm-map? · Issue #1092 - GitHub
Hi all. How can i catch dragEnd event on map such as: <agm-map (dragend)="mapDragEnd($event)"></agm ...
Read more >
agm marker Agm-marker dragEnd event is not returning ...
I think that in the new versions of Angular in order to have the coordinates you want, you have to do something like...
Read more >
Developers - dragEnd event on agm-map? - - Bountysource
Hi all. How can i catch dragEnd event on map such as: <agm-map (dragend)="mapDragEnd($event)"></agm-map> Thanks. See More. View in GitHub. SOLVE ISSUE.
Read more >
Getting a marker's position on 'dragend' event - Google Groups
Hi there, I'm trying to allows users to drag a marker to fine tune their location, however I'm having difficulty getting at the...
Read more >
AgmMarker - @agm/core
dragEnd. Type : EventEmitter<google.maps.MouseEvent>. Defined in packages/core/src/lib/directives/marker.ts:139. This event is fired when the user stops ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found