Her is my code

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<ui:composition xmlns="http://www.w3.org/1999/xhtml";
    xmlns:s="http://jboss.com/products/seam/taglib";
    xmlns:ui="http://java.sun.com/jsf/facelets";
    xmlns:f="http://java.sun.com/jsf/core";
    xmlns:h="http://java.sun.com/jsf/html";
    xmlns:rich="http://richfaces.org/rich";
    xmlns:a4j="http://richfaces.org/a4j";
    xmlns:excel="http://jboss.com/products/seam/excel";
    template="layout/template.xhtml">



    <script type="text/javascript">
       //<![CDATA[
      /*
          var latitude;
          var longitude;
          var latlng;
          var tinyIcon;
       function loadMarkers() {
           map.setAttribute("oninit",addMarkers());
       }
       function addMarkers(){
            latitude=document.getElementById("frm:lattext").value;
            longitude=document.getElementById("frm:lngtext").value;
            latlng = new GLatLng(latitude,longitude);
            map.setMapType(G_NORMAL_MAP);
            map.setCenter(new GLatLng(latitude, longitude), 13);
            map.setUIToDefault();

            // Create our "tiny" marker icon

            tinyIcon = new GIcon();
            tinyIcon.image = "http://labs.google.com/ridefinder/images/
mm_20_red.png";
            tinyIcon.shadow = "http://labs.google.com/ridefinder/
images/mm_20_shadow.png";
            tinyIcon.iconSize = new GSize(12, 20);
            tinyIcon.shadowSize = new GSize(22, 20);
            tinyIcon.iconAnchor = new GPoint(6, 20);
            tinyIcon.infoWindowAnchor = new GPoint(5, 1);

            // Set up our GMarkerOptions object

            markerOptions = { icon:tinyIcon };
            map.addOverlay(new GMarker(latlng,markerOptions));
        }
        */

        var latitude;
        var longitude;

        var latlng;

        var geocoder;
        var address;

        var place;

        latlng = new GLatLng(latitude,longitude);

        function initialize() {
            latitude=document.getElementById("frm:lattext").value;
            longitude=document.getElementById("frm:lngtext").value;
            latlng = new GLatLng(latitude,longitude);
            map.setCenter(new GLatLng(latitude,longitude), 13);
            map.setMapType(G_NORMAL_MAP);
            map.setUIToDefault();
            marker = new GMarker(latlng);
            map.addOverlay(marker);
            GEvent.addListener(marker, "click", getAddress);
            geocoder = new GClientGeocoder();

          }
          function getAddress(overlay, latlng) {
            latitude=document.getElementById("frm:lattext").value;
            longitude=document.getElementById("frm:lngtext").value;
            latlng = new GLatLng(latitude,longitude);
            if (latlng != null) {
              address = latlng;
              geocoder.getLocations(latlng, showAddress);
            }
          }
          function showAddress(response) {
             place=response.Placemark[0];
             alert("Latitude:    "+place.Point.coordinates[1]+'\n'+
                   "Longitude:    "+place.Point.coordinates[0]+'\n'+
                   "Address:     "+place.address +'\n'+
                   "County Code:
"+place.AddressDetails.Country.CountryNameCode);
          }
       //]]>
       </script>
    <ui:define name="head">

    </ui:define>

    <ui:define name="body">
        <h:form id="vehicleStatusFrm">
                <rich:panel style="padding:0;height:700px;width:
991px;" headerClass="outpanelHeader">
                    <f:facet name="header">
                         <rich:spacer height="4" />
                    </f:facet>
                    <h2 align="center"><h:outputText value="Report
Generated By Odisys Technology Pvt. Ltd." /></h2>
                    <table width="100%" border="0" cellpadding="0"
cellspacing="0">
                        <tr>
                            <td align="left" valign="top"
width="250px" height="50px">
                                <rich:panel bodyClass="inpanelBody" >
                                    <f:facet name="header">
                                        Choose your vehicle :
                                    </f:facet>
                                    <h:panelGrid columns="1">
                                        <h:selectOneMenu
id="selectedVehicle" value="#{currentStatus.selectedVehicle}" >
                                                <f:selectItem
itemLabel="Select Reg. Number" itemValue="noSelection"></f:selectItem>
                                                <f:selectItems value="#
{currentStatus.vehicleList}" />
                                                <f:selectItem
itemLabel="All" itemValue="all"></f:selectItem>
                                        </h:selectOneMenu>

                                        <h:outputText value="Select
Date:" style="font-weight:bold"/>
                                        <a4j:outputPanel id="calendar"
layout="block">
                                            <rich:calendar value="#
{currentStatus.selectedDate}"
                                                        popup="true"
 
datePattern="dd/M/yy hh:mm a"
 
cellWidth="24px" cellHeight="22px" style="width:200px"/>
                                        </a4j:outputPanel>
                                        <a4j:commandButton action="#
{currentStatus.vehicleListener}" value="Show Report" style="font-
weight:bold" reRender="details,info,info1" styleClass="btnbg">
 
<f:setPropertyActionListener value="#{currentStatus.selectedVehicle}"
target="#{currentStatus.vehicleSelected}" />
                                        </a4j:commandButton>
                                    </h:panelGrid>
                                    </rich:panel>
                               </td>
                               <td rowspan="2" width="720px"
height="80px" valign="top">
                                    <s:decorate id="details"
rendered="#{currentStatus.reportFlag}">
                                <rich:panel bodyClass="inpanelBody"
id="p1" style="width:720px;height:600px" >
                                    <f:facet name="header">
                                    Vehicle Status Report Of Vehicles
Owned
                                    </f:facet>
                                    <table width="100%"
cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td align="right">
                                                <h:commandLink
action="#{org.jboss.seam.excel.exporter.excelExporter.export
('vehicleStatusFrm:details:locationList')}" value="Export to Excel  "
style="font-weight:bold" />
                                                &nbsp;&nbsp;&nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td><br/></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                 <rich:datascroller
