toggling offline/online maps now reset the map layer due to leaflet tile caching