Class BoundsTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

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 Tag
      Overrides:
      release in class JSTag
    • doEndTag

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