Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package wicket.contrib.gmap;
 
public class GMapHeaderContributor extends Behavior
	private static final long serialVersionUID = 1L;
	// URL for Google Maps' API endpoint.
	private static final String GMAP_API_URL = "http://www.google.com/jsapi?key=";
	// We have some custom JavaScript.
		GMap2.class"wicket-gmap.js");
	protected static final String GOOGLE_LOAD_MAPS = "google.load(\"maps\", \"2.x\");";
	private final String gMapKey;


Parameters:
gMapKey
	public GMapHeaderContributor(final String gMapKey)
	{
		this. = gMapKey;
	}

see: IE memory leak issues
	public void renderHead(Component componentIHeaderResponse response)
	{
			"_googleload");
		// see: http://www.google.com/apis/maps/documentation/#Memory_Leaks
		response.renderOnEventJavaScript("window""onUnload""google.maps.Unload();");
	}
New to GrepCode? Check out our FAQ X