Saeed Zareian
unread,Aug 10, 2011, 6:24:40 AM8/10/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tile5
Hi everyone,
If you use the zoomify plugin in your map, and the user pan or zoom
the map, the tapmarker event doesn't work.
So, Here is the solution to fix:
change the hitTest to this code:
hitTest: function(testX, testY) {
var bounding= parent.getBoundingBox();
return (testX>= boundsX- bounding.minx ) && (testX <=
boundsX + boundsWidth-bounding.minx ) &&
(testY-20 >= boundsY -bounding.miny) && (testY-20 <=
boundsY + boundsHeight-bounding.miny);
},
the "20" , was for my map working., if the code doesn't work for you,
just remove it!
I hope this help you ;)