added functionality to set tile layer with url parameter;
added hash function