Contents - Index


Theme and Menu Variables

       
Variables are used in menu commands in Themes, or in menu.cfg file.  Typically used to create URLs with information from currently selected items, or from the pointer location on the main map.

#dir# - Application directory
#app# - Application Executable Name
#cpy# - Copyright
      #x#  -  x position of mouse - degrees if UTM or Geographic Projection
      #y#  -  y position of mouse - degrees if UTM or Geographic Projection
#ux# -  Unsigned x position - use with #xhem#
#uy# -  Unsigned y position - use with #yhem#
      #slat#  - South Latitude  (y * -1), rounded to .xx degrees
      #wlon#  - West Longitude  (x * -1), rounded to .xx degrees
      #nlat#  - North Latitude x  rounded to .xx degrees
      #elon#  - East Longitude y  rounded to .xx degrees
      #dx#    - Degrees Longitude  unsigned
      #mx#    - Minutes Longitude  unsigned
      #sx#    - Seconds Longitude  unsigned
      #dy#    - Degrees Latitude  unsigned
      #my#    - Minutes Latitude  unsigned
      #sy#    - Seconds Latitude  unsigned
      #xhem#  - E or W  (east or West)
      #yhem#  - N or S  (North or South)
      #ty#  - Top of map y
      #by#  - Bottom of map y
      #lx#  - Left of map x
      #rx#  - Right of map x
      #w#  -  Width of map1 display in x units rounded to .x
      #h#  -  Height of map1 display in y units rounded to .x
      #z#  -  z position (if available)
      #c#  -  cachedir
      #i#  -  image.ext
      #p#  -  image.path
      #f#  -  Current selected Field Data
      #jfnm# - Jpeg file name of selected Jpeg file
      #l#  -  current selected layer name
      #n#  -  Current selected Field Name
      #ml# -  Maps width in miles
#scl# - current map scale

#prmt# - Prompts for Text data
  Example http://google.com?q=#prmt#
  For use in Menus and Links only.

      ##----## -  is data of Field name in layer 0 -  example ##ZIP## would use    current value of ZIP field
 
                Can use Lcase, Ucase and Format within the ##----##
                  Example:  ##Lcase(state##  -  if state is CA, will return ca    
   Example:  ##Ucase(state##  -  if state is ca, will return CA
   Example:  ##Format(STORE,0000##  -  if STORE is 3, will return      0003
File, Path, FileExt functions
  if FILE = \slides\directory\image001.jpg
   example: ##File(FILE## - returns image001
    ##FileExt(FILE## - image001.jpg
    ##Path(FILE## - \slides\directory\
JPG Exif Info
  ##ExifTag(exiftagnumber##
   Replace exiftagnumber with a valid Exif Field number
   Example:  ##ExifTag(37377       - returns Shutter Speed  

   To Specify field data from a different layer:
  Example: ##(states)STATE_NAME##  - Use the STATE_NAME field data from     Layer=states <