add useful variables in toolService
add functions in toolService to manage tiles downloads in offline mode
during synchronization, download tiles
change tiles url if we are in mobile context