Class StaticMapTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.googlemap.StaticMapTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP tag to insert a static Google Map on the page.
- Since:
- 6.0
- Version:
- 12.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class ElementTag
_classes, _data, _outModifier and TypeFieldDescriptionprotected final Collection<String> protected final XMLRendererprotected jakarta.servlet.jsp.JspWriterFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()voidrelease()voidsetCenter(GeoLocation loc) Updates the map center.voidsetH(int h) Sets the height of the map image.voidsetMarkers(Collection<MapEntry> mrks) Adds markers to the map.voidsetPageContext(jakarta.servlet.jsp.PageContext ctx) voidsetPath(Collection<GeoLocation> path) Adds a path to the map.voidsetScale(int s) voidsetW(int w) Sets the width of the map image.Methods inherited from class ElementTag
doStartTag, getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setStyleModifier and TypeMethodDescriptionintprotected intGets and increments the current tab index count for the parent form tag.protected StringgetName()Returns the type of HTML element this tag generated.protected FormTagReturns the parent form tag.voidsetClassName(String cName) Sets the CSS class name of this HTML element.voidSets the ID of this HTML element.protected voidsetNumericAttr(String attrName, int value, int minValue) Sets a numeric attribute.voidAssociates a CSS style with this HTML element.Methods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAModifier and TypeMethodDescriptionprotected HTTPContextDataFetches the browser data.protected booleanReturns whether the user has passed CAPTCHA validation.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
StaticMapTag
public StaticMapTag()Creates a new map IMG Tag.
-
-
Method Details
-
release
public void release()- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classElementTag
-
setMarkers
Adds markers to the map.- Parameters:
mrks- a Collection of MapEntry beans
-
setPath
Adds a path to the map.- Parameters:
path- a Collection of GeoLocations
-
setH
public void setH(int h) Sets the height of the map image.- Parameters:
h- the height in pixels
-
setW
public void setW(int w) Sets the width of the map image.- Parameters:
w- the width in pixels
-
setScale
public void setScale(int s) -
setCenter
-
setPageContext
public void setPageContext(jakarta.servlet.jsp.PageContext ctx) - Specified by:
setPageContextin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classElementTag
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspException- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-