Move mapOptions into initialization method to avoid errors on admin page (which does not use the map).