Dynamic logo layer


Purpose
In this sample, a custom dynamic layer is used to draw an ESRI logo in the lower left corner of the map display. The logo displayed by this layer does not change, and the following occurs:
  1. The layer uses the compiled phase of the dynamic map's draw phase. The drawing commands are compiled into a display list and reused each time the layer is drawn. The DynamicRecompileRate of the layer is set to an extremely large interval to prevent the display list from expiring.
  2. The layer does not set its dirty flag to true. The logo is static, so there is no need to force it to redraw itself.

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the application
  2. Click the Add ESRI Logo command. The map changes to dynamic mode and adds a custom dynamic layer to display the logo.


Download the files for Java
display/MainApplication.java Contains the user interface (UI) code for the sample
display/AddLogoCommand.java Represents a custom command that sets the map to dynamic mode and adds the logo layer to the map
display/LogoLayer.java Represents a dynamic layer that contains the logic to draw the ESRI logo on the map using the DynamicDisplay application programming interface (API)




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime