TapMarker Bug+Solution in v0.9.4

2 views
Skip to first unread message

Saeed Zareian

unread,
Aug 10, 2011, 6:24:40 AM8/10/11
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 ;)
Reply all
Reply to author
Forward
0 new messages