Error executing template "Designs/Grundsalg/_parsed/town.parsed.cshtml"
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at RKSK.Api.GroundSaleUtility.GetJson(String uriString) in C:\Dynamicweb\ftp-deployment\rksk.dk\CustomModules\RKSK\Api\GroundSaleUtility.cs:line 61
   at CompiledRazorTemplates.Dynamic.RazorEngine_a788af924b5844b98d0ddd490d587922.Execute() in E:\dynamicweb.net\Solutions\rksk.net.dynamicweb-cms.com\Files\Templates\Designs\Grundsalg\_parsed\town.parsed.cshtml:line 205
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System; 3 @using System.Web; 4 @using System.Linq; 5 @using Dynamicweb.Rendering; 6 7 8 @{ 9 bool isCommercialArea = GetGlobalValue("Global:Page.Top.ID") == "20101"; 10 string logoLink = isCommercialArea ? "/Default.aspx?ID=20101" : "/Default.aspx?ID=14315"; 11 bool gisActive = RKSK.Api.GroundSaleUtility.ServiceActive("https://gisext.rksk.dk/arcgis/rest/services/Temaer/MapServer/2/query?f=pjson"); 12 if (!gisActive) 13 { 14 string htmlError = "<div style='padding: 10px; font-size: 20px; font-weight:bold;'>Der er problemer med at indhente boliger lige nu. Vi arbejder p&aring; sagen!<br>Pr&oslash;v igen om 5 minutter.<p>"; 15 HttpContext.Current.Response.Flush(); 16 HttpContext.Current.Response.Write(htmlError); 17 HttpContext.Current.Response.End(); 18 } 19 } 20 21 @using System.IO; 22 @using System.Web; 23 24 @functions { 25 string GetImageUrl(string url, int width = 200, int height = 200){ 26 if (string.IsNullOrWhiteSpace(url)){ 27 url = string.Format("http://placehold.it/{0}x{1}", width, height); 28 } 29 else 30 { 31 url = url.Replace("http://rksk.dk", ""); 32 url = url.Replace("https://rksk.dk", ""); 33 } 34 35 if (!url.StartsWith("http://")){ 36 url = string.Format("/Admin/Public/GetImage.ashx?Image={0}&width={1}&height={2}", url, width, height); 37 } 38 return url; 39 } 40 41 42 string GetRandomImage(string path){ 43 44 string file = ""; 45 if (!string.IsNullOrEmpty(path)){ 46 var extensions = new string[] { ".png", ".jpg", ".gif" }; 47 try{ 48 var di = new DirectoryInfo(HttpContext.Current.Request.MapPath(path)); 49 50 var rgFiles = di.GetFiles("*.*").Where( f => extensions.Contains( f.Extension.ToLower())); 51 Random R = new Random(); 52 file = rgFiles.ElementAt(R.Next(0,rgFiles.Count())).FullName; 53 } 54 catch {} 55 } 56 57 string replace_file_root = System.Web.HttpContext.Current.Server.MapPath("/files"); 58 string file_replaced_root = file.Replace(replace_file_root, "/Files"); 59 60 string replace_slash = @"\"; 61 string file_replaced = file_replaced_root.Replace(replace_slash, "/"); 62 63 return file_replaced; 64 } 65 66 string GetTopImagePath(int pageid){ 67 68 string folder = "Borger"; 69 switch (pageid){ 70 case 74: 71 folder = "Erhverv"; 72 break; 73 case 76: 74 folder = "OmKommunen"; 75 break; 76 } 77 78 return folder; 79 } 80 81 } 82 83 <!DOCTYPE html> 84 <html lang="da"> 85 <head> 86 <meta http-equiv="content-type" content="text/xhtml; charset=utf-8"> 87 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> 88 89 @if (HttpContext.Current.Request.Url.Host.Contains(".rksk.vjm.dk")) 90 { 91 <meta name="robots" content="noindex,nofollow"> 92 } 93 94 <title>@GetValue("Title")</title> 95 @GetValue("MetaTags") 96 @GetValue("CopyRightNotice") 97 98 99 100 <script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" data-culture="DA" type="text/javascript"></script> 101 102 <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> 103 <link href='https://fonts.googleapis.com/css?family=Bitter:400,700' rel='stylesheet' type='text/css'> 104 <link href='/Files/Templates/Designs/Grundsalg/css/styles.css?v=2' rel='stylesheet' type='text/css'> 105 <link href="/Files/Templates/Designs/rksk/favicon.ico" type="image/x-icon" rel="icon"> 106 <link href="/Files/Templates/Designs/rksk/favicon.ico" type="image/x-icon" rel="shortcut icon"> 107 108 @RenderSnippet("Links") 109 @RenderSnippet("Metas") 110 111 <!--[if lt IE 9]> 112 <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> 113 <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.js"></script> 114 <![endif]--> 115 116 @GetValue("Stylesheets") 117 @GetValue("Javascripts") 118 </head> 119 <body> 120 121 <nav class="nav--jump" aria-label="Genveje til indhold" title="Genveje til indhold"> 122 <ul> 123 <li> 124 <a href="#leftMenu" title="Spring til sidens menu" accesskey="1" class=""> 125 Navigation 126 </a> 127 </li> 128 <li> 129 <a href="#Indhold" title="Spring til indhold på siden" accesskey="2" class=""> 130 Indhold 131 </a> 132 </li> 133 </ul> 134 </nav> 135 136 <div class="site--topbar clearfix"> 137 <div class="container"> 138 <nav class="nav nav--topbar clearfix" aria-label="Privat eller erhverv grundsalg genveje"> 139 <ul> 140 <li><a href="/" title="Gå til privat grundsalg" class="@if(!isCommercialArea) { <text>active</text> }">Boliggrunde</a></li> 141 <li><a href="/Default.aspx?ID=20101" title="Gå til erhverv grundsalg" class="@if(isCommercialArea) { <text>active</text> }">Erhvervsgrunde</a></li> 142 </ul> 143 </nav> 144 </div> 145 </div> 146 147 <header class="site--header"> 148 <section class="container" aria-label="logo og hovednavigation"> 149 150 <a href="@logoLink" title="Gå til forside" aria-label="Logo desktop/tablet" class="site--logo hidden-xs hidden-sm"> 151 <img src="/Files/Templates/Designs/Grundsalg/img/logo_naturens_rige.png" alt="Logo Ringkøbing Skjern Kommune"> 152 </a> 153 154 155 <a href="@logoLink" title="Gå til forside" aria-label="Logo mobil" class="site--logo site--logo-mobile visible-xs visible-sm"> 156 <img src="/Files/Templates/Designs/Grundsalg/img/logo_stripped.png" alt="Logo Ringkøbing Skjern Kommune" width="50px"> 157 </a> 158 159 <div class="visible-xs visible-sm"> 160 <a id="DropdownMenu" class="nav-button" href="#"> 161 <span class="nav-button-icon">&#9776; Menu</span> 162 </a> 163 </div> 164 165 <nav aria-label="Hoved menu"> 166 @if (isCommercialArea) 167 { 168 @GetValue("DwNavigation(MainNavigationErhverv)") 169 } 170 else 171 { 172 @GetValue("DwNavigation(MainNavigation)") 173 174 } 175 </nav> 176 </section> 177 </header> 178 179 <div role="main" aria-label="Sidens indhold"> 180 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 181 @using System; 182 @using Dynamicweb.Rendering; 183 184 185 186 @{ 187 string pageName = GetString("DwPageName"); 188 189 //get all areas from DW 190 IEnumerable<Dynamicweb.Content.Page> areas = RKSK.Api.Page.GetPagesByParentID(GetInteger("DwPageID")); 191 192 //get area json data 193 string whereGisArea = ""; 194 if (!isCommercialArea) 195 { 196 whereGisArea = @"where=""Bynavn""=%27{0}%27 AND ""Paa_web""=%27JA%27"; 197 } 198 else 199 { 200 whereGisArea = @"where=""Bynavn""=%27{0}%27 AND ""Paa_web_erhverv""=%27JA%27"; 201 } 202 203 string whereGisWithArea = String.Format(whereGisArea, pageName); 204 string urlGisArea = String.Format("https://gisext.rksk.dk/arcgis/rest/services/GISext_registrering/MapServer/18/query?{0}&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=25832&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=25832&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&f=pjson", whereGisWithArea); 205 dynamic areasJson = RKSK.Api.GroundSaleUtility.GetJson(urlGisArea); 206 207 //get attributes for area 208 dynamic areaJsonAttributes = null; 209 foreach (var area in areas) 210 { 211 foreach (var features in areasJson.features) 212 { 213 if (features.attributes != null && area.Item["Omraadenr"] != null) 214 { 215 if (area.Item["Omraadenr"].ToString() == features.attributes.Omraadenr.ToString() && pageName == features.attributes.Bynavn.ToString()) 216 { 217 areaJsonAttributes = features.attributes; 218 break; 219 } 220 } 221 } 222 } 223 224 //get town jason data 225 string whereGisTown = @"where=""By_navn""=%27{0}%27"; 226 string whereGisWithTown = String.Format(whereGisTown, pageName); 227 string urlGisTown = String.Format("https://gisext.rksk.dk/arcgis/rest/services/GISext_registrering/MapServer/20/query?{0}&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=25832&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=25832&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&queryByDistance=&returnExtentsOnly=false&datumTransformation=&parameterValues=&rangeValues=&f=pjson", whereGisWithTown); 228 dynamic townsJson = RKSK.Api.GroundSaleUtility.GetJson(urlGisTown); 229 230 //get attributes for town 231 dynamic townJsonAttributes = null; 232 foreach (var features in townsJson.features) 233 { 234 if (features.attributes != null) 235 { 236 if (pageName == features.attributes.By_navn.ToString()) 237 { 238 townJsonAttributes = features.attributes; 239 break; 240 } 241 } 242 } 243 244 //get plots from area to get cheapest price 245 string urlGisPlots = "https://gisext.rksk.dk/arcgis/rest/services/Temaer/MapServer/2/query?where=%22grund_type_kode%22=1%20and%20ADRESSE+is+not+Null&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=25832&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=25832&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&f=pjson"; 246 dynamic plotsJson = RKSK.Api.GroundSaleUtility.GetJson(urlGisPlots); 247 248 //get cheapest from price 249 int fromPrice = 9999999; 250 foreach (var features in plotsJson.features) 251 { 252 foreach (var area in areas) 253 { 254 if (area.Item["Omraadenr"].ToString() == features.attributes.Omraadenr.ToString()) 255 { 256 if (features.attributes.pris != null) 257 { 258 int price; 259 if (Int32.TryParse(features.attributes.pris.ToString(), out price)) 260 { 261 if (price > 0 && price < fromPrice) 262 { 263 fromPrice = price; 264 } 265 } 266 } 267 268 } 269 } 270 } 271 272 //init lat converter 273 var LatLngUTMConverter = new RKSK.Api.LatLngUTMConverter(""); 274 275 276 } 277 278 @if (areaJsonAttributes != null && townJsonAttributes != null) 279 { 280 281 //set toppicture 282 string dronePhoto = townJsonAttributes.Url_By_Dronefoto; 283 string townPhoto = townJsonAttributes.Url_By_Bylivfoto; 284 string topPhoto = "/Files/Templates/Designs/Grundsalg/img/area_picture.jpg"; 285 if (!String.IsNullOrEmpty(dronePhoto)) 286 { 287 topPhoto = dronePhoto; 288 } 289 else if (!String.IsNullOrEmpty(townPhoto)) 290 { 291 topPhoto = townPhoto; 292 } 293 294 //get town from postalcode 295 RKSK.Api.PostalCode townByPostalCode = null; 296 string townByPostalCodeString = null; 297 if (!String.IsNullOrEmpty(areaJsonAttributes.Postnr.ToString())) 298 { 299 townByPostalCode = RKSK.Api.PostalCode.GetPostalCode(areaJsonAttributes.Postnr.ToString()); 300 townByPostalCodeString = townByPostalCode.Town; 301 } 302 303 304 <div class="plot__area"> 305 <div class="hidden-xs"> 306 <div class="plot__area__toppicture" style="background-image: url(@topPhoto)"> 307 <div class="container plot__area__toppicture__content"> 308 <div class="plot__area__toppicture__content__info"> 309 <div class="plot__area__toppicture__content__info__area">@pageName</div> 310 <div class="plot__area__toppicture__content__info__zip">@areaJsonAttributes.Postnr @townByPostalCodeString</div> 311 <hr class="plot__area__toppicture__content__seperator"> 312 <div class="plot__area__toppicture__content__info__teaser">@townJsonAttributes.By_beskrivelse_kort</div> 313 </div> 314 315 </div> 316 </div> 317 318 <div class="site--breadcrumb" role="navigation" aria-label="Brødkrummesti"> 319 <div class="container"> 320 <div class="row"> 321 <div class="col-xs-12"> 322 @if (!string.IsNullOrEmpty(GetString("DwNavigation(navbreadcrumb)"))) 323 { 324 <div class="site--breadcrumb-hometext">Du er her:</div> 325 @GetValue("DwNavigation(navbreadcrumb)") 326 } 327 </div> 328 </div> 329 </div> 330 </div> 331 332 <div class="plot__area__map__container"> 333 <div class="container"> 334 <div class="row"> 335 <div class="col-xs-12"> 336 <div class="plot__area__map__areas"> 337 <div class="plot__area__map__areas__header"> 338 Alle områder 339 </div> 340 <ul class="plot__area__map__areas__list" id="leftMenu"> 341 342 @foreach (var features in areasJson.features) 343 { 344 string url = ""; 345 string parcelPageName = ""; 346 foreach (var area in areas) 347 { 348 if (area.Item["Omraadenr"].ToString() == features.attributes.Omraadenr.ToString()) 349 { 350 url = "/Default.aspx?ID=" + area.ID; 351 parcelPageName = area.MenuText; 352 } 353 } 354 355 if (String.IsNullOrEmpty(url)) 356 { 357 continue; 358 } 359 360 <li> 361 <a href="@url" title="Gå til område: @parcelPageName">@parcelPageName</a> 362 </li> 363 364 } 365 </ul> 366 </div> 367 <div id="map" class="plot__area__map"></div> 368 <div id="polygon_tooltip" style="display:none;padding: 10px; font-weight: bold;position:absolute;right:70px; top: 10px; background: #FFF; text-align: center;"></div> 369 </div> 370 </div> 371 </div> 372 </div> 373 </div> 374 <div class="visible-xs" hidden="" aria-hidden="true"> 375 <div class="plot__area__toppicture" style="background: url(/Files/Templates/Designs/Grundsalg/img/area_picture.jpg) center"> 376 377 </div> 378 <div class="container plot__area__toppicture__content"> 379 <div class="plot__area__toppicture__content__info"> 380 <div class="plot__area__toppicture__content__info__area">@pageName</div> 381 <div class="plot__area__toppicture__content__info__zip">@areaJsonAttributes.Postnr @pageName</div> 382 <hr class="plot__area__toppicture__content__seperator"> 383 <div class="plot__area__toppicture__content__info__teaser">@townJsonAttributes.By_beskrivelse_kort</div> 384 </div> 385 386 </div> 387 <div class="container"> 388 <div class="row"> 389 <div class="col-xs-12"> 390 <div class="plot__area__map__container"> 391 <div class="plot__area__map__areas"> 392 <ul class="plot__area__map__areas__list" id="leftMenu"> 393 @foreach (var features in areasJson.features) 394 { 395 string url = ""; 396 string parcelPageName = ""; 397 foreach (var area in areas) 398 { 399 if (area.Item["Omraadenr"].ToString() == features.attributes.Omraadenr.ToString()) 400 { 401 url = "/Default.aspx?ID=" + area.ID; 402 parcelPageName = area.MenuText; 403 } 404 } 405 406 if (String.IsNullOrEmpty(url)) 407 { 408 continue; 409 } 410 411 <li> 412 <a href="@url" title="Gå til område: @parcelPageName">@parcelPageName</a> 413 </li> 414 415 } 416 </ul> 417 </div> 418 <div id="mapmobile" class="plot__area__map"></div> 419 </div> 420 </div> 421 </div> 422 </div> 423 </div> 424 <div class="plot__area__entries" id="Indhold"> 425 <div class="container"> 426 <h2 class="plot__area__entries__header">@townJsonAttributes.By_beskriv_1overskrift</h2> 427 <p class="plot__area__entries__action">@townJsonAttributes.By_beskriv_2overskrift</p> 428 <p class="plot__area__entries__text"> 429 @townJsonAttributes.By_beskrivelse_uddybende 430 </p> 431 432 433 434 @if (!isCommercialArea) 435 { 436 <hr class="plot__area__entries__seperator"> 437 <div class="row plot__area__entries__entry__wrapper"> 438 <div class="col-xs-4 col-md-2 plot__area__entries__entry"> 439 <span class="icon" aria-hidden="true" aria-label="Skoler">&#xf19c;</span> 440 <p>@townJsonAttributes.By_skole</p> 441 </div> 442 <div class="col-xs-4 col-md-2 plot__area__entries__entry"> 443 <span class="icon" aria-hidden="true" aria-label="Indkøbsmuligheder">&#xf07a;</span> 444 <p>@townJsonAttributes.By_indkoebsmulighed</p> 445 </div> 446 <div class="col-xs-4 col-md-2 plot__area__entries__entry"> 447 <span class="icon" aria-hidden="true" aria-label="Sportsfaciliteter">&#xf1e3;</span> 448 <p>@townJsonAttributes.By_sportsfaciliteter</p> 449 </div> 450 <div class="col-xs-4 col-md-2 plot__area__entries__entry"> 451 <span class="icon" aria-hidden="true" aria-label="Offentlig transport">&#xf207;</span> 452 <p>@townJsonAttributes.By_offentlig_transport</p> 453 </div> 454 <div class="col-xs-4 col-md-2 plot__area__entries__entry"> 455 <span class="icon" aria-hidden="true" aria-label="Natur">&#xf06c;</span> 456 <p>@townJsonAttributes.By_natur</p> 457 </div> 458 <div class="col-xs-4 col-md-2 plot__area__entries__entry"> 459 <span class="icon" aria-hidden="true" aria-label="Byliv">&#xf015;</span> 460 <p>@townJsonAttributes.By_byliv</p> 461 </div> 462 </div> 463 } 464 </div> 465 </div> 466 467 </div> 468 469 470 @SnippetStart("JavaScript") 471 472 <script src="https://maps.google.com/maps/api/js?key=AIzaSyAMvetR2U-TCjlHH7NqzCGGiO8WPxbY1eo" type="text/javascript"></script> 473 <script> 474 475 var paths = [ 476 @foreach (var features in areasJson.features) 477 { 478 string url = ""; 479 string parcelPageName = ""; 480 foreach (var area in areas) 481 { 482 if(area.Item["Omraadenr"].ToString() == features.attributes.Omraadenr.ToString()) 483 { 484 url = "/Default.aspx?ID="+ area.ID; 485 parcelPageName = area.MenuText; 486 } 487 } 488 489 if (String.IsNullOrEmpty(url)) 490 { 491 continue; 492 } 493 494 <text>{url: "@url",title: "@parcelPageName",</text> 495 if (features.geometry.rings != null) 496 { 497 <text>path: [</text> 498 foreach (var ring in features.geometry.rings[0]) 499 { 500 double utmLat = ring[0]; 501 double utmLong = ring[1]; 502 var latLng = LatLngUTMConverter.convertUtmToLatLng(utmLat, utmLong, 32, "N"); 503 <text> 504 {lat: @latLng.Lat.ToString().Replace(",","."), lng: @latLng.Lng.ToString().Replace(",", ".")}, 505 </text> 506 } 507 <text>]</text> 508 509 } 510 <text>},</text> 511 } 512 ]; 513 var map; 514 var mapMobile; 515 516 function initialize() { 517 518 var myOptions = { 519 center : {lat: 56.044689, lng: 8.50589}, 520 zoom : 10, 521 mapTypeControl : false, 522 scaleControl : false, 523 streetViewControl: false, 524 rotateControl : false, 525 mapTypeId : google.maps.MapTypeId.SATELLITE, 526 styles : [ 527 { 528 "featureType": "administrative", 529 "elementType": "labels.text.fill", 530 "stylers" : [ 531 { 532 "color": "#444444" 533 } 534 ] 535 }, 536 { 537 "featureType": "landscape", 538 "elementType": "all", 539 "stylers" : [ 540 { 541 "color": "#f2f2f2" 542 } 543 ] 544 }, 545 { 546 "featureType": "poi", 547 "elementType": "all", 548 "stylers" : [ 549 { 550 "visibility": "off" 551 } 552 ] 553 }, 554 { 555 "featureType": "road", 556 "elementType": "all", 557 "stylers" : [ 558 { 559 "saturation": -100 560 }, 561 { 562 "lightness": 45 563 } 564 ] 565 }, 566 { 567 "featureType": "road.highway", 568 "elementType": "all", 569 "stylers" : [ 570 { 571 "visibility": "simplified" 572 } 573 ] 574 }, 575 { 576 "featureType": "road.arterial", 577 "elementType": "labels.icon", 578 "stylers" : [ 579 { 580 "visibility": "off" 581 } 582 ] 583 }, 584 { 585 "featureType": "transit", 586 "elementType": "all", 587 "stylers" : [ 588 { 589 "visibility": "off" 590 } 591 ] 592 }, 593 { 594 "featureType": "water", 595 "elementType": "all", 596 "stylers" : [ 597 { 598 "color": "#46bcec" 599 }, 600 { 601 "visibility": "on" 602 } 603 ] 604 } 605 ] 606 }; 607 map = new google.maps.Map(document.getElementById("map"), myOptions); 608 mapMobile = new google.maps.Map(document.getElementById("mapmobile"), myOptions); 609 bounds = new google.maps.LatLngBounds(); 610 var ploygon = setshape(map, paths); 611 var ploygonMobile = setshape(mapMobile, paths); 612 map.fitBounds(bounds); 613 mapMobile.fitBounds(bounds); 614 } 615 616 function setshape(map, paths) { 617 $.each(paths, function (count, pathInfo) { 618 var polyline = new google.maps.Polygon({ 619 path : pathInfo.path, 620 fillColor : '#00AA65', 621 fillOpacity : 0.7, 622 strokeColor : "#005331", 623 strokeOpacity: 0.2, 624 strokeWeight : 2, 625 url : pathInfo.url 626 }); 627 628 polyline.setMap(map); 629 630 google.maps.event.addListener(polyline, 'mouseover', function () { 631 this.setOptions({strokeOpacity: 1}); 632 $('#polygon_tooltip').html(pathInfo.title); 633 $('#polygon_tooltip').show(); 634 635 }); 636 google.maps.event.addListener(polyline, 'mouseout', function () { 637 this.setOptions({strokeOpacity: 0.2}); 638 $('#polygon_tooltip').html(""); 639 $('#polygon_tooltip').hide(); 640 }); 641 google.maps.event.addListener(polyline, 'click', function () { 642 window.location.href = this.url; 643 }); 644 for (var i = 0; i < pathInfo.path.length; i++) { 645 bounds.extend(pathInfo.path[i]); 646 } 647 }); 648 } 649 650 // Onload handler to fire off the app. 651 google.maps.event.addDomListener(window, "load", initialize); 652 </script> 653 654 655 <script> 656 /* 657 $('.owl-carousel').owlCarousel({ 658 margin : 10, 659 nav : true, 660 responsive: { 661 0 : { 662 items: 1 663 }, 664 600 : { 665 items: 3 666 }, 667 1000: { 668 items: 3 669 } 670 }, 671 navText : ['<span class="icon" aria-hidden="true" >&#xf0a8;</span>', '<span class="icon" >&#xf0a9;</span>'] 672 }); 673 */ 674 </script> 675 @SnippetEnd("JavaScript") 676 } 677 else 678 { 679 <p>By ikke fundet i feed.</p> 680 } 681 682 683 684 </div> 685 686 <footer class="site--footer-container"> 687 <section class="site--footer" aria-label="Kontakt og åbningstider"> 688 689 <div class="container"> 690 691 <div class="row"> 692 <div class="col-sm-4 col-xs-12"> 693 <div class="site--footer-content-container"> 694 <div class="row"> 695 <div class="site--footer-content col-md-12"> 696 @RenderParagraphContent(18971) 697 </div> 698 </div> 699 </div> 700 </div> 701 702 <div class="col-sm-4 col-xs-12"> 703 <div class="site--footer-content-container"> 704 <div class="row"> 705 <div class="site--footer-content col-md-12"> 706 @RenderParagraphContent(18972) 707 </div> 708 </div> 709 </div> 710 </div> 711 712 <div class="col-sm-4 col-xs-12"> 713 <div class="site--footer-content-container"> 714 <div class="row"> 715 <div class="site--footer-content col-md-12"> 716 @RenderParagraphContent(18973) 717 </div> 718 </div> 719 </div> 720 </div> 721 722 <div class="row"> 723 <div class="col-xs-12"> 724 <a href="https://www.rksk.dk/om-kommunen/organisation/databeskyttelse#accordion-8" title="Se privatlivspolitik gældende for www.rksk.dk og dens subdomæner" target="_blank">Privatlivspolitik gældende for www.rksk.dk og dens subdomæner</a><br> 725 <a href="https://www.rksk.dk/om-kommunen/organisation/databeskyttelse#accordion-7" title="Se kommunes cookiepolitik for www.rksk.dk og dens subdomæner" target="_blank">Kommunes cookiepolitik for www.rksk.dk og dens subdomæner</a> 726 </div> 727 </div> 728 </div> 729 730 </div> 731 732 </section> 733 </footer> 734 735 736 737 <div class="modal fade" id="sectionTypeModal" role="dialog" aria-labelledby="sectionTypeModalLabel" aria-modal="true" aria-hidden="true" tabindex="-1"> 738 <div class="modal-dialog"> 739 <div class="modal-content"> 740 <div class="site__sectiontype__container"> 741 <div class="h1" id="sectionTypeModalLabel"> 742 @GetString("Item.Area.ModalSectionTypeHeader") 743 </div> 744 <div class="site__sectiontype__content"> 745 @GetString("Item.Area.ModalSectionTypeContent") 746 </div> 747 <div class="site__sectiontype__buttons"> 748 <div class="row"> 749 <div class="col-sm-6"> 750 <a href="/" class="btn btn-block btn-primary" title="Gå til boliggrunde">Boliggrunde</a> 751 </div> 752 <div class="col-sm-6"> 753 <a href="/Default.aspx?ID=20101" class="btn btn-block site__sectiontype__buttons--blue" title="Gå til erhvervsgrunde">Erhvervsgrunde</a> 754 </div> 755 </div> 756 </div> 757 </div> 758 </div> 759 </div> 760 </div> 761 762 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> 763 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script> 764 <script type="text/javascript" src="/Files/Templates/Designs/Grundsalg/js/scripts.min.js?v=2"></script> 765 766 @RenderSnippet("JavaScript") 767 768 <script> 769 // INLINE SCRIPT FOR AT SIKRE OS AT REPONSIVE BREDDER OVERHOLDES PÅ WINDOWS PHONE. 770 // http://getbootstrap.com/getting-started/#support-ie10-width 771 if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 772 var msViewportStyle = document.createElement("style") 773 msViewportStyle.appendChild( 774 document.createTextNode( 775 "&#64;-ms-viewport{width:auto!important}" 776 ) 777 ) 778 document.getElementsByTagName("head")[0].appendChild(msViewportStyle) 779 } 780 </script> 781 782 <script type="text/javascript"> 783 window.addEventListener('CookieInformationConsentGiven', function (event) { 784 if (CookieInformation.getConsentGivenFor('cookie_cat_statistic')) { 785 /*<![CDATA[*/ 786 (function () { 787 var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; 788 sz.src = '//siteimproveanalytics.com/js/siteanalyze_2542.js'; 789 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); 790 })(); 791 /*]]>*/ 792 } 793 }, false); 794 </script> 795 </body> 796 </html></div>