use MapLayerRegistry instead of mapCanvas to list layers