Articles and Tutorials

GSIcon

Specifies the images that are used to represent a feature on the map. The way in which the icon is created is dependent upon the icon image's file type. For example PNG images with alpha transparency will use the AlphaImageLoader filter on Internet Explorer to ensure transparency is handled correctly.
Object
|
+--GSIcon
Field Summary
 String alt
          The text to be displayed as a tool tip when the user mouses over the icon
 GSPoint iconInfoWindowOffset
          The pixel offset relative to the top left corner of the icon that should be used to position the info window with respect to this icon's pixel coordinate
 GSPoint iconOffset
          The pixel offset relative to the top left corner of the icon that should be used to position this icon with respect to the feature's pixel coordinate
 Array imageMap
          An int array that specifies the x/y coordinates of the image map that defines the clickable part of the icon image
 String imageMapShape
          The image map shape.
 GSDimension imageSize
          The size of the icon foreground image
 String imageSrc
          The URL for the icon image
 GSDimension printSize
          The size of the icon print image
 String printSrc
          The URL for the icon print image
 GSDimension shadowSize
          The size of the icon shadow image
 String shadowSrc
          The URL for the icon shadow image
 
Constructor Summary
GSIcon (<GSIcon> copy)
            Creates a new GSIcon.
 
Method Summary
 String toString()
           Outputs information about this icon as a String

Field Detail

alt

String alt
    The text to be displayed as a tool tip when the user mouses over the icon

iconInfoWindowOffset

GSPoint iconInfoWindowOffset
    The pixel offset relative to the top left corner of the icon that should be used to position the info window with respect to this icon's pixel coordinate

iconOffset

GSPoint iconOffset
    The pixel offset relative to the top left corner of the icon that should be used to position this icon with respect to the feature's pixel coordinate

imageMap

Array imageMap
    An int array that specifies the x/y coordinates of the image map that defines the clickable part of the icon image

imageMapShape

String imageMapShape
    The image map shape. Can be one of rect, circle, poly. Defaults to poly.

imageSize

GSDimension imageSize
    The size of the icon foreground image

imageSrc

String imageSrc
    The URL for the icon image

printSize

GSDimension printSize
    The size of the icon print image

printSrc

String printSrc
    The URL for the icon print image

shadowSize

GSDimension shadowSize
    The size of the icon shadow image

shadowSrc

String shadowSrc
    The URL for the icon shadow image
Constructor Detail

GSIcon

GSIcon(<GSIcon> copy)
    Creates a new GSIcon. If a reference to an existing icon is provided as the copy parameter its properties will be copied to the new icon instance.
  •  
      copy - an existing icon whose properties will be copied to the new icon
  • Parameters:
Method Detail

toString

String toString()
    Outputs information about this icon as a String
  •  
      information about this icon as a String
  • Returns: