Giter Club home page Giter Club logo

Comments (5)

neveldo avatar neveldo commented on May 18, 2024

Hello,

You could do something like this in order to add a callback function for the "click" event on your images :

var img = paper.image)(...);
$(img.node).on('click', function(e) {
    //...
});

from jquery-mapael.

diegodebonis avatar diegodebonis commented on May 18, 2024

Hi Nev i make this work, the solution you gave me work perfectly. Now i have another question, how can i do to delete the old images in the map once i want to update it?

from jquery-mapael.

neveldo avatar neveldo commented on May 18, 2024

Hi Diego,

I'm glad it helped you ! I'm working since the last weeks on the new version of Mapael that should be released in a few days. You will be able to add images as plotted points through mapael options, try the examples : http://jsfiddle.net/neveldo/z559d0s2/ , http://jsfiddle.net/neveldo/1jjq6g9y/ .

It allows you to delete images exactly like a plotted point in the 'update' event. Try it : http://jsfiddle.net/neveldo/v18j6L6d/ .

Feel free to download the dev-master version (https://github.com/neveldo/jQuery-Mapael/archive/master.zip) in order to use this feature before the release of mapael 1.0.0 !
The readme is already up-to-date with examples for all new features (https://github.com/neveldo/jQuery-Mapael), feel free to send me your feedbacks :)

from jquery-mapael.

diegodebonis avatar diegodebonis commented on May 18, 2024

Thanks for the quick answer, im going to try this with the new version.

Here the solution that i did (a little rusty yes xD) :

$(".map").find('image').remove();

from jquery-mapael.

Indigo744 avatar Indigo744 commented on May 18, 2024

Hey! It has been more than one year. I'm closing this thread. Feel free to submit a new issue if you have any problems.

from jquery-mapael.

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.