enforce map boundaries