-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathV2X_MapVisualizer.aspx.cs
More file actions
38 lines (33 loc) · 1.38 KB
/
V2X_MapVisualizer.aspx.cs
File metadata and controls
38 lines (33 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
//using System.IO.Compression;
using System.Linq;
using System.Web.UI.WebControls;
using Microsoft.WindowsAzure.Storage; // Namespace for Storage Client Library
using Microsoft.WindowsAzure.Storage.Blob;
using Newtonsoft.Json;
namespace Neaera_Website_2018
{
public partial class V2X_MapVisualizer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
if (!ClientScript.IsStartupScriptRegistered("googleMapScript"))
{
// Register Startup Script for Google Maps API
string key = ConfigurationManager.AppSettings["GoogleMapsAPIKey"];
string api_url = "https://maps.google.com/maps/api/js?key=" + key + "&libraries=geometry";
string myScript = "<script type=\"text/javascript\" src=\"" + api_url + "\"> </script>";
//string myScript = "<script type=\"text/javascript\" src=\""+ ConfigurationManager.AppSettings["localhost"] + "\"></script>";
//this.Page.ClientScript.RegisterStartupScript(typeof(Page), "googleMapScript", myScript, true);
Page.ClientScript.RegisterClientScriptInclude("googleMapScript", api_url);
}
}
}
}