Click here to Skip to main content
15,885,757 members
Articles / Programming Languages / C#

How Google Map Works

Rate me:
Please Sign up or sign in to vote.
4.86/5 (82 votes)
7 Jan 2008CPOL4 min read 838.2K   4.6K   204  
An analysis of the encoding of the tiles used by Google map
namespace GoogleMapSample
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.button1 = new System.Windows.Forms.Button();
            this.radioButtonMap = new System.Windows.Forms.RadioButton();
            this.radioButtonsat = new System.Windows.Forms.RadioButton();
            this.tbZoom = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.tbLatitude = new System.Windows.Forms.TextBox();
            this.tbLongitude = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.labelUrl = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.SuspendLayout();
            // 
            // pictureBox1
            // 
            this.pictureBox1.Location = new System.Drawing.Point(10, 9);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(256, 256);
            this.pictureBox1.TabIndex = 0;
            this.pictureBox1.TabStop = false;
            // 
            // button1
            // 
            this.button1.Location = new System.Drawing.Point(172, 346);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(102, 36);
            this.button1.TabIndex = 1;
            this.button1.Text = "Get this tile";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // radioButtonMap
            // 
            this.radioButtonMap.AutoSize = true;
            this.radioButtonMap.Location = new System.Drawing.Point(16, 316);
            this.radioButtonMap.Name = "radioButtonMap";
            this.radioButtonMap.Size = new System.Drawing.Size(66, 17);
            this.radioButtonMap.TabIndex = 2;
            this.radioButtonMap.Text = "Map Tile";
            this.radioButtonMap.UseVisualStyleBackColor = true;
            // 
            // radioButtonsat
            // 
            this.radioButtonsat.AutoSize = true;
            this.radioButtonsat.Checked = true;
            this.radioButtonsat.Location = new System.Drawing.Point(16, 339);
            this.radioButtonsat.Name = "radioButtonsat";
            this.radioButtonsat.Size = new System.Drawing.Size(61, 17);
            this.radioButtonsat.TabIndex = 3;
            this.radioButtonsat.TabStop = true;
            this.radioButtonsat.Text = "Sat Tile";
            this.radioButtonsat.UseVisualStyleBackColor = true;
            // 
            // tbZoom
            // 
            this.tbZoom.Location = new System.Drawing.Point(86, 362);
            this.tbZoom.Name = "tbZoom";
            this.tbZoom.Size = new System.Drawing.Size(30, 20);
            this.tbZoom.TabIndex = 4;
            this.tbZoom.Text = "1";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(13, 365);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(67, 13);
            this.label1.TabIndex = 5;
            this.label1.Text = "Zoom Factor";
            // 
            // tbLatitude
            // 
            this.tbLatitude.Location = new System.Drawing.Point(73, 271);
            this.tbLatitude.Name = "tbLatitude";
            this.tbLatitude.Size = new System.Drawing.Size(100, 20);
            this.tbLatitude.TabIndex = 6;
            this.tbLatitude.Text = "43,0";
            // 
            // tbLongitude
            // 
            this.tbLongitude.Location = new System.Drawing.Point(73, 297);
            this.tbLongitude.Name = "tbLongitude";
            this.tbLongitude.Size = new System.Drawing.Size(100, 20);
            this.tbLongitude.TabIndex = 7;
            this.tbLongitude.Text = "4,00";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(13, 278);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(45, 13);
            this.label2.TabIndex = 8;
            this.label2.Text = "Latitude";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(13, 300);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(54, 13);
            this.label3.TabIndex = 9;
            this.label3.Text = "Longitude";
            // 
            // labelUrl
            // 
            this.labelUrl.AutoSize = true;
            this.labelUrl.Location = new System.Drawing.Point(10, 401);
            this.labelUrl.Name = "labelUrl";
            this.labelUrl.Size = new System.Drawing.Size(20, 13);
            this.labelUrl.TabIndex = 10;
            this.labelUrl.Text = "Url";
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(286, 423);
            this.Controls.Add(this.labelUrl);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.tbLongitude);
            this.Controls.Add(this.tbLatitude);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.tbZoom);
            this.Controls.Add(this.radioButtonsat);
            this.Controls.Add(this.radioButtonMap);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.pictureBox1);
            this.Name = "Form1";
            this.Text = "GoogleMapSample";
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.PictureBox pictureBox1;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.RadioButton radioButtonMap;
        private System.Windows.Forms.RadioButton radioButtonsat;
        private System.Windows.Forms.TextBox tbZoom;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox tbLatitude;
        private System.Windows.Forms.TextBox tbLongitude;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label labelUrl;
    }
}

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
France France
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions