Fence

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Fence as PDF for free.

More details

  • Words: 726
  • Pages: 5
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Fence.aspx.vb" Inherits="Fence" %> GMap Page <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAHd5dU yU_BmFolGrDA7JEiBRfWigpUd0SIL4YhrhSv51Rk6BIhSPpjuH3R9PrL40dsojfXNCAYMd7g" type="text/javascript">
Vehicle No.Vehicle Type
YES  NO 

<script type="text/javascript"> //Driver Name"+Dnm+"Driver Mobile"+Dno+"" map.openInfoWindowHtml(marker.getPoint(),infodata); }); GEvent.addListener(marker, 'mouseout', function() { map.closeInfoWindow(); }); return marker; } // create the map var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(25.136275,123.555333333333), 15); map.enableScrollWheelZoom(); //Function to Create Polygon function startShape() { debugger; polygon = new GPolygon([], "#ff0000", 2, 0.7, "#000080", 0.2); startDrawing(polygon); } function startDrawing(poly) { map.addOverlay(poly); poly.enableDrawing(options);

poly.enableEditing({onEvent: "mouseover"}); poly.disableEditing({onEvent: "mouseout"}); GEvent.addListener(poly, "endline", function() { }); } //Function for getdata in textbox function getdata() { var data=polygon.getBounds(); alert(data); document.getElementById("hidden").value=data; alert("Fence Successfully Added"); window.close(this); } //Function to ClearFence function Clear() { var a=document.getElementById("Button1"); alert("do you want to remove this fence"); map.clearOverlays(); GetDate(); } //Function to check the fence and point // function AlertCheck() { // // if(document.getElementById("EnterFence").checked==true) // { // my_window= window.open("","mywindow1","status=1,width=350,height=150"); // my_window.document.write('

Inside The Fence

'); // } // else if(document.getElementById("ExitFence").checked==true) // { // my_window= window.open("","mywindow1","status=1,width=350,height=150"); // my_window.document.write('

OutSide Fence

'); // } // else if(document.getElementById("Both").checked==true) // { // my_window= window.open("","mywindow1","status=1,width=350,height=150"); // my_window.document.write('

Both Condition Initialised

'); // } // } // A function to read the data function readMap(url) { var request = GXmlHttp.create(); request.open("GET", url, true); request.onreadystatechange = function() { if (request.readyState == 4) { var xmlDoc = GXml.parse(request.responseText); // obtain the array of markers and loop through it var markers = xmlDoc.documentElement.getElementsByTagName("marker");

// hide the info window, otherwise it still stays open where the removed marker used to be map.getInfoWindow().hide(); //map.clearOverlays(); for (var i = 0; i < markers.length; i++) { // obtain the attribues of each marker var lat = parseFloat(markers[i].getAttribute("lat")); var lng = parseFloat(markers[i].getAttribute("lng")); var Dno = parseFloat(markers[i].getAttribute("Dno")); //Added new attributes by deepak var Dnm = (markers[i].getAttribute("Dnm")); var Nlat = parseFloat(markers[i].getAttribute("Nlat")); var Nlng = parseFloat(markers[i].getAttribute("Nlng")); point = new GLatLng(lat,lng); // create the marker var marker = createMarker(point,lat,lng,Dno,Dnm,Nlat,Nlng); map.setCenter(point); map.addOverlay(marker); AlertCheck(); } // put the assembled side_bar_html contents into the side_bar div } } request.send(null); } // When initially loaded, use the data from "map11a.xml" readMap("NOn2-4.xml");

// }

else { alert("Sorry, the Google Maps API is not compatible with this browser"); } // This Javascript is based on code provided by the // Blackpool Community Church Javascript Team // http://www.commchurch.freeserve.co.uk/ // http://econym.googlepages.com/index.htm //]]> <script language="javascript" type="text/javascript" >

//

function GetDate() { UseCallback(); } function GetDateFromServer(name, context) { alert(name); readMap(name);

setTimeout('GetDate()', '4000') //Number(mylist.options[mylist.selectedIndex].value)) }
Alert When Enter Fence: Exit Fence: Both:

Related Documents

Fence
November 2019 20
Greyface Fence
December 2019 21
Border Fence
April 2020 17
Delta Band Saw Fence
November 2019 10
Caught In The Fence
June 2020 13
Vinyl Fence Catalog
August 2019 21