ESRI.ArcGIS.Mobile
GpsDisplay Class
Members  See Also  Send Feedback
ESRI.ArcGIS.Mobile.Gps Namespace : GpsDisplay Class

Displays the GPS position on a map.

Object Model







Syntax

Visual Basic (Declaration) 
<DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="ESRI.ArcGIS.Mobile.Designer.GpsDisplayDesigner, ESRI.ArcGIS.Mobile.Designer, Culture=neutral")>
<DesignerCategoryAttribute("code")>
<ToolboxBitmapAttribute()>
<DefaultPropertyAttribute("Map")>
Public Class GpsDisplay 
   Inherits Component
C# 
[DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="ESRI.ArcGIS.Mobile.Designer.GpsDisplayDesigner, ESRI.ArcGIS.Mobile.Designer, Culture=neutral")]
[DesignerCategoryAttribute("code")]
[ToolboxBitmapAttribute()]
[DefaultPropertyAttribute("Map")]
public class GpsDisplay : Component 

Remarks

This class serves as the display base for both the SerialPortGpsConnection and the FileGpsConnection classes. Both these GpsConnection classes are exposed as toolbox components via the IDE.

When subclassing the GPSDisplay the following protected methods can be overridden for developers who want more from the GpsDisplay (for example draw a destination point and a bearing lines).
- OnMapPaint(object sender, MapPaintEventArgs e)
- PaintLocation(Display display)
- PaintTrail(Display display)

Also the symbols used by GpsDisplayhave been exposed:
- public Symbol LocationSymbol
- public Symbol CourseSymbol
- public Symbol ErrorSymbol
- public Symbol TrailSymbol
Developers can directly change them. The only trick is for the CourseSymbol, it needs at least one PointPaintOperation with the interface IOrientablePointPaintOperation. If a PointPaintOperation supports this interface then it means that the paint operation supports orientation drawing. The GpsDisplay uses such Symbol with such paint operation for the course symbol where the Arrow rotates based on the course.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         ESRI.ArcGIS.Mobile.Gps.GpsDisplay

Requirements

Namespace: ESRI.ArcGIS.Mobile.Gps

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

Assembly: ESRI.ArcGIS.Mobile (in ESRI.ArcGIS.Mobile.dll)

See Also