add create map button to layer snippet
some minor adjustments