Line 1: #pragma checksum "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5F5661B2B6D45EC38E8FD838687550F44450B0FF"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.WebPages.Html;
Line 24: using WebMatrix.Data;
Line 25: using WebMatrix.WebData;
Line 26: using Microsoft.Web.Helpers;
Line 27: using Microsoft.Web.WebPages.OAuth;
Line 28: using DotNetOpenAuth.AspNet;
Line 29:
Line 30:
Line 31: public class _Page_mapsnew_cshtml : System.Web.WebPages.WebPage {
Line 32:
Line 33: #line hidden
Line 34:
Line 35: public _Page_mapsnew_cshtml() {
Line 36: }
Line 37:
Line 38: protected System.Web.HttpApplication ApplicationInstance {
Line 39: get {
Line 40: return ((System.Web.HttpApplication)(Context.ApplicationInstance));
Line 41: }
Line 42: }
Line 43:
Line 44: public override void Execute() {
Line 45:
Line 46: #line 1 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 47:
Line 48: /**/
Line 49:
Line 50: /**/
Line 51:
Line 52: /**/
Line 53:
Line 54: /**/
Line 55: var swcheck = 0;
Line 56: var readerror = 0;
Line 57: //var checkbtn = Request["image"];
Line 58: if (Request.Form["submitbtn1"] == null && Request.Form["submitbtn2"] == null && Request.Form["submitbtn3"] == null)
Line 59: {
Line 60: swcheck = 4;
Line 61: }
Line 62: if (Request.Form["submitbtn3"] != null)
Line 63: {
Line 64: swcheck = 3;
Line 65: }
Line 66: if (Request.Form["submitbtn2"] != null)
Line 67: {
Line 68: swcheck = 2;
Line 69: }
Line 70: if (Request.Form["submitbtn1"] != null)
Line 71: {
Line 72: swcheck = 1;
Line 73: }
Line 74: //int.TryParse(swcheckint, out swcheck);
Line 75: var coordin = Request["recid"];
Line 76: var title = Request["desc"];
Line 77: if (string.IsNullOrWhiteSpace(coordin))
Line 78: {
Line 79: swcheck = 0;
Line 80: coordin = string.Empty;
Line 81: title = string.Empty;
Line 82: }
Line 83: var saveret = "0";
Line 84: var zoomlevel = "7";
Line 85: var coordout = "";
Line 86: string[] recfields = new string[] { string.Empty, string.Empty, string.Empty, string.Empty };
Line 87: string[] list = new string[] { "37.9861679,23.7371756" };
Line 88: string coorpoints = string.Empty;
Line 89: //string title = "";
Line 90: string wdate = "";
Line 91: //string emvadonlbl = "";
Line 92: var areanew = "";
Line 93: string coorpointsegsa = string.Empty;
Line 94: string center = "lat: 37.9861679,lng: 23.7371756";
Line 95: zoomlevel = "7";
Line 96: var datevalue = "";
Line 97: if (swcheck == 1)
Line 98: {
Line 99: coordout = Servercaller.ShowPolygon(coordin, title);
Line 100: if (!string.IsNullOrWhiteSpace(coordout))
Line 101: {
Line 102: recfields = coordout.Split(';');
Line 103: title = recfields[0];
Line 104: string lista = recfields[3];
Line 105: list = lista.Split('|');
Line 106: datevalue = recfields[1];
Line 107: var date1 = new DateTime(int.Parse(recfields[1].Substring(0, 4)), int.Parse(recfields[1].Substring(5, 2)), int.Parse(recfields[1].Substring(8, 2)));
Line 108: wdate = "" + date1.ToString("d-MMM-yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("el-GR")) + "";
Line 109: areanew = recfields[2];
Line 110:
Line 111: foreach (string coord in list)
Line 112: {
Line 113: var Latlng = coord.Substring(0, coord.IndexOf(',')) + "," + coord.Substring(coord.IndexOf(',') + 1);
Line 114: coorpoints = coorpoints + "[" + coord.Substring(0, coord.IndexOf(',')) + "," + coord.Substring(coord.IndexOf(',') + 1) + "],";
Line 115: string[] ll = Latlng.Split(',');
Line 116: var retegsa = Convertor.toEgsa(ll[0], ll[1]);
Line 117: coorpointsegsa = coorpointsegsa + "[" + retegsa[0] + "," + retegsa[1] + "],";
Line 118: }
Line 119: coorpoints = coorpoints.Remove(coorpoints.Length - 1);
Line 120: zoomlevel = "20";
Line 121: center = "lat: " + list[0].Substring(0, list[0].IndexOf(',')) + ", lng: " + list[0].Substring(list[0].IndexOf(',') + 1);
Line 122: }
Line 123: else
Line 124: {
Line 125: coordin = string.Empty;
Line 126: title = string.Empty;
Line 127: swcheck = 0;
Line 128: readerror = 1;
Line 129: }
Line 130: }
Line 131: if (swcheck == 2 || swcheck == 3 || swcheck == 4)
Line 132: {
Line 133: title = Request["desc"];
Line 134: var dateraw = Request["dateraw"];
Line 135: areanew = Request["arearaw"];
Line 136: var newlist = Request["wgsraw"];
Line 137: var newlist1 = newlist.Replace("),(", "|");
Line 138: var newlist2 = newlist1.Substring(1, newlist1.Length - 1);
Line 139: var newlist3 = newlist2.Substring(0, newlist2.Length - 1);
Line 140: list = newlist3.Split('|');
Line 141:
Line 142: datevalue = dateraw;
Line 143: var date1 = new DateTime(int.Parse(dateraw.Substring(0, 4)), int.Parse(dateraw.Substring(5, 2)), int.Parse(dateraw.Substring(8, 2)));
Line 144: wdate = "" + date1.ToString("d-MMM-yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("el-GR")) + "";
Line 145: //emvadonlbl = areanew.Replace('.', ',') + "τ.μ.";
Line 146: zoomlevel = "20";
Line 147: center = "lat: " + list[0].Substring(0, list[0].IndexOf(',')) + ", lng: " + list[0].Substring(list[0].IndexOf(',') + 1);
Line 148: coorpointsegsa = string.Empty;
Line 149: foreach (string coord in list)
Line 150: {
Line 151: var Latlng = coord.Substring(0, coord.IndexOf(',')) + "," + coord.Substring(coord.IndexOf(',') + 1);
Line 152: coorpoints = coorpoints + "[" + coord.Substring(0, coord.IndexOf(',')) + "," + coord.Substring(coord.IndexOf(',') + 1) + "],";
Line 153: string[] ll = Latlng.Split(',');
Line 154: var retegsa = Convertor.toEgsa(ll[0], ll[1]);
Line 155: coorpointsegsa = coorpointsegsa + "[" + retegsa[0] + "," + retegsa[1] + "],";
Line 156: }
Line 157: coorpoints = coorpoints.Remove(coorpoints.Length - 1);
Line 158: zoomlevel = "20";
Line 159: center = "lat: " + list[0].Substring(0, list[0].IndexOf(',')) + ", lng: " + list[0].Substring(list[0].IndexOf(',') + 1);
Line 160:
Line 161: if (swcheck == 3)
Line 162: {
Line 163: var wgsrows = new List<object>();
Line 164:
Line 165: foreach (string coord in list)
Line 166: {
Line 167: var Latlng = coord.Substring(0, coord.IndexOf(',')) + "," + coord.Substring(coord.IndexOf(',') + 1);
Line 168: string[] ll = Latlng.Split(',');
Line 169: var wgsrow = new
Line 170: {
Line 171: Latitude = ll[0],
Line 172: Longitude = ll[1]
Line 173: };
Line 174: wgsrows.Add(wgsrow);
Line 175: }
Line 176: var jsonwgs = Json.Encode(wgsrows);
Line 177: saveret = Servercaller.SavePolygon(coordin, areanew, title, jsonwgs);
Line 178: //swcheck = 1;
Line 179: }
Line 180: }
Line 181:
Line 182:
Line 183:
Line 184:
Line 185:
Line 186:
Line 187:
Line 188:
Line 189:
Line 190: #line default
Line 191: #line hidden
Line 192: WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n\r\n<html");
Line 193:
Line 194: WriteLiteral(" lang=\"en\"");
Line 195:
Line 196: WriteLiteral(@">
Line 197: <head>
Line 198: <title>Εφαρμογή στοιχείων myktimapoints app</title>
Line 199: <style>
Line 200:
Line 201:
Line 202:
Line 203: #map {
Line 204: height: 100%;
Line 205: }
Line 206:
Line 207:
Line 208: /* Optional: Makes the sample page fill the window. */
Line 209:
Line 210: html,
Line 211: body {
Line 212: height: 100%;
Line 213: margin: 0;
Line 214: padding: 0;
Line 215: }
Line 216:
Line 217: #floating-panelnew {
Line 218: position: absolute;
Line 219: top: 5%;
Line 220: width: 25%;
Line 221: left: 70%;
Line 222: z-index: 5;
Line 223: cursor: move;
Line 224: background-color: #f2φ2φ2;
Line 225: padding: 5px;
Line 226: border: 1px solid #999;
Line 227: text-align: center;
Line 228: font-family: 'Roboto', 'sans-serif';
Line 229: line-height: 30px;
Line 230: padding-left: 10px;
Line 231: }
Line 232: </style>
Line 233: <meta");
Line 234:
Line 235: WriteLiteral(" charset=\"utf-8\"");
Line 236:
Line 237: WriteLiteral(" />\r\n <title></title>\r\n <meta");
Line 238:
Line 239: WriteLiteral(" charset=\"utf-8\"");
Line 240:
Line 241: WriteLiteral(" />\r\n <title>ktimalasithi.gr</title>\r\n <link");
Line 242:
Line 243: WriteAttribute("href", Tuple.Create(" href=\"", 6365), Tuple.Create("\"", 6385)
Line 244: , Tuple.Create(Tuple.Create("", 6372), Tuple.Create<System.Object, System.Int32>(Href("~/favicon.ico")
Line 245: , 6372), false)
Line 246: );
Line 247:
Line 248: WriteLiteral(" rel=\"shortcut icon\"");
Line 249:
Line 250: WriteLiteral(" type=\"image/x-icon\"");
Line 251:
Line 252: WriteLiteral(" />\r\n <script");
Line 253:
Line 254: WriteAttribute("src", Tuple.Create(" src=\"", 6442), Tuple.Create("\"", 6477)
Line 255: , Tuple.Create(Tuple.Create("", 6448), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/jquery-1.8.2.min.js")
Line 256: , 6448), false)
Line 257: );
Line 258:
Line 259: WriteLiteral("></script>\r\n <script");
Line 260:
Line 261: WriteAttribute("src", Tuple.Create(" src=\"", 6501), Tuple.Create("\"", 6536)
Line 262: , Tuple.Create(Tuple.Create("", 6507), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/jquery-ui-1.8.24.js")
Line 263: , 6507), false)
Line 264: );
Line 265:
Line 266: WriteLiteral("></script>\r\n <script");
Line 267:
Line 268: WriteAttribute("src", Tuple.Create(" src=\"", 6560), Tuple.Create("\"", 6594)
Line 269: , Tuple.Create(Tuple.Create("", 6566), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/modernizr-2.6.2.js")
Line 270: , 6566), false)
Line 271: );
Line 272:
Line 273: WriteLiteral("></script>\r\n <meta");
Line 274:
Line 275: WriteLiteral(" name=\"viewport\"");
Line 276:
Line 277: WriteLiteral(" content=\"width=device-width\"");
Line 278:
Line 279: WriteLiteral(" />\r\n <meta");
Line 280:
Line 281: WriteLiteral(" charset=\"utf-8\"");
Line 282:
Line 283: WriteLiteral(">\r\n <meta");
Line 284:
Line 285: WriteLiteral(" http-equiv=\"X-UA-Compatible\"");
Line 286:
Line 287: WriteLiteral(" content=\"IE=edge\"");
Line 288:
Line 289: WriteLiteral(">\r\n <meta");
Line 290:
Line 291: WriteLiteral(" name=\"viewport\"");
Line 292:
Line 293: WriteLiteral(" content=\"width=device-width, initial-scale=1\"");
Line 294:
Line 295: WriteLiteral(">\r\n\r\n <!--\r\n Metro Fit\r\n http://www.templatemo.com/tm-495-metro-fit\r\n " +
Line 296: " -->\r\n <!-- load stylesheets -->\r\n <link");
Line 297:
Line 298: WriteLiteral(" rel=\"stylesheet\"");
Line 299:
Line 300: WriteLiteral(" href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400\"");
Line 301:
Line 302: WriteLiteral("> <!-- Google web font \"Open Sans\" -->\r\n <link");
Line 303:
Line 304: WriteLiteral(" rel=\"stylesheet\"");
Line 305:
Line 306: WriteAttribute("href", Tuple.Create(" href=\"", 7100), Tuple.Create("\"", 7152)
Line 307: , Tuple.Create(Tuple.Create("", 7107), Tuple.Create<System.Object, System.Int32>(Href("~/font-awesome-4.5.0/css/font-awesome.min.css")
Line 308: , 7107), false)
Line 309: );
Line 310:
Line 311: WriteLiteral("> <!-- Font Awesome -->\r\n <link");
Line 312:
Line 313: WriteLiteral(" rel=\"stylesheet\"");
Line 314:
Line 315: WriteAttribute("href", Tuple.Create(" href=\"", 7219), Tuple.Create("\"", 7249)
Line 316: , Tuple.Create(Tuple.Create("", 7226), Tuple.Create<System.Object, System.Int32>(Href("~/css/bootstrap.min.css")
Line 317: , 7226), false)
Line 318: );
Line 319:
Line 320: WriteLiteral("> <!-- Bootstrap style -->\r\n <link");
Line 321:
Line 322: WriteLiteral(" rel=\"stylesheet\"");
Line 323:
Line 324: WriteAttribute("href", Tuple.Create(" href=\"", 7340), Tuple.Create("\"", 7371)
Line 325: , Tuple.Create(Tuple.Create("", 7347), Tuple.Create<System.Object, System.Int32>(Href("~/css/magnific-popup.css")
Line 326: , 7347), false)
Line 327: );
Line 328:
Line 329: WriteLiteral("> <!-- Magnific popup style (http://dimsemenov.co" +
Line 330: "m/plugins/magnific-popup/) -->\r\n <link");
Line 331:
Line 332: WriteLiteral(" rel=\"stylesheet\"");
Line 333:
Line 334: WriteAttribute("href", Tuple.Create(" href=\"", 7511), Tuple.Create("\"", 7544)
Line 335: , Tuple.Create(Tuple.Create("", 7518), Tuple.Create<System.Object, System.Int32>(Href("~/css/templatemo-style.css")
Line 336: , 7518), false)
Line 337: );
Line 338:
Line 339: WriteLiteral(@"> <!-- Templatemo style -->
Line 340: <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Line 341: <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
Line 342: <!--[if lt IE 9]>
Line 343: <script src=""https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js""></script>
Line 344: <script src=""https://oss.maxcdn.com/respond/1.4.2/respond.min.js""></script>
Line 345: <![endif]-->
Line 346:
Line 347: </head>
Line 348: <body>
Line 349: <div class=""row"">
Line 350: <div class=""col-lg-12"">
Line 351:
Line 352:
Line 353:
Line 354: <div class=""tm-about-box-3 tm-gray-bg"" style=""padding: 0px"">
Line 355:
Line 356: <h4 class=""tm-about-description-3"" style=""text-align: center"">
Line 357: <b><a href=""/"">ktimalasithi.gr </a></b> Εντοπισμός ακινήτου βάσει συντεταγμένων απο εγγραφές του myktimapoints app
Line 358: </h4>
Line 359:
Line 360: </div>
Line 361:
Line 362:
Line 363: </div>
Line 364: </div>
Line 365:
Line 366: <div id=""floating-panelnew"">
Line 367:
Line 368: <form method=""post"" action="""" id=""mapsform"">
Line 369: <input type=""hidden"" name=""arearaw"" id=""arearaw"" value=""");
Line 370:
Line 371:
Line 372: #line 235 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 373: Write(areanew);
Line 374:
Line 375:
Line 376: #line default
Line 377: #line hidden
Line 378: WriteLiteral("\">\r\n <input type=\"hidden\" name=\"wgsraw\" id=\"wgsraw\" value=\"");
Line 379:
Line 380:
Line 381: #line 236 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 382: Write(coorpoints);
Line 383:
Line 384:
Line 385: #line default
Line 386: #line hidden
Line 387: WriteLiteral("\">\r\n <input type=\"hidden\" name=\"dateraw\" id=\"dateraw\" value=\"");
Line 388:
Line 389:
Line 390: #line 237 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 391: Write(datevalue);
Line 392:
Line 393:
Line 394: #line default
Line 395: #line hidden
Line 396: WriteLiteral("\">\r\n <input type=\"hidden\" name=\"mapzoom\" id=\"mapzoom\" value=\"\">\r\n " +
Line 397: " <input type=\"hidden\" name=\"mapcenter\" id=\"mapcenter\" value=\"\">\r\n " +
Line 398: " <input type=\"hidden\" name=\"swcheck\" id=\"swcheck\" value=\"");
Line 399:
Line 400:
Line 401: #line 240 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 402: Write(swcheck);
Line 403:
Line 404:
Line 405: #line default
Line 406: #line hidden
Line 407: WriteLiteral("\">\r\n <textarea style=\"font-size: 1.0rem\" rows=\"1\" cols=\"5\" placeholder" +
Line 408: "=\"Κωδικός\" name=\"recid\" id=\"recid\">");
Line 409:
Line 410:
Line 411: #line 241 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 412: Write(coordin);
Line 413:
Line 414:
Line 415: #line default
Line 416: #line hidden
Line 417: WriteLiteral("</textarea>\r\n <textarea style=\"font-size: 1.0rem\" rows=\"1\" cols=\"25\" p" +
Line 418: "laceholder=\"Τίτλος\" name=\"desc\" id=\"desc\">");
Line 419:
Line 420:
Line 421: #line 242 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 422: Write(title);
Line 423:
Line 424:
Line 425: #line default
Line 426: #line hidden
Line 427: WriteLiteral(@"</textarea>
Line 428: <a href=""webinfo.pdf"" target=""_blank"" media=""min-width: 48px"">
Line 429: <img src=""images/info1.png"" alt=""Info"">
Line 430: </a><br>
Line 431: <label style=""font-size: 1.0rem; background-color:black; color:white"">Ημ/νια: </label>
Line 432: <label style=""font-size: 1.0rem; background-color:black; color:white"" rows=""1"" cols=""40"" name=""date"" id=""date"">");
Line 433:
Line 434:
Line 435: #line 247 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 436: Write(wdate);
Line 437:
Line 438:
Line 439: #line default
Line 440: #line hidden
Line 441: WriteLiteral(@"</label>
Line 442: <label style=""font-size: 1.0rem; background-color:black; color:white"">Εμβαδον: </label>
Line 443: <label style=""font-size: 1.0rem; background-color:black; color:white"" rows=""1"" cols=""40"" name=""area"" id=""area""></label><br>
Line 444: <button type='submit' name='submitbtn1' value='submitbtn1' style='background:none;border:none;padding:0'><img src='images/edit.png'></button>
Line 445: <button");
Line 446:
Line 447: WriteLiteral(" type=\'submit\'");
Line 448:
Line 449: WriteLiteral(" name=\'submitbtn3\'");
Line 450:
Line 451: WriteLiteral(" value=\'submitbtn3\'");
Line 452:
Line 453: WriteLiteral(" style=\'background:none;border:none;padding:0\'");
Line 454:
Line 455: WriteLiteral("><img");
Line 456:
Line 457: WriteLiteral(" src=\'images/save1.png\'");
Line 458:
Line 459: WriteLiteral("></button>\r\n <button");
Line 460:
Line 461: WriteLiteral(" type=\'submit\'");
Line 462:
Line 463: WriteLiteral(" name=\'submitbtn4\'");
Line 464:
Line 465: WriteLiteral(" value=\'submitbtn4\'");
Line 466:
Line 467: WriteLiteral(" style=\'background:none;border:none;padding:0\'");
Line 468:
Line 469: WriteLiteral(" formaction=\"Mapsnew_report\"");
Line 470:
Line 471: WriteLiteral(" formtarget=\"_blank\"");
Line 472:
Line 473: WriteLiteral("><img");
Line 474:
Line 475: WriteLiteral(" src=\'images/print1.png\'");
Line 476:
Line 477: WriteLiteral("></button>\r\n <br>\r\n </form>\r\n\r\n\r\n </div>\r\n <div");
Line 478:
Line 479: WriteLiteral(" id=\"map\"");
Line 480:
Line 481: WriteLiteral("></div>\r\n <!-- Replace the value of the key parameter with your own API key. -" +
Line 482: "->\r\n <script");
Line 483:
Line 484: WriteAttribute("src", Tuple.Create(" src=\"", 10581), Tuple.Create("\"", 10701)
Line 485: , Tuple.Create(Tuple.Create("", 10587), Tuple.Create("https://maps.googleapis.com/maps/api/js?key=AIzaSyCual7ftBnZt8mgvYzVvuKaYDoDu9Pmk" +
Line 486: "44&zoom=", 10587), true)
Line 487:
Line 488: #line 260 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 489: , Tuple.Create(Tuple.Create("", 10676), Tuple.Create<System.Object, System.Int32>(zoomlevel
Line 490:
Line 491: #line default
Line 492: #line hidden
Line 493: , 10676), false)
Line 494: , Tuple.Create(Tuple.Create("", 10686), Tuple.Create("¢er=", 10686), true)
Line 495:
Line 496: #line 260 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 497: , Tuple.Create(Tuple.Create("", 10694), Tuple.Create<System.Object, System.Int32>(center
Line 498:
Line 499: #line default
Line 500: #line hidden
Line 501: , 10694), false)
Line 502: );
Line 503:
Line 504: WriteLiteral(">\r\n </script>\r\n <script>\r\n\r\n var map;\r\n var landFields = \"\";\r" +
Line 505: "\n var landDate = \"\";\r\n var landArea = \"\";\r\n\r\n landTitle = \'" +
Line 506: "");
Line 507:
Line 508:
Line 509: #line 269 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 510: Write(title);
Line 511:
Line 512:
Line 513: #line default
Line 514: #line hidden
Line 515: WriteLiteral("\';\r\n landDate = \'");
Line 516:
Line 517:
Line 518: #line 270 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 519: Write(wdate);
Line 520:
Line 521:
Line 522: #line default
Line 523: #line hidden
Line 524: WriteLiteral("\';\r\n var areanew = \'");
Line 525:
Line 526:
Line 527: #line 271 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 528: Write(areanew);
Line 529:
Line 530:
Line 531: #line default
Line 532: #line hidden
Line 533: WriteLiteral("\';\r\n var mvcarr = [];\r\n var contentstrinwgs84 = \"\";\r\n\r\n if (" +
Line 534: "");
Line 535:
Line 536:
Line 537: #line 275 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 538: Write(swcheck);
Line 539:
Line 540:
Line 541: #line default
Line 542: #line hidden
Line 543: WriteLiteral(" == 3 && ");
Line 544:
Line 545:
Line 546: #line 275 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 547: Write(saveret);
Line 548:
Line 549:
Line 550: #line default
Line 551: #line hidden
Line 552: WriteLiteral(" == 1) {\r\n window.alert(\"Το ακίνητο ενημερώθηκε\");\r\n }\r\n " +
Line 553: " if (");
Line 554:
Line 555:
Line 556: #line 278 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 557: Write(readerror);
Line 558:
Line 559:
Line 560: #line default
Line 561: #line hidden
Line 562: WriteLiteral(" == 1) {\r\n window.alert(\"Το ακίνητο δεν βρέθηκε\");\r\n }\r\n " +
Line 563: " function initMap(){\r\n map = new google.maps.Map(document.getElement" +
Line 564: "ById(\'map\'), {\r\n zoom: ");
Line 565:
Line 566:
Line 567: #line 283 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 568: Write(zoomlevel);
Line 569:
Line 570:
Line 571: #line default
Line 572: #line hidden
Line 573: WriteLiteral(",\r\n mapTypeId: google.maps.MapTypeId.SATELLITE,\r\n d" +
Line 574: "raggableCursor: \'crosshair\',\r\n center: { ");
Line 575:
Line 576:
Line 577: #line 286 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 578: Write(center);
Line 579:
Line 580:
Line 581: #line default
Line 582: #line hidden
Line 583: WriteLiteral("\r\n }\r\n });\r\n\r\n var coordslist = [");
Line 584:
Line 585:
Line 586: #line 290 "C:\Inetpub\vhosts\21741437491.thesite.link\ktimamessinia.gr\mapsnew.cshtml"
Line 587: Write(coorpoints);
Line 588:
Line 589:
Line 590: #line default
Line 591: #line hidden
Line 592: WriteLiteral("];\r\n var coordpolygon = [];\r\n if (landPolygon) {\r\n " +
Line 593: " landPolygon.setMap(null);\r\n }\r\n for (var i1 = 0; i1" +
Line 594: " < coordslist.length; i1++) {\r\n coordpolygon.push({ lat: coordsli" +
Line 595: "st[i1][0], lng: coordslist[i1][1] });\r\n }\r\n var landPolygo" +
Line 596: "n = new google.maps.Polygon({\r\n paths: coordpolygon,\r\n " +
Line 597: " strokeColor: \'#ff5b06\',\r\n strokeOpacity: 1,\r\n " +
Line 598: " strokeWeight: 3,\r\n fillColor: \'#000000\',\r\n fillOp" +
Line 599: "acity: 0.6\r\n });\r\n mvcarr = landPolygon.getPath();\r\n " +
Line 600: " if (coordpolygon.length > 2) {\r\n contentcreate();\r\n " +
Line 601: " updatearea(areanew);\r\n landPolygon.setMap(map);\r\n " +
Line 602: " landPolygon.binder = new MVCArrayBinder(landPolygon.getPath());\r\n " +
Line 603: " for (var j = 0; j < landPolygon.getPath().getLength(); j++) {\r\n " +
Line 604: " var mark = new google.maps.Marker({\r\n positio" +
Line 605: "n: landPolygon.getPath().getAt(),\r\n map: map,\r\n " +
Line 606: " draggable: true,\r\n title: \'Μετακινήστε το σ" +
Line 607: "ημείο για διόρθωση\',\r\n label: j.toString()\r\n " +
Line 608: " });\r\n mark.bindTo(\'position\', landPolygon.binder, (j)." +
Line 609: "toString());\r\n google.maps.event.addListener(mark, \'dragend\'," +
Line 610: " function (e1) {\r\n var areatmp = google.maps.geometry.sph" +
Line 611: "erical.computeArea(mvcarr.j);\r\n contentcreate();\r\n " +
Line 612: " updatearea(areatmp);\r\n });\r\n " +
Line 613: " google.maps.event.addListener(mark, \"rightclick\", function (e3) {\r\n " +
Line 614: " path = e3.latLng;\r\n delMarker(path);\r\n " +
Line 615: " });\r\n }\r\n google.maps.event.addLis" +
Line 616: "tener(map, \'click\', function (e2) {\r\n //var path = landPolygo" +
Line 617: "n.getPath();\r\n //path.push(e2.latLng);\r\n /" +
Line 618: "/var len = path.getLength();\r\n var len = mvcarr.j.length + 1;" +
Line 619: "\r\n\r\n var newitem = prompt(\"Δώστε το α/α για το σημείο εάν δεν" +
Line 620: " είναι το τελευταίο σημείο\", len-1);\r\n len = newitem;\r\n " +
Line 621: " \r\n if (newitem != null && len < mvcarr.j.length" +
Line 622: " + 1) {\r\n\r\n \r\n var newmvcarr = mvc" +
Line 623: "arr.j;\r\n newmvcarr.splice(len, 0, e2.latLng);\r\n " +
Line 624: " mvcarr.j = newmvcarr;\r\n var mark = new goog" +
Line 625: "le.maps.Marker({\r\n position: e2.latLng,\r\n " +
Line 626: " title: \'Μετακινήστε το σημείο για διόρθωση\',\r\n " +
Line 627: " map: map,\r\n draggable: true,\r\n " +
Line 628: " label: (len - 1).toString()\r\n });\r\n " +
Line 629: " mark.bindTo(\'position\', landPolygon.binder, (len - 1).toString(" +
Line 630: "));\r\n var areatmp = google.maps.geometry.spherical.comput" +
Line 631: "eArea(mvcarr.j);\r\n contentcreate();\r\n " +
Line 632: " updatearea(areatmp);\r\n //google.maps.event.addListene" +
Line 633: "r(mark, \'dragend\', function (e1) {\r\n // var areatmp = " +
Line 634: "google.maps.geometry.spherical.computeArea(mvcarr.j);\r\n /" +
Line 635: "/ contentcreate();\r\n // updatearea(areatmp);\r\n " +
Line 636: " //});\r\n //google.maps.event.addListene" +
Line 637: "r(mark, \"rightclick\", function (e4) {\r\n // path = e4.l" +
Line 638: "atLng;\r\n // delMarker(path);\r\n " +
Line 639: "//});\r\n document.getElementById(\"mapsform\").submit();\r\n " +
Line 640: " }\r\n });\r\n\r\n }\r\n function " +
Line 641: "delMarker(path) {\r\n if (mvcarr.j.length < 4) {\r\n " +
Line 642: " window.alert(\'Δεν μπορείτε να διαγράψετε εάν έχετε λιγότερα απο 4 σημεία\');\r\n" +
Line 643: " }\r\n else {\r\n var pathexist = f" +
Line 644: "alse;\r\n var trueid = 0;\r\n for (var l1 = 0;" +
Line 645: " l1 < mvcarr.j.length; l1++) {\r\n if (path == mvcarr.j[l1]" +
Line 646: ") {\r\n pathexist = true;\r\n " +
Line 647: "trueid = l1;\r\n }\r\n }\r\n " +
Line 648: " if (pathexist) {\r\n var retVal = confirm(\"Το σημείο \" " +
Line 649: "+ trueid + \" θα διαγραφεί, θέλετε να συνεχίσετε;\");\r\n if " +
Line 650: "(retVal == true) {\r\n var newmvcarr = mvcarr.j;\r\n " +
Line 651: " newmvcarr.splice(trueid, 1);\r\n " +
Line 652: " mvcarr.j = newmvcarr;\r\n contentcreate();\r\n " +
Line 653: " var areatmp = google.maps.geometry.spherical.computeArea(mvcar" +
Line 654: "r.j);\r\n updatearea(areatmp);\r\n " +
Line 655: " document.getElementById(\"mapsform\").submit();\r\n }\r\n " +
Line 656: " }\r\n else {\r\n window" +
Line 657: ".alert(\'Το σημείο δεν υπάρχει\');\r\n }\r\n }\r\n " +
Line 658: " }\r\n function updatearea(areatmp) {\r\n landArea " +
Line 659: "= \'\';\r\n var slandArea = parseFloat(Math.round(areatmp * 100) / 10" +
Line 660: "0).toFixed(2);\r\n landArea = slandArea.replace(\'.\', \',\') + \'τ.μ.\';" +
Line 661: "\r\n document.getElementById(\"area\").innerHTML = landArea;\r\n " +
Line 662: " document.getElementById(\"arearaw\").value = areatmp;\r\n\r\n }\r\n " +
Line 663: " function contentcreate() {\r\n contentstrinwgs84 = \"\";\r\n" +
Line 664: " var contentstrinwgs84arr = mvcarr.j;\r\n for (var x" +
Line 665: "1 = 0; x1 < contentstrinwgs84arr.length; x1++) {\r\n contentstr" +
Line 666: "inwgs84 = contentstrinwgs84 + contentstrinwgs84arr[x1] + \'<br/>\';\r\n " +
Line 667: " }\r\n //document.getElementById(\"wgs\").innerHTML = contentstrinw" +
Line 668: "gs84;\r\n document.getElementById(\"wgsraw\").value = contentstrinwgs" +
Line 669: "84arr;\r\n var bounds = new google.maps.LatLngBounds();\r\n " +
Line 670: " landPolygon.getPath().forEach(function (path, index) {\r\n " +
Line 671: " bounds.extend(path);\r\n });\r\n map.fitBounds(bound" +
Line 672: "s);\r\n\r\n }\r\n google.maps.event.addListener(map, \'zoom_chang" +
Line 673: "ed\', function () {\r\n //window.alert(\"Zoom \" + map.getZoom());\r\n " +
Line 674: " document.getElementById(\"mapzoom\").value = map.getZoom();\r\n " +
Line 675: " });\r\n google.maps.event.addListener(map, \'center_changed\', funct" +
Line 676: "ion () {\r\n //window.alert(\"Center \" + JSON.stringify(map.getCente" +
Line 677: "r()));\r\n document.getElementById(\"mapcenter\").value = map.getCent" +
Line 678: "er();\r\n });\r\n }\r\n google.maps.event.addDomListener(wind" +
Line 679: "ow, \'load\', initMap);\r\n\r\n function MVCArrayBinder(mvcArray) {\r\n " +
Line 680: " this.array_ = mvcArray;\r\n }\r\n MVCArrayBinder.prototype = new goo" +
Line 681: "gle.maps.MVCObject();\r\n MVCArrayBinder.prototype.get = function (key) {\r\n" +
Line 682: " if (!isNaN(parseInt(key))) {\r\n return this.array_.get" +
Line 683: "At(parseInt(key));\r\n } else {\r\n this.array_.get(key);\r" +
Line 684: "\n }\r\n }\r\n MVCArrayBinder.prototype.set = function (key," +
Line 685: " val) {\r\n if (!isNaN(parseInt(key))) {\r\n this.array_.s" +
Line 686: "etAt(parseInt(key), val);\r\n } else {\r\n this.array_.set" +
Line 687: "(key, val);\r\n }\r\n mvcarr = this.array_;\r\n }\r\n\r\n\r\n " +
Line 688: " </script>\r\n\r\n\r\n\r\n</body>\r\n</html>\r\n");
Line 689:
Line 690: }
Line 691: }
Line 692: }
Line 693:
|