merged with mapjs - removed internal events