GoogleMaps JSP Taglibrary  

Google:maps
Download binaries, source and documentation

NOTE: The current version of Google:map is beta. Considerable changes were made to the taglibrary that make it incompatible with previous versions. These changes increased performance, greatly simplified the taglibrary and make it easier to integrate with other taglibraries. If you have downloaded Google:maps before March 1st, you should discontinue use and download the newest version. All future versions will be based on this beta.

[ Binaries | Source | Documentation | Miscellaneous ]

Binaries

This is the compiled taglibrary, complete with TLD file. Simply download and plop this in the /WEB-INF/lib directory of your webapp.

NameVersionFile
googlemaps.jar0.98c BetaDownload

Sourcecode

This is the raw java sourcecode. To compile you will need the J2EE library and a java compiler.

NameVersionFile
source.zip0.98c BetaDownload

Documentation

This is a .zip file that contains the TLD documentation for Google:maps for offline viewing.

NameVersionFile
docs.zip0.98c BetaDownload

This is a .zip file that contains the javadoc documentation for Google:maps for offline viewing.

NameVersionFile
javadocs.zip0.98c BetaDownload

Miscellaneous

These are .js (javascript) files that contain the javascript necessary for the <googlemaps:cluster> tag and <googlemaps:wms> tags to function. You will only need them if you plan to use marker clustering or WMS layers in your maps.

NameVersionFile
Clusterer.js0.91Download
Clusterer2.js0.94Download
wms1.js0.95Download
wms2.js0.97Download

Change History

VersionNotes
0.98c Beta

Added the content attribute to the label tag to allow content to be set dynamically. Modified the TLD to expose it.

0.98b Beta

Modified the GoogleMapTag rendering of events to allow for event URLs that contain parameters. For example, you can now specify a url like 'http://www.mysite.com?user=freddy' which will then return the freddy parameter as well as the additional event parameters.

Also attempted to improve the key search algorithm to accommodate keys for urls that specify ports and subdirectories.

0.98a Beta

Fixed a bug in the GoogleMapTag that improperly escaped infowindows anytime a css_class value was specified.

0.98 Beta

Added the language attribute to the <googlemaps:map> tag to provide some i18n support. Modified the DTD so the zoom level attribute for the <map> Element would be implied. The default setting of 8 was preventing maps from autosizing if no zoom level was set. Added the showDaylight attribute to the map tag to enable the ability to display where it is currently light and dark. Modified the DTD and XMLParser class to support the language and showDisplay attributes.

0.97 Beta

Modified the wms2.js script to properly display copyright information for maps both before and after v2.45. If you use WMS maps please be sure to download the updated file. Added a style and css_class attribute to both the <googlemaps:infowindow> and <googlemaps:tabbedInfoWindow> tags, and updated the DTD and XMLParser class to support them.

0.96d Beta

Fixed a bug in the <googlemaps:map> tag that would cause blank maps if the width and height were not explicitly set. Also updated the DTD to reflect none-absolute overviewControl placement. This now allows the overview control to be placed in it's default lower right hand corner placement when specified with no x and y values via XML.

0.96c Beta

Made some minor changes to the <googlemaps:map> tag so it now accepts width and height values as text, not int. Therefore developers can specify pixels or percentages for width and height. Also modified the XMLParser class to handle the new data type.

This change allows for full screen mapping.

0.96b Beta

Added the <googlemaps:coordinates> tag and modified the DTD and XMLParser class to support it. The coordinates tag allows you define where and how the cursor's current longitude and latitude are displayed on the map. Added mapTypes attribute to <googlemaps:insert> tag so developers could define which map views would display the inserted graphic(s).

0.96 Beta

Added the <googlemaps:insert> tag and modified the DTD and XMLParser class to support it. Inserts are images that attach themselves to the map, and they pan with the map and they zoom in and out with the map. Useful for graphically labelling a significant landmark or for drawing boundaries around things, or even adding new roads that haven't made the map servers yet!

0.95b Beta

Modified the <googlemaps:overviewControl> tag so the default positioning (if x and y are not explicitly set) is in the lower right hand corner. Also updated com.lamatek.tags.google.beans.Geocoder interface to return the geocoding precision and any relevent warnings. While not used by the tag library itself, developers wishing to geocode US addresses offline can now use the bean and retrieve these useful pieces of information before electing to store lon/lat pairs.

0.95 Beta

Fixed a problem with the overviewControl where improper javascript variable names were used. Added automatic SVG support in version 2 maps for browsers that support it. Also added draggable attribute to marker which works in version 2.46 or above maps. Added a headless attribute to the map tag which allows the map to hide user controls until the cursor is over the map (works on version 2.45+). Added maxZoom and minZoom attributes to the map tag, allowing the developer to restrict user zoom levels on all map types (works on version 2 only). Added the bound attribute to the map tag, which allows the developer to restrict user map panning to only the points added to the map. Modified the DTD and XMLParser class to accept the new draggable, maxZoom, minZoom, bound and headless attributes.

