[mapguide-users] Get Lat Long
ajid
ah_jid at yahoo.com
Tue Jan 13 23:04:55 EST 2009
task_pane.aspx /
--------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="task_pane.aspx.cs"
Inherits="hello_viewer_task_pane" %>
<%@ Import Namespace="OSGeo.MapGuide" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Hello Viewer</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta http-equiv="content-style-type" content="text/css"/>
<link href="../styles/dotnetsamples.css" rel="stylesheet"
type="text/css"/>
<meta http-equiv="content-script-type" content="text/javascript"/>
</head>
<body>
<form id="form1" runat="server">
<%
NameValueCollection serverVars = Request.ServerVariables;
String platform = serverVars["SERVER_SOFTWARE"];
String queryStr = serverVars["QUERY_STRING"];
NameValueCollection requestParams = Request.HttpMethod == "GET" ?
Request.QueryString : Request.Form;
String mgSessionId = requestParams["SESSION"];
String mgLocale = requestParams["LOCALE"];
String mgMapName = requestParams["MAPNAME"];
// Initialize the web-tier.
String realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];
String configPath = realPath + "..\\webconfig.ini";
MapGuideApi.MgInitializeWebTier(configPath);
// Connect to the site.
MgUserInformation userInfo = new MgUserInformation(mgSessionId);
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);
%>
<div>
<h1> </h1>
<h2>Two</h2>
<p> gotopoint.aspx?X=101.657487&Y=3.161049&Scale=26432.77 this link
</p>
<!-- target="scriptFrame" -->
<!-- view gotopoint source -->
<h2>
<label>
x
<input type="text" name="x" id="x" />
</label>
y
<input type="text" name="y" id="y" />
scale
<input type="text" name="scale" id="scale" />
<!-- gotopoint.aspx?X=101.657487&Y=3.161049&Scale=26432.77 link
</h2> -->
gotopoint.aspx?id=x&id=y&Scale=26432.77 link </h2>
</div>
</form>
</body>
</html>
here my code .. and sample http://n2.nabble.com/file/n2155091/latlong2.rar
latlong2.rar
my problem
i wanna 3 textbox
1)value of x
2) value of y
3) value of scale
4) when click text that go
anyone can help me how get value on textboxs click and go.. or may be other
method or source code??
Thanx
http://n2.nabble.com/file/n2155091/pic.JPG pic.JPG
-----
Yazid Yusof
Mapping and Graphic Department
www.sapura.com.my
--
View this message in context: http://n2.nabble.com/Get-Lat-Long-tp2155091p2155091.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list