Click here to Skip to main content
15,881,753 members
Articles / Web Development / ASP.NET

Lat Lays Flat - Part 1 : A Google Maps .NET Control

Rate me:
Please Sign up or sign in to vote.
4.76/5 (69 votes)
17 Oct 20056 min read 907.2K   17.3K   258  
An ASP.NET server control wrapper for the Google Maps API.
<%@ Page language="c#" Codebehind="MarkerInfoWindow.aspx.cs" AutoEventWireup="false" Inherits="TestWeb.MarkerInfoWindow" %>
<%@ Register TagPrefix="wcp" Namespace="WCPierce.Web.UI.WebControls" Assembly="WCPierce.Web" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>GMap Marker Info Window</title>
    <style type="text/css">
      v\:* {
        behavior:url(#default#VML);
      }
    </style>
    <script type="text/javascript">
      function GMarker_Click()
      {
        var html = "<b>" + this.id + "</b>";
        this.openInfoWindowHtml(html);
      }
    </script>
  </head>
  <body>
    <form id="Form1" method="post" runat="server">
      <wcp:GMap runat="server" id="gMap" Width="500px" Height="300px" />
    </form>
  </body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions