Class BoundsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.JSTag
org.deltava.taglib.googlemap.GoogleMapEntryTag
org.deltava.taglib.googlemap.BoundsTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to create a Google Maps LatLngBounds object.
- Since:
- 6.3
- Version:
- 7.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.googlemap.GoogleMapEntryTag
API_JS_NAME
Fields inherited from class org.deltava.taglib.JSTag
_jsVarName
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Renders the tag to the JSP output stream, generating a Google Maps LatLngBounds.void
release()
Releases the tag's state variables.void
setItems
(Collection<GeoLocation> pts) Sets the points to use to calculate the bounding box.Methods inherited from class org.deltava.taglib.googlemap.GoogleMapEntryTag
doStartTag, generateIconMarker, generateMarker, getAPIVersion
Methods inherited from class org.deltava.taglib.JSTag
setConst, setVar, writeVariableName
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
BoundsTag
public BoundsTag()
-
-
Method Details
-
setItems
Sets the points to use to calculate the bounding box.- Parameters:
pts
- a Collection of GeoLocation objects
-
release
-
doEndTag
Renders the tag to the JSP output stream, generating a Google Maps LatLngBounds.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE always
- Throws:
JspException
- if an error occurs
-