GoogleMaps JSP Taglibrary  

Example 17 - Overview Control

Here we demonstrate the new overview control map. As you can see the overview map is a smaller map, zoomed out, that shows where in the overall map your current view is located. As you move the map around, the little grey box (which represents your map's current viewport) moves around inside the overview

Overview maps are only supported on version 2.41 or higher maps. Therefore if you specify a version 1 map (or you specify a specific version 2 that is below 2.41) your overview map will not display.

Here's the code we used:

<googlemaps:map id="map" width="250" height="300" version="2" type="STREET" 
		zoom="12">
  	<googlemaps:key domain="localhost" key="xxxx"/>
  	<googlemaps:point id="point1" address="74 Connors Lane" city="Elkton" 
  			state="MD" zipcode="21921" country="US"/>
	<googlemaps:marker id="marker1" point="point1"/>
	<googlemaps:message>Please wait...</googlemaps:message>
	<googlemaps:overviewControl x="603" y="189" width="200" height="200"/>  
</googlemaps:map>
  

Well, to quote Mr. Gump, "That's all I have to say about that".

Our next example shows how you can add tabbed infowindows to version 2 maps.

Google
Search for Google Maps technology:

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