Need to bind map instance to calculateHeightmap method