Move map URL generation in the tools