Comments (5)
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.
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.
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.
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.
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)
- How to get zoom level when you click zoom buttons or mousewheel
- GetCoords function not working properly, what I'm doing wrong?
- How does Event afterZoom works?
- multiple_legends_plotted_cities.html with just one state (Maine)
- Map of a Mexico state divided in munipies
- change the map into dotted map.
- Resize the Map by Inkscape
- How to change color of all areas in a row in jquery HOT 1
- getCoord HOT 2
- attrs text-anchor HOT 2
- Allow click in tooltip content HOT 3
- GetCoords and Mercator Projection ? HOT 2
- dynamic value for areas
- Mouseover issues
- Overflow in horizontal legends
- zoom in mousewheele
- mobile hover problem
- Hongkong and Singapore is not shown in world map.
- French Guiana !== France
- My Map is Coming upside down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-mapael.