Git Product home page Git Product logo

Comments (5)

grantlucas avatar grantlucas commented on June 2, 2024

Hi there. If you are using the latest master, there have been some changes to marker event recently. To watch for a marker's dragend event, you need to use Angular's $on to add a listener.

$scope.$on('leafletDirectiveMarker.dragend', function(e, args) {
    // Args will contain the marker name and other relevant information
});

General format for any marker events is to add a listener with the name leafletDirectiveMarker.<event name>.

Let me know if that works out for you or if you need any help.

from angular-leaflet-directive.

grantlucas avatar grantlucas commented on June 2, 2024

Originally when marker events were added they used callbacks in the way you have it set up. That was dropped shortly after since there were issues. Using broadcast and event listeners is the more "proper" way to go about it so the change was made.

from angular-leaflet-directive.

houqp avatar houqp commented on June 2, 2024

+1 on what @grantlucas said :)

from angular-leaflet-directive.

samcfc avatar samcfc commented on June 2, 2024

Thanks, I'll try it and come back to you very soon.

Impressive reactivity, you made an awesome work here.

from angular-leaflet-directive.

samcfc avatar samcfc commented on June 2, 2024

Ok this works just fine, it seems that I don't handle some Angular basic concepts.

Thanks for your time, I am going back to integrate the markercluster plugin in the directive or at least try :).

from angular-leaflet-directive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.