optimize map drawing a bit