Click here to Skip to main content
15,887,436 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hellow
i have c# project that deals with googleearth i could insert the googleearth in the form ,i could rise the camera, rotate around point
and change angle of the camera, but i could not move the forward or backward or to left or to right USING GOOGLE ICONS whitch
located in the far right of the global [their are 3 icons one has pluse and minus and the upper two has 4 arrows, i wish if i could use them in my methods just like the 2 method in
code below]
i use window 7 + VS 2010 using this in code i got VersionMajor and VersionMinor = 7 and 1
C#
int x = googleEarth.VersionMajor;
MessageBox.Show(x.ToString(), googleEarth.VersionMinor.ToString());


help

C#
    CameraInfoGE cam = new CameraInfoGE();
    public ApplicationGEClass googleEarth;
    private IntPtr Gwnd = (IntPtr)0;
    .
    .
    .
    private void Form1_Load(object sender, EventArgs e)
    {
    .
    .
    .
    googleEarth = new ApplicationGEClass();
    cam.Tilt = 10;//0 means vertical ,90=Horizontal
    cam.Azimuth = 0;
    Gwnd = (IntPtr)googleEarth.GetMainHwnd();//GetRenderHwnd();
    ClassGoogle.ShowWindow(Gwnd, ClassGoogle.SW_MINIMIZE);
    .
    .
    .
    }

private void CameraTilted_Click(object sender, EventArgs e)
    {
        str1 = textBox1.Text;
        cam.Tilt = double.Parse(str1);// 90 means perpendcular
        googleEarth.SetCamera(cam, 0.25f);
    }

private void AzimuthChanged(object sender, EventArgs e)
    {
        cam.Azimuth = (double)numericUpDown1.Value;
        googleEarth.SetCamera(cam, 0.25f);
    }
Posted
Updated 30-Aug-14 2:34am
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900