Issue #679, get url for tiles at runtime

Issue #679, get url for tiles at runtime.