I am using googlemaps.subgurim.net in my application,it is possible to set different GOOGLE API KEY to different users based on their logins.
web.config:
<add key="googlemaps.subgurim.net" value="xxxxxxxxx"/>
.aspx:
<cc1:GMap ID="GMap1" runat="server" Height="805px" Width="800px" />
.aspx.cs:
string sMapKey = ConfigurationManager.AppSettings["googlemaps.subgurim.net"];
GeoCode objAddress = new GeoCode();
objAddress=Map.geoCodeRequest(newGLatLng(Convert.ToDouble(status.Rows[0][0]),Convert.ToDouble(status.Rows[0][1])), sMapKey);
StringBuilder sb = new StringBuilder();
if (objAddress.valid)
{
sb.Append(objAddress.Placemark.address.ToString());
lbladd.Text = sb.ToString();
}
我在我的应用程序中使用 googlemaps.subgurim.net,可以根据不同的用户登录设置不同的 GOOGLE API KEY。