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.

Directive outputs missing ((drag) and (dragStart) for agm-marker)

See original GitHub issue

Issue description Only the directive output (dragEnd) is working for agm-marker, not (drag) or (dragStart)

I noticed that in node_modules/@agm/core/directives/marker.d.js there is only dragEnd: EventEmitter<MouseEvent>; and not EventEmitters for drag and dragStart although they are in the documentation. Maybe not being compiled properly?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jczachariacommented, Mar 2, 2019

I figured it out. I had a difficult time installing this repo because it has failing tests… and I didn’t realize it.

In case anyone has issues with it: Clone the repo, then run npm install then npm run build and where ever it fails, just comment out the failing tests… so I guess another issue should be opened if not already that:

packages/js-marker-clusterer/services/managers/cluster-manager.spec.ts(221,53): error TS2322: Type 'Promise<{ setCalculator: Mock<any, any>; }>' is not assignable to type 'Promise<MarkerClustererInstance>'.
  Type '{ setCalculator: Mock<any, any>; }' is missing the following properties from type 'MarkerClustererInstance': zoomOnClick_, averageCenter_, imagePath_, minimumClusterSize_, and 20 more.
0reactions
jczachariacommented, Apr 13, 2019

@rapw3k, yes I did. So, any *.spec.ts is a unit test file. Therefore you don’t need it to compile the code. That error is just telling you that you have a failing unit test so you just need to comment them out to get the code to compile. Try commenting out everything describe('set calculator', () => { ... see how that works for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Directive outputs missing ((drag) and (dragStart) for agm ...
I noticed that in node_modules/@agm/core/directives/marker.d.js there is only dragEnd: EventEmitter<MouseEvent>; and not EventEmitters for drag ...
Read more >
AgmMarker - @agm/core
This event is fired when the user stops dragging the marker. dragStart. Type : EventEmitter<google.maps.MouseEvent>. Defined in packages/core/ ...
Read more >
Create a directive for free dragging in Angular - InDepth.Dev
In this article, we will learn how to create a directive in Angular that ... This will work as drag-start trigger. ... and...
Read more >
HTMLElement: dragstart event - Web APIs | MDN
In this example, we have a draggable element inside a container. Try grabbing the element, dragging it, and then releasing it.
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