this tag initializes the map

<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();" />


it is present  there in my code.

and I also tried with m:map


<!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";
    xmlns:m="http://code.google.com/p/gmaps4jsf/";
    template="layout/template.xhtml">


    <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="410" height="400" >
   <script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAJtPEOMtIrd9WaFBghl9EUhTBfUk9TZrBRaIteybtnU2KziHEpRQmj64YGJdzljcCZJgiA5YV1tfLdQ"
      type="text/javascript"></script>
        <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>
                                                        <m:map id="map" 
latitude="#{speedReport.latitude}"
longitude="#{speedReport.longitude}"
                                                                   
type="G_NORMAL_MAP"
                                                                   width="410" 
height="400px"
                                                                   
locationNotFoundErrorMessage="Connection failed!"
                                                                   
renderOnWindowLoad="false" autoReshape="true" >
                                                                   <m:marker 
latitude="#{speedReport.latitude}" longitude="#
{speedReport.longitude}">
                                                                                
<m:htmlInformationWindow htmlText="Hello Vts" ></
m:htmlInformationWindow>
                                                                   </m:marker>
                                                                   
<m:mapControl  position="G_ANCHOR_TOP_RIGHT"
id="controls"></m:mapControl>
                                                        </m:map>
                                        </td>
                                </tr>
                        </table>
        </h:form>
</rich:modalPanel>
        </ui:define>
</ui:composition>

still the same problem...........
--~--~---------~--~----~------------~-------~--~----~
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