Class GIcon

    • Constructor Detail

      • GIcon

        public GIcon()
      • GIcon

        public GIcon​(String image)
      • GIcon

        public GIcon​(char character)
    • Method Detail

      • getId

        public String getId()
      • setSchema

        public GIcon setSchema​(String schema)
      • getSize

        public GSize getSize()
      • setSize

        public GIcon setSize​(GSize size)
        The display size of the sprite or image. When using sprites, you must specify the sprite size. If the size is not provided, it will be set when the image loads.
      • getOrigin

        public GPoint getOrigin()
      • setOrigin

        public GIcon setOrigin​(GPoint origin)
        The position of the image within a sprite, if any. By default, the origin is located at the top left corner of the image (0, 0).
      • getScaledSize

        public GSize getScaledSize()
      • setScaledSize

        public GIcon setScaledSize​(GSize scaledSize)
        The size of the entire image after scaling, if any. Use this property to stretch/shrink an image or a sprite.
      • getAnchor

        public GPoint getAnchor()
      • setAnchor

        public GIcon setAnchor​(GPoint anchor)
        The position at which to anchor an image in correspondance to the location of the marker on the map. By default, the anchor is located along the center point of the bottom of the image.
      • getUrl

        public String getUrl()