Class InsertGoogleAPITag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.googlemap.InsertGoogleAPITag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class InsertGoogleAPITag extends TagSupport
A JSP Tag to insert a JavaScript link to the Google Maps API.
Since:
1.0
Version:
11.6
Author:
Luke
See Also:
  • Field Details

  • Constructor Details

    • InsertGoogleAPITag

      public InsertGoogleAPITag()
  • Method Details

    • setVersion

      public void setVersion(int ver)
      Sets the Google API version to pull down.
      Parameters:
      ver - the API major version
    • setMinor

      public void setMinor(String ver)
      Sets the Google API revision to pull down.
      Parameters:
      ver - the API minor version.
    • setCycle

      public void setCycle(String c)
      Sets the Google Maps release cycle to use.
      Parameters:
      c - the cycle name
    • setLibraries

      public void setLibraries(String libList)
      Sets the Google Maps v3 libraries to load.
      Parameters:
      libList - a comma-separated list of libraries
    • setJs

      public void setJs(String jsList)
      Sets the Javascript libraries to load after the API is loaded.
      Parameters:
      jsList - a comma-separated list of libraries
    • setCallback

      public void setCallback(String cb)
      Sets the JavaScript callback function to be called when the Google Maps API has completed loading.
      Parameters:
      cb - the callback function name
    • setPageContext

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

      public void release()
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport
    • doEndTag

      public int doEndTag() throws JspException
      Renders the JSP tag.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      JspException - if no Google Maps API key defined