Class BoundsTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class BoundsTag extends GoogleMapEntryTag
A JSP tag to create a Google Maps LatLngBounds object.
Since:
6.3
Version:
7.3
Author:
Luke
See Also:
  • Constructor Details

    • BoundsTag

      public BoundsTag()
  • Method Details

    • setItems

      public void setItems(Collection<GeoLocation> pts)
      Sets the points to use to calculate the bounding box.
      Parameters:
      pts - a Collection of GeoLocation objects
    • release

      public void release()
      Releases the tag's state variables.
      Specified by:
      release in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class JSTag
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Renders the tag to the JSP output stream, generating a Google Maps LatLngBounds.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      TagSupport.EVAL_PAGE always
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs