Make possible to set popupContentTemplate from layer