still not solved and is it possible if onmarkerhit can work on this code?
local spots = {
{ 2487.6398925781, -1666.7453613281, 13.34375 },
{ 2487.6398925781, -1666.7453613281, 13.34375 }
}
for k,v in ipairs( spots ) do
createMarker ( v[1],v[2],v[3], kind, size, r, g, b, a )
end