clamped 2D map
added some basic event drawing