Class StaticMapTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class StaticMapTag extends ElementTag
A JSP tag to insert a static Google Map on the page.
Since:
6.0
Version:
9.1
Author:
Luke
See Also:
  • Constructor Details

    • StaticMapTag

      public StaticMapTag()
      Creates a new map IMG Tag.
  • Method Details

    • release

      public void release()
      Specified by:
      release in interface Tag
      Overrides:
      release in class ElementTag
    • setMarkers

      public void setMarkers(Collection<MapEntry> mrks)
      Adds markers to the map.
      Parameters:
      mrks - a Collection of MapEntry beans
    • setPath

      public void setPath(Collection<GeoLocation> path)
      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

      public void setCenter(GeoLocation loc)
      Updates the map center.
      Parameters:
      loc - the center
    • setPageContext

      public void setPageContext(PageContext ctx)
      Specified by:
      setPageContext in interface Tag
      Overrides:
      setPageContext in class ElementTag
    • doEndTag

      public int doEndTag() throws JspException
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Throws:
      JspException