First implementation of mapcursor