addmapControl() is invoked only once