I created the following Click event handler to display a map of Jacksonville 
Florida.  No map is displayed.  Do you have any ideas why?


private void getMapButton_Click(object sender, EventArgs e)
  {
    CaliperForm.Connection Gisdk = new CaliperForm.Connection();
    Gisdk.Open();
    Object coord = Gisdk.DoFunction("Coord", -80720000, 30290000);
    Object scope = Gisdk.DoFunction("Scope", coord, 5.0, 5.0, 0);
    Object[] scopeArray = new Object[2] {"Scope", scope};
    Object[] array1 = new Object[2] {"Auto Project", "True"};
    Object[] parmArray = new Object[2] {scopeArray, array1};
    Object map = Gisdk.DoFunction("CreateMap", "My map", parmArray);

    Gisdk.DoFunction("RedrawMap", "My map");
    string output_file = System.IO.Path.GetTempPath() + "~mapimage.bmp";
    Gisdk.DoFunction("SaveMapToImage", null, output_file, 
                                                 "BITMAP", null);
    Gisdk.Close();
    this.mapPictureBox.Load(output_file);
  }




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Maptitude/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Maptitude/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to