added drawmap internals