org.deltava.taglib.googlemap
Class MarkerArrayTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.JSTag
org.deltava.taglib.googlemap.GoogleMapEntryTag
org.deltava.taglib.googlemap.MarkerArrayTag
- All Implemented Interfaces:
- Serializable, IterationTag, JspTag, Tag
public class MarkerArrayTag
- extends GoogleMapEntryTag
A JSP Tag to generate a JavaScript array of Google Maps v2 GMarkers.
- Since:
- 1.0
- Version:
- 2.2
- Author:
- Luke
- See Also:
- Serialized Form
|
Method Summary |
int |
doEndTag()
Renders the tag data to the JSP output stream, generating a JavaScript array with a number of Google Maps
markers. |
void |
release()
Releases the tag's state variables. |
void |
setColor(String color)
Sets the icon color for these markers. |
void |
setItems(Collection<GeoLocation> points)
Sets the points used to generate the array. |
void |
setMarker(boolean useMarker)
Forces the marker to be rendered using a marker image instead of a Google Earth icon. |
| Methods inherited from class org.deltava.taglib.JSTag |
setVar |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkerArrayTag
public MarkerArrayTag()
setColor
public void setColor(String color)
- Sets the icon color for these markers. This overrides any color provided by the points.
- Parameters:
color - the icon color- See Also:
MarkerMapEntry.getIconColor()
setMarker
public void setMarker(boolean useMarker)
- Forces the marker to be rendered using a marker image instead of a Google Earth icon.
- Parameters:
useMarker - TRUE if a marker must be used, otherwise FALSE
setItems
public void setItems(Collection<GeoLocation> points)
- Sets the points used to generate the array.
- Parameters:
points - a Collection of GeoLocations
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 data to the JSP output stream, generating a JavaScript array with a number of Google Maps
markers.
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class TagSupport
- Returns:
- TagSupport.EVAL_PAGE always
- Throws:
JspException - if a network error occurs
Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.