|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBodyTagSupport
com.lamatek.tags.google.GoogleMapTag
public class GoogleMapTag
GoogleMapTag This class represents a <googlemaps;map> tag. Developers should not subclass or override this class or it's methods.
| Constructor Summary | |
|---|---|
GoogleMapTag()
|
|
| Method Summary | |
|---|---|
void |
addBox(GoogleMapBoxTag box)
Adds a new GoogleMapBoxTag to this map. |
void |
addCircle(GoogleMapCircleTag circle)
Adds a new GoogleMapCircleTag to this map. |
void |
addCoordinates(GoogleMapCoordinatesTag coords)
Adds a GoogleMapCoordinatesTag to the map. |
void |
addEvent(GoogleMapEventTag event)
Adds a new GoogleMapEventTag to this map. |
void |
addImageOverlay(GoogleMapImageOverlayTag image)
Adds a new image overlay to this map. |
void |
addInsert(GoogleMapInsertTag insert)
Adds an insert to this map. |
void |
addKey(GoogleMapKeyTag key)
Adds a new GoogleMapKeyTag to this map. |
void |
addLabel(GoogleMapLabelTag label)
Adds a label to this map. |
void |
addMapType(GoogleMapMapTypeTag mapType)
Adds a map type to the map storing it by id. |
void |
addMarker(GoogleMapMarkerTag marker)
This method adds a GoogleMapMarkerTag to the map. |
void |
addPoint(GoogleMapPointTag point)
Adds a new GoogleMapPointTag to this map. |
void |
addPolygon(GoogleMapPolygonTag polygon)
Adds a new GoogleMapPolygonTag to this map. |
void |
addPolyline(GoogleMapPolylineTag polyline)
Adds a new GoogleMapPolylineTag to this map. |
void |
addTraffic_tag(GoogleMapTrafficTag traffic)
Adds a new GoogleMapTrafficTag to this map. |
void |
addWMSTag(GoogleMapWMSTag tag)
Adds a wms tag to this map. |
void |
deleteInsert(GoogleMapInsertTag insert)
Removes an insert from the map. |
void |
deleteLabel(GoogleMapLabelTag label)
Removes aa label from the map. |
int |
doEndTag()
Overrides doEndTag from BodyTagSupport. |
int |
doStartTag()
Overrides doStartTag from BodyTagSupport. |
void |
generateDivTag(GoogleMapDivTag div)
Generates the <div> tag that represents the actual map. |
void |
generateInitializationCode()
Generates the javascript code that initializes the map. |
void |
generateJavascript()
Generates the complex javascript/AJAX code the map needs to function. |
void |
generateScriptTag()
Generates the <script> tag that imports the Google Maps API code. |
java.lang.String |
getBody()
Returns the map's body contents. |
GoogleMapBoxTag |
getBox(java.lang.String name)
Retrieves a GoogleMapBoxtag by it's id. |
java.util.Hashtable |
getBoxes()
Returns the list of GoogleMapBoxTags that have been added to this map. |
double |
getCenterLatitude()
Returns the latitude (in decimal form) of the map's current centerpoint. |
double |
getCenterLongitude()
Returns the longitude (in decimal form) of the map's current centerpoint. |
GoogleMapCircleTag |
getCircle(java.lang.String name)
Retrieves a GoogleMapCircletag by it's id. |
java.util.Hashtable |
getCircles()
Returns the list of GoogleMapCircleTags that have been added to this map. |
GoogleMapClusterTag |
getClusterer()
Returns the current clusterer tag, or null if not defined. |
java.util.Vector |
getEvents()
Returns the list of all GoogleMapEventTags supported by this map. |
java.lang.String |
getHeight()
Returns the height of this map in pixels. |
java.lang.String |
getId()
Returns the id of this map. |
GoogleMapImageOverlayTag |
getImageOverlay(java.lang.String name)
Retrieves a GoogleMapImageOverlayTag by it's id. |
java.util.Hashtable |
getImageOverlays()
Returns the list of GoogleMapImageOverlayTags that have been added to this map. |
java.util.Vector |
getInserts()
Returns the list of map inserts in a Vector. |
java.util.Hashtable |
getKeys()
Returns the list of GoogleMapKeyTags that have been added to this map. |
java.util.Vector |
getLabels()
Returns the list of map labels in a Vector. |
java.lang.String |
getLanguage()
Returns the currently designated default language. |
double |
getLargeLat()
Returns the largest latitude (in decimal form) of all points stored in this map. |
double |
getLargeLon()
Returns the largest longitude (in decimal form) of all points located within this map. |
GoogleMapMapTypeTag |
getMapType(java.lang.String id)
Returns the GoogleMapMapTypeTag with the given id or null if it cannot be found. |
java.util.Hashtable |
getMapTypes()
Returns a list of all the GoogleMapMapTypeTags to be rendered by this map. |
GoogleMapMarkerTag |
getMarker(java.lang.String name)
Retrieves a GoogleMapMarkerTag by it's id. |
java.util.Hashtable |
getMarkers()
Returns a list of all GoogleMapMarkerTags added to this map, keyed on their ids. |
int |
getMaxZoom()
Returns the maximum allowable zoom level for this map. |
GoogleMapMessageTag |
getMessage()
Returns the current message tag, or null if not defined. |
int |
getMinZoom()
Returns the minimum allowable zoom level for this map. |
GoogleMapOverviewTag |
getOverviewControl()
Returns the currently defined GoogleMapOverviewTag defined for this map. |
java.util.Hashtable |
getPoints()
Returns a list of all the GoogleMapPointTags added to this map. |
GoogleMapPolygonTag |
getPolygon(java.lang.String name)
Retrieves a GoogleMapPolygonTag by it's id. |
java.util.Hashtable |
getPolygons()
Returns a list of all the GoogleMapPolygonTags to be rendered by this map. |
GoogleMapPolylineTag |
getPolyline(java.lang.String name)
Retrieves a GoogleMapPolylineTag by it's id. |
java.util.Hashtable |
getPolylines()
Returns a list of all the GoogleMapPolylineTags to be rendered by this map. |
java.lang.String |
getScope()
Returns the scope of this map ("site" | "page"). |
double |
getSmallLat()
Returns the smalles latitude (in decimal form) of all points in this map. |
double |
getSmallLon()
Returns the smalles longitude (in decimal form) of all points in this map. |
java.lang.String |
getType()
Returns the current map type (map | satellite | hybrid). |
java.lang.String |
getVersion()
Returns the version of the Google Maps API used by this map. |
java.lang.String |
getWidth()
Returns the width of this map in pixels. |
GoogleMapWMSTag |
getWms(java.lang.String id)
Returns a GoogleMapWMSTag with the given id, or null if a tag with that id is not present. |
java.util.Hashtable |
getWmsTypes()
Returns a Hashtable of GoogleMapWMSTags, keyed by id, or null if none exist in this map. |
java.lang.String |
getXml()
Returns the URL to the XML file or generator that is to provide map data for points, overlays and events for this map. |
int |
getZoom()
Returns the current zoom level of this map. |
int |
getZoomControlSize()
Returns the zoom control size for this map. |
boolean |
isBound()
Returns whether or not this map is bound to it's contents. |
boolean |
isDebug()
Denotes whether or not debugging is turned on for this map. |
boolean |
isHeadless()
Denotes whether or not this map is in headless mode. |
boolean |
isMouseWheelSupport()
Denotes whether or not this map supports mouseWheel zoom control. |
boolean |
isPanEnabled()
Denotes whether or not pan control is enabled. |
boolean |
isShowDaylight()
Denotes whether or not the map is set to display current day and nighttime light conditions. |
boolean |
isShowPanControl()
Denotes whether or not this map shows pan controls. |
boolean |
isShowScaleControl()
Denotes whether or not this map displays a scale. |
boolean |
isShowTypeControl()
Denotes whether or not this map shows type controls. |
boolean |
isShowZoomControl()
Denotes whether ot not this map shows zoom controls. |
void |
removeMapType(java.lang.String id)
Removes the map type with the given id. |
void |
removeMarker(GoogleMapMarkerTag marker)
Removes a previously added GoogleMapMarkerTag from this map. |
void |
setBody(java.lang.String body)
Sets the body content of the map. |
void |
setBound(boolean bound)
Sets the bound state of this map. |
void |
setBoxes(java.util.Hashtable boxes)
Sets the GoogleMapBoxTag boxes to be rendered by this map. |
void |
setCenterLatitude(double latitude)
Sets the latitude of the map's centerpoint. |
void |
setCenterLongitude(double longitude)
Sets the longitude of the map's centerpoint. |
void |
setCircles(java.util.Hashtable circles)
Sets the GoogleMapCircleTags to be rendered by this map. |
void |
setClusterer(GoogleMapClusterTag clusterer)
Sets the cluster tag to used to cluster markers. |
void |
setDebug(boolean debug)
Turns debugging on or off for this map. |
void |
setEvents(java.util.Vector events)
Sets the list of GoogleMapEventTags supported by this map. |
void |
setHeadless(boolean headless)
Sets headless mode for this map. |
void |
setHeight(java.lang.String height)
Sets the width of this map in pixels. |
void |
setId(java.lang.String id)
Sets the id for this map. |
void |
setImageOverlays(java.util.Hashtable images)
Sets the GoogleMapImageOverlayTags to be rendered by this map. |
void |
setInserts(java.util.Vector inserts)
Sets the list of inserts to display on the map. |
void |
setKeys(java.util.Hashtable keys)
Sets the list of GoogleMapKeyTags for this map. |
void |
setLabels(java.util.Vector labels)
Sets the list of labels to display on the map. |
void |
setLanguage(java.lang.String language)
Sets the desired default 2-digit language code. |
void |
setLargeLat(double largeLat)
Sets the largest latitude (in decimal form) for this map. |
void |
setLargeLon(double largeLon)
Sets the largest longitude (in decimal form) for this map. |
void |
setMapTypes(java.util.Hashtable mapTypes)
Sets the list of GoogleMapMapTypeTags to be rendered by this map. |
void |
setMarkers(java.util.Hashtable markers)
Sets the list of the GoogleMapMarkerTags to be rendered by this map. |
void |
setMaxZoom(int maxZoom)
Sets the maximum allowable zoom level for this map. |
void |
setMessage(GoogleMapMessageTag message)
Sets the message tag to display when loading or when actions are fired. |
void |
setMinZoom(int minZoom)
Sets the minimum allowable zoom level for this map. |
void |
setMouseWheelSupport(boolean mouseWheelSupport)
Sets whether or not to generate the javascript needed to support mousewheel zoom control. |
void |
setOverviewControl(GoogleMapOverviewTag overviewControl)
Sets the GoogleMapOverviewTag to use for this map. |
void |
setPanControl(GoogleMapPanControlTag control)
Sets the singleton GoogleMapPanControlTag used by this map. |
void |
setPanEnabled(boolean panEnabled)
Sets whether or not users should be able to pan the map. |
void |
setPoints(java.util.Hashtable points)
Sets the list of GoogleMapPointTags to be used by overlays in this map. |
void |
setPolygons(java.util.Hashtable polygons)
Sets the list of GoogleMapPolygonTags to be rendered by this map. |
void |
setPolylines(java.util.Hashtable polylines)
Sets the list of GoogleMapPolylineTags to be rendered by this map. |
void |
setScaleControl(GoogleMapScaleControlTag control)
Sets the singleton GoogleMapScaleControlTag used by this map. |
void |
setScope(java.lang.String scope)
Sets the scope of the map. |
void |
setShowDaylight(boolean showDaylight)
Allows the map to display where the current day/night conditions are. |
void |
setShowPanControl(boolean showPanControl)
Sets whether or not to generate the javascript needed to show the pan control. |
void |
setShowScaleControl(boolean showScaleControl)
Sets whether or not this map should display a scale control. |
void |
setShowTypeControl(boolean showTypeControl)
Sets whether or not to generate the javascript needed to show the type control. |
void |
setShowZoomControl(boolean showZoomControl)
Sets whether or not to generate the javascript needed to show the zoom control. |
void |
setSmallLat(double smallLat)
Sets the smallest latitude (in decimal form) of all points in this map. |
void |
setSmallLon(double smallLon)
Sets the smallest longitude (in decimal form) of all points in this map. |
void |
setType(java.lang.String type)
Sets the map type (map | satellite | hybrid) to display. |
void |
setTypeControl(GoogleMapTypeControlTag control)
Sets the singleton GoogleMapTypeControlTag used by this map. |
void |
setVersion(java.lang.String version)
Sets the Google Maps API version to use. |
void |
setWheelControl(GoogleMapWheelControlTag control)
Sets the singleton GoogleMapWheelControlTag used by this map. |
void |
setWidth(java.lang.String width)
Sets the width of this map in pixels. |
void |
setXml(java.lang.String xml)
Sets the URL for the XML file or generator that is to provide map data for points, overlays and events for this map. |
void |
setZoom(int zoom)
Set the zoom level of the map. |
void |
setZoomControl(GoogleMapZoomControlTag control)
Sets the singleton GoogleMapZoomControlTag used by this map. |
void |
setZoomControlSize(int zoomControlSize)
Sets the zoom control size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GoogleMapTag()
| Method Detail |
|---|
public int doStartTag()
public int doEndTag()
public void addMarker(GoogleMapMarkerTag marker)
marker - An initialized GoogleMapMarkerTag.public void removeMarker(GoogleMapMarkerTag marker)
marker - The GoogleMapMarkerTag to remove.public GoogleMapMarkerTag getMarker(java.lang.String name)
name - The id of the GoogleMapMarkerTag to retrieve.
public void addMapType(GoogleMapMapTypeTag mapType)
mapType - An initialized GoogleMapMapTypeTagpublic GoogleMapMapTypeTag getMapType(java.lang.String id)
public void removeMapType(java.lang.String id)
id - The id of the map type to remove.public GoogleMapBoxTag getBox(java.lang.String name)
name - The id of the GoogleMapBoxTag to retrieve.
public GoogleMapCircleTag getCircle(java.lang.String name)
name - The id of the GoogleMapCircleTag to retrieve.
public GoogleMapImageOverlayTag getImageOverlay(java.lang.String name)
name - the id of the GoogleMapImageOvelay to retrieve.
public GoogleMapPolygonTag getPolygon(java.lang.String name)
name - The id of the GoogleMapPolygonTag to retrieve.
public GoogleMapPolylineTag getPolyline(java.lang.String name)
name - The id of the GoogleMapPolylineTag to retrieve.
public void addPoint(GoogleMapPointTag point)
point - The initialized GoogleMapPointTag to add.public void addCircle(GoogleMapCircleTag circle)
circle - The initialized GoogleMapCircleTag to add.public void addImageOverlay(GoogleMapImageOverlayTag image)
image - The initialized GoogleMapImageOverlayTag to add.public void addTraffic_tag(GoogleMapTrafficTag traffic)
traffic_tag - The initialized GoogleMapTrafficTag to add.public void addPolygon(GoogleMapPolygonTag polygon)
polygon - The initialized GoogleMapPolygonTag to add.public void addPolyline(GoogleMapPolylineTag polyline)
polyline - The initialized GoogleMapPolylineTag to add.public void addBox(GoogleMapBoxTag box)
box - The initialized GoogleMapBoxTag to add.public void addEvent(GoogleMapEventTag event)
addEvent in interface GoogleMapEventListenerevent - The initialized GoogleMapEventTag to add.public void addKey(GoogleMapKeyTag key)
key - The initialized GoogleMapKeyTag to add.public void setPanControl(GoogleMapPanControlTag control)
control - The initialized GoogleMapPanControlTag to add.public void setWheelControl(GoogleMapWheelControlTag control)
control - The initialized GoogleMapWheelControlTag to add.public void setTypeControl(GoogleMapTypeControlTag control)
control - The initialized GoogleMapTypeControlTag to add.public void setScaleControl(GoogleMapScaleControlTag control)
control - The initialized GoogleMapScaleControlTag to add.public void setZoomControl(GoogleMapZoomControlTag control)
control - The initialized GoogleMapZoomControlTag to add.public void setHeight(java.lang.String height)
height - The heigt of this map in pixels.public void setId(java.lang.String id)
id - The id for this map.public void setType(java.lang.String type)
type - The map type to display (map | satellite | hybrid).public void setVersion(java.lang.String version)
version - The API version to load.public void setWidth(java.lang.String width)
width - The width of the map in pixels.public void setMouseWheelSupport(boolean mouseWheelSupport)
mouseWheelSupport - Set to true (to enable) or false (to disable) mousewheel zoom support.public void setShowPanControl(boolean showPanControl)
showPanControl - Set to true (to enable) or false (to disable) pan controls.public void setShowTypeControl(boolean showTypeControl)
showTypeControl - Set to true (to enable) or false (to disable) type controls.public void setShowZoomControl(boolean showZoomControl)
showZoomControl - Set to true (to enable) or false (to disable) zoom controls.public void setZoom(int zoom)
zoom - The zoom level of the map.public void setScope(java.lang.String scope)
scope - The scope where to store the map data.public void setBody(java.lang.String body)
body - The body content for this map.public void setCenterLatitude(double latitude)
latitude - The latitude (in decimal form) to use as the centerpoint for the map.public void setCenterLongitude(double longitude)
longitude - The longitude (in decimal form) to use as the centerpoint for the map.public void generateDivTag(GoogleMapDivTag div)
div - The GoogleMapDivTag that renders the output.public void generateScriptTag()
public void generateInitializationCode()
public void generateJavascript()
public java.util.Hashtable getBoxes()
public void setBoxes(java.util.Hashtable boxes)
boxes - A Hashtable of GoogleMapBoxTags.public java.util.Hashtable getCircles()
public java.util.Hashtable getImageOverlays()
public void setCircles(java.util.Hashtable circles)
circles - A Hashtable of GoogleMapCircleTags keyed by id.public void setImageOverlays(java.util.Hashtable images)
images - A Hahtable of GoogleMapImageOverlayTags keyed by id.public java.util.Hashtable getKeys()
public void setKeys(java.util.Hashtable keys)
keys - A Hashtable of GoogleMapKeyTags keyed by domain name.public double getLargeLat()
public void setLargeLat(double largeLat)
public double getLargeLon()
public void setLargeLon(double largeLon)
public java.util.Hashtable getMarkers()
public void setMarkers(java.util.Hashtable markers)
markers - A Hashtable of GoogleMapMarkerTags keyed on their ids.public boolean isPanEnabled()
public void setPanEnabled(boolean panEnabled)
panEnabled - True or false.public java.util.Hashtable getPoints()
public void setPoints(java.util.Hashtable points)
points - A Hashtable of GoogleMapPointTags keyed on their ids.public java.util.Hashtable getPolygons()
public void setPolygons(java.util.Hashtable polygons)
polygons - A Hashtable of GoogleMapPolygonTags keyed by id.public java.util.Hashtable getMapTypes()
public void setMapTypes(java.util.Hashtable mapTypes)
mapTypes - A Hashtable of GoogleMapMapTypeTags keyed by id.public java.util.Hashtable getPolylines()
public void setPolylines(java.util.Hashtable polylines)
polylines - A Hashtable of GoogleMapPolylineTags keyed by id.public boolean isShowScaleControl()
public void setShowScaleControl(boolean showScaleControl)
showScaleControl - True to show scale, false if not.public double getSmallLat()
public void setSmallLat(double smallLat)
smallLat - The smallest latitude in this map.public double getSmallLon()
public void setSmallLon(double smallLon)
smallLon - The smallest longitude in this map.public int getZoomControlSize()
public void setZoomControlSize(int zoomControlSize)
zoomControlSize - The desired zoom control size.public java.lang.String getBody()
public double getCenterLatitude()
public double getCenterLongitude()
public java.lang.String getHeight()
public boolean isMouseWheelSupport()
public java.lang.String getScope()
public boolean isShowPanControl()
public boolean isShowTypeControl()
public boolean isShowZoomControl()
public java.lang.String getType()
public java.lang.String getVersion()
public java.lang.String getWidth()
public int getZoom()
public java.util.Vector getEvents()
getEvents in interface GoogleMapEventListenerpublic void setEvents(java.util.Vector events)
events - A Vector of GoogleMapEventTags.public java.lang.String getId()
public GoogleMapMessageTag getMessage()
public void setMessage(GoogleMapMessageTag message)
message - A valid GoogleMapMessageTagpublic java.lang.String getXml()
public void setXml(java.lang.String xml)
xml - A valid URL to an XML file or generator that validates against the public DTD http://www.lamatek.com/GoogleMaps/dtds/googlemaps.dtdpublic GoogleMapOverviewTag getOverviewControl()
public void setOverviewControl(GoogleMapOverviewTag overviewControl)
overviewControl - an initialized GoogleMapOverviewTagpublic GoogleMapClusterTag getClusterer()
public void setClusterer(GoogleMapClusterTag clusterer)
clusterer - A valid GoogleMapClusterTagpublic void addWMSTag(GoogleMapWMSTag tag)
tag - An initialized GoogleMapWMSTagpublic GoogleMapWMSTag getWms(java.lang.String id)
public java.util.Hashtable getWmsTypes()
public boolean isDebug()
public void setDebug(boolean debug)
debug - True to turn on debugging, false to turn it off.public void addLabel(GoogleMapLabelTag label)
label - An initialized GoogleMapLabelTagpublic void deleteLabel(GoogleMapLabelTag label)
label - A label to remove from the map.public void setLabels(java.util.Vector labels)
labels - A Vector containing GoogleMapLabelTag objects.public java.util.Vector getLabels()
public boolean isHeadless()
public void setHeadless(boolean headless)
headless - True or false.public int getMaxZoom()
public void setMaxZoom(int maxZoom)
maxZoom - zoom level as an int.public int getMinZoom()
public void setMinZoom(int minZoom)
minZoom - zoom level as an int.public boolean isBound()
public void setBound(boolean bound)
bound - Sets the bound state of this map.public void deleteInsert(GoogleMapInsertTag insert)
insert - An insert to remove from the map.public void addInsert(GoogleMapInsertTag insert)
insert - An initialized GoogleMapInsertTagpublic void setInserts(java.util.Vector inserts)
inserts - A Vector containing GoogleMapInsertTag objects.public java.util.Vector getInserts()
public void addCoordinates(GoogleMapCoordinatesTag coords)
coords - An initialized GoogleMapCoordinates Tag.public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language - The 2-figit language code to use.public boolean isShowDaylight()
public void setShowDaylight(boolean showDaylight)
showDaylight - true to show, false if not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||