align="center" for="locationList" maxPages="30" id="sc1"/>
                                                     <rich:dataTable
 
onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
 
onRowMouseOut="this.style.backgroundColor='#
{a4jSkin.tableBackgroundColor}'"
 
cellpadding="0" cellspacing="0" id="locationList" rows="15"
align="center"
                                                        border="0"
var="category" value="#{currentStatus.locationList}" >
                                                         <f:facet
name="header" height="10px">
 
<h:outputText id="reportHead" value="Vehicle Status Report as on #
{currentStatus.currentDate}" style="font-weight:bold; font-size:15px;
" />
                                                        </f:facet>

                                                    <rich:spacer
width="4"/>

                                                    <rich:column
id="lastReported">
                                                        <f:facet
name="header">
 
<h:outputText styleClass="headerText" value="Last Reported"></
h:outputText>
                                                        </f:facet>
                                                        <h:outputText
value="#{category.createTs}"  ><f:convertDateTime type="both"
dateStyle="medium" timeZone="IST"/></h:outputText>
                                                    </rich:column>
                                                    <rich:column
id="latitude">
                                                        <f:facet
name="header"><h:outputText styleClass="headerText" value="Latitude/
Longitude" /></f:facet>
                                                        <h:outputText
value="#{category.latitude} # #{category.longitude}" />
                                                    </rich:column>

                                                    <rich:column
id="vehicleStatus">
                                                        <f:facet
name="header"><h:outputText styleClass="headerText" value="Vehicle
Status" /></f:facet>
                                                        <h:outputText
id="locationStatus" value="#{category.terminalStatus}" />
                                                    </rich:column>
                                                    <rich:column
id="speed" >
                                                        <f:facet
name="header"><h:outputText styleClass="headerText" value="Speed" /></
f:facet>
                                                        <h:outputText
value="#{category.speed}" />
                                                    </rich:column>
                                                    <rich:column
id="direction" >
                                                        <f:facet
