In order to redraw T5.ImageAnnotation in a T5.MarkerLayer after having
updated their position. we needed to expose private markerUpdate
function like this:
diff --git a/dist/tile5.js b/dist/tile5.js
index e124999..546b9bd 100644
--- a/dist/tile5.js
+++ b/dist/tile5.js
@@ -5947,6 +5947,10 @@ T5.MarkerLayer = function(params) {
return animating ? 1 : 0;
},
+
+ update: function() {
+ markerUpdate();
+ },
add: add,
clear: clear,
And then call:
annotation.xy = new (T5.Geo.GeoVector)(new (T5.Geo.Position)(p.x, p.y));
map.markers.update();
We were wondering if there is a better way to do it ?
Here is a small demo to illustrate our point:
http://playground.mekensleep.com/~proppy/more-tile5hacking/
Jeremy