Beispiel #1
0
        /// <summary>
        /// Getting all Interactive Map component asigned in Sitecore on field (Interactive Maps)
        /// </summary>
        /// <returns>InteractiveMapList</returns>
        public IInteractive_Map InteractiveMaps()
        {
            IMvcContext      mvcContext      = _mvcContext();
            IInteractive_Map interactive_Map = mvcContext.GetDataSourceItem <IInteractive_Map>();

            return(interactive_Map ?? _interactive_Map);
        }
        /// <summary>
        /// Getting Interactive map points from sitecore and place it on the background image
        /// </summary>
        /// <returns></returns>
        public ActionResult InteractiveMaps()
        {
            IInteractive_Map interactive_Map = _mapRepository.InteractiveMaps();

            return(View($"{ViewPath}Map/InteractiveMap/_InteractiveMap.cshtml", interactive_Map));
        }
Beispiel #3
0
 public MapRepository(Func <IMvcContext> mvcContext, IInteractive_Map interactive_Map)
 {
     _interactive_Map = interactive_Map;
     _mvcContext      = mvcContext;
 }