Class StaticMapTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.googlemap.StaticMapTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
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 org.deltava.taglib.html.ElementTag
_classes, _data, _outFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.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.voidvoidsetPath(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 org.deltava.taglib.html.ElementTag
doStartTag, getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setStyleMethods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext, passedCAPTCHAMethods inherited from class javax.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 interfaceTag- 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
- Specified by:
setPageContextin interfaceTag- Overrides:
setPageContextin classElementTag
-
doEndTag
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Throws:
JspException
-