Class MapDIVTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class MapDIVTag extends ElementTag
A JSP Tag to insert a DIV element to store a Google Map.
Since:
1.0
Version:
6.3
Author:
Luke
See Also:
  • Constructor Details

    • MapDIVTag

      public MapDIVTag()
      Creates a new map DIV Tag.
  • Method Details

    • setHeight

      public void setHeight(int h)
      Sets the preferred height of the map, assuming a screen height of 800 pixels. The actual size of the map will be scaled relative to the client window.
      Parameters:
      h - the preferred height in pixels
    • release

      public void release()
      Releases the tag's state variables.
      Specified by:
      release in interface Tag
      Overrides:
      release in class ElementTag
    • doStartTag

      public int doStartTag() throws JspException
      Checks for the Google Maps API JavaScript tag, and loads the screen size from the user session.
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class ElementTag
      Returns:
      TagSupport.SKIP_BODY
      Throws:
      JspException - if the Google Maps JavaScript file is not included
    • doEndTag

      public int doEndTag() throws JspException
      Renders the Google Map DIV tag to the JSP output stream.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      JspException - if an error occurs