support isShowLocation flag in template widget