using mapRenderer instead of canvas