Don't hesitate to contact us

Contact us

..

Exception in template (Designs/Rapido/Paragraph/Maps.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.efbcbfcaddfcb.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> @functions { public string columnClass() { if (Model.Item.GetList("WidthMobile").SelectedValue == "hide"){ return "grid__col-lg-" + Model.Item.GetList("Width").SelectedValue + " grid__col-md-" + Model.Item.GetList("Width").SelectedValue + " grid__col-sm-" + Model.Item.GetList("Width").SelectedValue + " u-hidden-xs u-hidden-xxs"; } else { return "grid__col-lg-" + Model.Item.GetList("Width").SelectedValue + " grid__col-md-" + Model.Item.GetList("Width").SelectedValue + " grid__col-sm-" + Model.Item.GetList("Width").SelectedValue + " grid__col-xs-" + Model.Item.GetList("WidthMobile").SelectedValue; } } public string paddingClass() { if (Model.Item.GetBoolean("NoPadding")){ return "no-padding"; } else { return ""; } } } <div class="@columnClass() paragraph-container"> <h2>@Translate("Find us", "Find us")</h2> <div vocab="http://schema.org/" typeof="Place"> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"></script> <script type="text/javascript"> function initialize() { var myLatlng = new google.maps.LatLng(@Model.Item.GetGeolocation("Location").Latitude.ToString().Replace(",", "."), @Model.Item.GetGeolocation("Location").Longitude.ToString().Replace(",", ".")); var mapOptions = { zoom: 10, scrollwheel: false, draggable: false, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('mapCanvas'), mapOptions); var marker = new google.maps.Marker({ position: myLatlng, map: map, animation: google.maps.Animation.DROP, title: '@Translate("Find us", "Find us")' }); var contentString = '<div class="info-window-content"><h2><span property="name">@System.Web.HttpUtility.JavaScriptStringEncode(Model.Item.GetString("Title"))</span></h2>'+ '<p>@Model.Item.GetString("ShortInformation")</p></div>'; var infowindow = new google.maps.InfoWindow({ content: contentString }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); } google.maps.event.addDomListener(window, 'load', initialize); </script> <div vocab="http://schema.org/"> <div id="mapCanvas" class="google-map" style="height: 476px"></div> <div property="geo" typeof="GeoCoordinates"> <meta property="latitude" content="@Model.Item.GetGeolocation("Location").Latitude" /> <meta property="longitude" content="@Model.Item.GetGeolocation("Location").Longitude" /> </div> </div> </div> </div>

This website uses cookies to track your behavior and to improve your experience on the site

You can always delete saved cookies by visiting the advanced settings of your browser

Do not accept cookies Only accept functional cookies Accept all cookies