name="header"><h:outputText styleClass="headerText" value="Direction" /
></f:facet>
                                                        <h:outputText
value="#{category.direction}" />
                                                    </rich:column>
                                                    <rich:column
id="mileage" >
                                                        <f:facet
name="header"><h:outputText styleClass="headerText" value="Mileage" /
></f:facet>
                                                        <h:outputText
value="#{category.mileageValue}" />
                                                    </rich:column>
                                                     <rich:column
id="locate" >
                                                        <f:facet
name="header"><h:outputText styleClass="headerText" value="Locate
Vehicle" /></f:facet>
 
<a4j:commandLink
 
id="latlong" value="Show"
 
styleClass="loginlink"
                                                              action="#
{currentStatus.value2Listener}"
 
oncomplete="#{rich:component('reportGroup')}.show();"
 
reRender="reportGroup,map">
 
<f:setPropertyActionListener value="#{category.latitu...@#
{category.longitude}" target="#{currentStatus.listenerValue}"/>
                                                        </
a4j:commandLink>
                                                    </rich:column>
                                               </rich:dataTable>
                                            </td>
                                        </tr>
                                    </table>
                              </rich:panel>
                              </s:decorate>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" valign="top"
width="250px" height="440px">
                                <s:decorate id="info" rendered="#
{currentStatus.reportFlag}">
                                <rich:panel id="info1"
bodyClass="inpanelBody">
                                    <f:facet name="header">
                                        Vehicle Information :
                                    </f:facet>
                                    <table width="100%" border="0"
cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td  align="right" >
                                                <h:outputText
value="Contact Id:" />
                                            </td>
                                            <td >
 
&nbsp;&nbsp;&nbsp;&nbsp;<h:outputText value="#
{currentStatus.contactId}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <h:outputText
value="Device Id:"  />
                                            </td>
                                            <td >
                                                <h:outputText value="#
{currentStatus.terminalId}" rendered="#{not empty
currentStatus.deviceId}"/>

 
<rich:scrollableDataTable id="deviceIdList" value="#
{currentStatus.deviceIdList}" rendered="#{not empty
currentStatus.deviceIdList}" var="item" width="105px" height="60px"
border="0">
                                                    <rich:column>
                                                        <h:outputText
value="#{item.terminId}" />
                                                    </rich:column>
                                                </
rich:scrollableDataTable>
                                            </td>
                                       </tr>
                                    </table>
                                        </rich:panel>
                                    </s:decorate>
                                </td>
                        </tr>
                    </table>
                </rich:panel>
          </h:form>

   <rich:modalPanel id="reportGroup" width="430" height="400" >

    <f:facet name="header">
            <strong>Map Location</strong>
        </f:facet>
    <f:facet name="controls12">
        <h:graphicImage value="/modalPanel/close.png"
style="cursor:pointer"
            onclick="#{rich:component('reportGroup')}.hide()" />
    </f:facet>
    <h:form id="frm2">
            <table width="100%" border="0" cellpadding="3"
cellspacing="0"
                bgcolor="#FFFFFF">
                <tr>
                    <td align="right">
                        <a4j:commandLink
                        value="Close" styleClass="loginlink"
                        onclick="#{rich:component('reportGroup')}.hide
()" />
                    </td>
                </tr>
                <tr>
                </tr>
                <tr>
                    <td>
                               <rich:gmap id="map"
             gmapVar="map" locale="DE"
             lat="#{currentStatus.latitude}"
             lng="#{currentStatus.longitude}"
 
gmapKey="ABQIAAAAJtPEOMtIrd9WaFBghl9EUhTBfUk9TZrBRaIteybtnU2KziHEpRQmj64YGJdzljcCZJgiA5YV1tfLdQ"
             enableInfoWindow="false"
             mapType="G_NORMAL_MAP"
             warningMessage="Your browser does not support Google
Maps" oninit="initialize();" />
                    </td>
                </tr>
            </table>
    </h:form>
</rich:modalPanel>
    </ui:define>
</ui:composition>





My problem is map is not displaying.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to