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:
- 9.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.html.ElementTag
_classes, _data, _out
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()
void
release()
void
setCenter
(GeoLocation loc) Updates the map center.void
setH
(int h) Sets the height of the map image.void
setMarkers
(Collection<MapEntry> mrks) Adds markers to the map.void
void
setPath
(Collection<GeoLocation> path) Adds a path to the map.void
setScale
(int s) void
setW
(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, setStyle
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods 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:
release
in interfaceTag
- Overrides:
release
in 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:
setPageContext
in interfaceTag
- Overrides:
setPageContext
in classElementTag
-
doEndTag
- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Throws:
JspException
-