How to use
See How to use ArcGIS samples for help on running the sample.
- Run the sample.
- Click the Add OpenGL Compass command. A compass is added to the map.
- Use the Rotate tool to rotate the map. The compass rotates with the map.
If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.
|display/CompassApplication.java||Creates the graphical user interface (GUI) for the sample.|
|display/ShowCompassCommand.java||Represents a command that sets the map in dynamic mode. The command attaches a map event listener, which draws the compass using JOGL in each AfterDynamicDraw event. It also attaches a display transformation event listener to rotate the compass as the map is rotated.|
|display/ImageTexturizer.java||Reads the compass.gif image file and returns a byte representation that can be used with the JOGL API to draw the image on the map.|
|Development licensing||Deployment licensing|
|Engine Developer Kit||Engine|
|ArcGIS for Desktop Basic|