Optimize map drawing.