# Controlling Map Scrolling

You have three options for map scrolling:

1. never automatically scroll the map,
2. automatically scroll the map but stop at the map edges, and
3. scroll the map an allow the edge of the map to be displayed.

The first is possibly the easiest since you don't need to use a ScrollingManager layer. You simple call map.set_view(x, y, w, h) on your map layer giving the bottom-left corner coordinates and the dimensions to display. This could be as simple as:

    map.set_view(0, 0, map.px_width, map.px_height)

If you wish to have the map scroll around in response to player movement the ScrollingManager from the cocos.scrolling module may be used.