Changes were made to the wms1.js and wms2.js files to improve their portability. Developers that use WMS layers should download the new versions of these files.

Starting with this release, all new additions and revisions to the GoogleMaps JSP Taglibrary will be aimed at version 2 maps. Developers should start migrating away from version 1 maps entirely and try using only version 2 maps in anticipation of future removal.

0.94 BetaAdded the <googlemaps:label> tag. A label works like an imageoverlay, except it moves with the map, rather than staying stationary. Also added Clusterer2.js script to support clustering of version 2 maps (thanks again Jef). Modified the Clusterer.js and Clusterer2.js scripts to provide debugging support with debugging enabled.
0.93 BetaAdded a debugger window to the <googlemaps:map> tag and modified the DTD and XMLParser class to support it. Also fixed a bug that did not properly escape HTML content in infowindows and tabbed infowindows when added programmatically.
0.92 BetaAdded the <googlemaps:wms> tag to provide support for WMS layers. Requires use of the wms1.js file, modified from the original provided by Brian Flood (for version 1 maps) or wms2.js, modified from the original script by John Deck (for version 2 maps). Also modified the XML Parser and DTD to accommodate the new tags.
0.91 BetaExposed the content attribute of the <googlemaps:infowindow> and <googlemaps:tab> tags to allow developers to provide dynamic (regular and EL expressions) content for these components. Also added an html attribute to the <googlemaps:tab> tag. Modified DTD and XMLParser to accommodate these new attributes.
0.90 BetaAdded the <googlemaps:cluster> tag to allow for marker clustering on busy maps. Requires use of Jef Poskanzer's Clusterer.js script. Also modified the XMLParser and DTD to support the new tag.
0.88 BetaAdded the <googlemaps:tabbedInfoWidow> tag and <googlemaps:tab> tag. Also updated the DTD and XMLParser classes to support them.
0.87 BetaAdded the <googlemaps:overviewControl> tag and updated the DTD and XMLParser classes to support it.
0.86 BetaAdded two parameters to the <googlemaps:point> tag:
  • latitudeAsString
  • longitudeAsString
This allows developers to specify longitude and latitude values as Strings, not just doubles.
0.85b BetaAdded custom map type support for version 2 maps.
0.85 BetaAdded <googlemap:maptype> tag to add support for custom map tiles for version 1 maps. Also modified DTD and XMLParser to include the new tag. Made some preparatory changes to the GoogleMapTag to prepare for version 2 support of custom map types and mousewheel support.
0.82 BetaAdded the <googlemap:imageoverlay> tag which allows devlopers to place a static image over the map. This map can have an action mapped to it as well for incorporation into event handling heirarchies. Also modified the DTD to include the new tag, as well as the XMLParser class.
0.80 BetaAdded XML support to Google Maps JSP taglibrary by Adding an xml attribute to the <googlemaps:map> tag and a new DTD located at http://www.lamatek.com/GoogleMaps/dtds/googlemaps.dtd. The new XMLParser classes parses the XML and adds the specified elements to the map. Users can mix XML with JSP tags for maximum flexibility.
0.73 BetaModified the <googlemaps:traffic> so it would use only DOM2 classes and methods, not DOM3, for maxiumum compatibility with web servers.
0.72 BetaAdded the <googlemaps:traffic> tag. Modified the GoogleMapIconTag so it no longer requires a shadow icon. Made some additional modifications to the GoogleMapTag.
0.70 BetaFixed the centering issues for the <googlemaps:message> tag in Forefox. Added new <googlemaps:blowup> tag to show map blowups over markers.
0.65 BetaIt's the return of the <googlemaps:message> tag. While I'm still having issues centering in FireFox, at least now it works cross-platform and doesn't interfere with event processing....Yeah!
0.62 BetaFixed a problem where asynchronous events were not properly sent in non IE browsers.
0.61 BetaAdded a simple fix to <googlemaps:infowindow> to compensate for an error in Firefox 1.5x where text does not wrap properly.
0.60 BetaRemoved <googlemaps:message> tag due to too many difficulties associated with the API version changes and browser issues. Felt it was more important to focus on function than asthetics.
0.55 BetaAdded <googlemaps:message> tag and some documentation work.
0.50 BetaAdded click and double-click events to all overlays. Added javadoc documentation for all tag classes for developers using event processing. Made some internal changes to how GoogleMapTag stores and retrieves children to improve performance.
0.40 BetaAdded asynchronous event handling and default event listener bean and servlet. Added double-click event support for maps and markers.
0.30 BetaAdded the <googlemaps:icon> tag to support custom icons for markers. Added <googlemaps:event> tag to provide map event listening.
0.25 BetaAdded auto-zoom for version 2 maps. Fixed <googlemaps:infowindow> to auto-escape double and single quotes when including html content.
0.20 BetaComplete re-write of API, changing format guide and simplifying usage.
0.10 BetaInitial Release

Google
Search for Google Maps technology:

Java JSP PHP ASP
Google™ and the GoogleMaps API are copyright of Google.