Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Gmaps4JSF

Download latest release from GMaps4JSF

Installation

  1. Add jar to libs dir of seam project
  2. Add in entry to deployed-jars-war.list gmaps4jsf-1.1.3-u2.jar

Usage example

Add script element to head tag of template.xhtml

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;
	key=ABQIAAAAxrVS1QxlpJHXxQ2Vxg2bJBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxS9AOPy_YJl48ifAy4mq6I8SgK8fg"
				type="text/javascript">
	</script>  

Add in the namespace to your view

xmlns:m="http://code.google.com/p/gmaps4jsf/"

Example of google maps with map and controls

 <rich:panel>
            <f:facet name="header">Google maps</f:facet>
            <m:map address="Dublin" width="500px" height="500px">
               <m:mapControl name="GLargeMapControl" position="G_ANCHOR_BOTTOM_RIGHT"/>
               <m:mapControl name="GMapTypeControl"/>                           
        	</m:map>
  </rich:panel>

1 comment:
 
08. Dec 2011, 03:49 America/New_York | Link
I like your writing style. I appreciate your efforts. Keep posting some more interesting blog posts.
http://lucy-live.com/telefonsex-cam.html| Telefonsex Cam