Tiles are drawn properly on map now. Search function working too.