Esempio n. 1
0
 private void addGraticule()
 {
     if (graticule == null)
     {
         graticule = new Graticule();
     }
     axEarthCtrl1.setActiveGraticule(graticule);
 }
Esempio n. 2
0
 public MapTextGraticuleHelper(GeoProjection projection, Graticule graticule)
 {
     _graticule     = graticule;
     TitleSize      = 13;
     NoteSize       = 10;
     TextBold       = false;
     TitleText      = "Map title";
     NoteText       = "Map note";
     TitleVisible   = false;
     NoteVisible    = false;
     TitleAlignment = tkLabelAlignment.laCenter;
     NoteAlignment  = tkLabelAlignment.laCenterLeft;
     MapTextType    = fadMapTextType.mapTextTypeNone;
     _textShapefile = new Shapefile();
     if (_textShapefile.CreateNewWithShapeID("", ShpfileType.SHP_POINT))
     {
         _textShapefile.GeoProjection = projection;
         _ifldTextType  = _textShapefile.EditAddField("TextType", FieldType.STRING_FIELD, 1, 5);
         _ifldText      = _textShapefile.EditAddField("Text", FieldType.STRING_FIELD, 1, 100);
         _categoryTitle = _textShapefile.Labels.AddCategory("Text");
         _categoryNote  = _textShapefile.Labels.AddCategory("Note");
     }
 }
Esempio n. 3
0
 private void addGraticule()
 {
     if (graticule == null)
     {
         graticule = new Graticule();
     }
     axEarthCtrl1.setActiveGraticule(graticule);
 }