请给个中文配置的教程~~~~我需要实现输入坐标标记出地点
解决方案 »
- FckEditor上传路径的问题
- 下面的简单代码为什么会引发“引发类型为“System.OutOfMemoryException”的异常”
- (在线结贴)十万火急,如何解决asp.net创建IIS网站,出现“ASP.NET 未被授权访问所请求的资源”的问题
- 请问:如何通过button按钮控制TreeView控件节点的选择
- 高分求SSL问题
- 各位高手,这个问题怎么解决啊?????
- 一个很简单的Calendar的问题
- excel远程导入SQL2000 代码出错 求高人帮助
- 将1篇文章插入到数据库后如何让他在界面上显示出原有格式(我用的时freetextbox添加)C#
- 请教SQL语句中数据表名称动态控制的问题~
- 在使用NHibernate时,出现这种错误:Could not compile the mapping document-------hbm.xml文件
- this.document.write("")写到页面上汉字乱码
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register Assembly="Artem.GoogleMap" Namespace="Artem.Web.UI.Controls" TagPrefix="cc1" %><!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"> <script type="text/javascript">
function __showInfo(overlay, point) {
if(point) {
var info = document.getElementById('__info');
info.innerHTML = point.lat() + '/' + point.lng();
}
}
</script> <title>map</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
Find Address
X:<asp:TextBox ID="X_X" Width="100px" runat="server" Text="31.206304753974084"></asp:TextBox>
/Y:<asp:TextBox ID="Y_Y" Width="100px" runat="server" Text="121.57998561859131"></asp:TextBox>
<asp:Button ID="_btnShow" runat="server" Text="Show" />
<span id="__info" style="background-color: #EEE; color: #009; padding: 0px 4px 0px 4px; border: solid 1px #999;">
Position</span>
<hr style="visibility: hidden;" />
<cc1:GoogleMap ID="GoogleMap1" runat="server" Width="640px" Height="600px" Address="shanghai" Latitude="31.206304753974084" Longitude="121.57998561859131" OnClientClick="__showInfo" BorderStyle="Solid" BorderColor="#999999" BorderWidth="1" ZoomPanType="Large" Zoom="15">
</cc1:GoogleMap>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Artem.Web.UI.Controls;public partial class _Default : Artem.GoogleMap.WebSite.UI.PageBase
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//
if (IsPostBack)
{
string address = X_X.Text+"/"+Y_Y.Text;
GoogleMap1.Latitude = double.Parse(X_X.Text);
GoogleMap1.Longitude = double.Parse(Y_Y.Text);
//GoogleMap1.Address = address;
GoogleMap1.Markers.Clear();
GoogleMap1.Markers.Add(new GoogleMarker(address));
}
}
}下载地址http://www.codeplex.com/googlemap/SourceControl/ListDownloadableCommits.aspx
下载一下,有官方详细的例子