-
1. Re: Gmap and Virtual Earth not displaying on Firefox.
sergeysmirnov Jan 2, 2008 9:40 PM (in response to tony.herstell1)Do you have a problem to see them in FireFox at:
http://livedemo.exadel.com/richfaces-demo/richfaces/gmap.jsf?c=gmap
and
http://livedemo.exadel.com/richfaces-demo/richfaces/virtualEarth.jsf?c=virtualEarth -
2. Re: Gmap and Virtual Earth not displaying on Firefox.
tony.herstell1 Jan 2, 2008 9:49 PM (in response to tony.herstell1)No Sergey..
I dont...
Thats odd ey...
Any other suggestions...
I am using the libs shipped with Richfaces 3.1.2.SP1
It's basic Seam:<div> <center> <rich:gmap gmapKey="xxx" lat="-43.589784" lng="172.266518" mapType="G_NORMAL_MAP" zoom="13"/> </center> </div> <div class="sub3_title"> <h:outputText value="#{messages.location_map_movement_hint}" /> </div> <div> <center> <rich:virtualEarth lat="-43.589784" lng="172.266518" zoom="13"/> </center> </div> <div class="sub3_title"> <h:outputText value="#{messages.location_map_movement_hint}" /> </div>
-
4. Re: Gmap and Virtual Earth not displaying on Firefox.
tony.herstell1 Jan 2, 2008 10:33 PM (in response to tony.herstell1)This worked in both browsers (cribbed off Google Map pages), but I wanted to get the controls hence I "simply" added the RichFaces tags..
Did the previous link help.. I am not claiming to have understood it.<!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:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:s="http://jboss.com/products/seam/taglib" template="/WEB-INF/pages/templateNoLoginControlsOrConversations.xhtml"> <!-- content --> <ui:define name="template_title"> <h:outputText value="#{messages.location_page}" /> </ui:define> <ui:define name="template_content"> <div class="bg_image"> <div class="main_title"> <h:outputText value="#{messages.location_page}" /> </div> <div class="sub3_title"> Selwyn Equestrian Centre, Kivers Road, Burnham, RD5, Christchurch </div> <div class="small_text"> Click on maps to move them. </div> <div> <center> <f:view contentType="text/html"> <div id="map" style="width: 800px; height: 600px"></div> </f:view> </center> </div> <div> <center> <f:view contentType="text/html"> <div id="map1" style="width: 800px; height: 600px"></div> </f:view> </center> </div> <div> <center> <f:view contentType="text/html"> <div id="map2" style="width: 800px; height: 600px"></div> </f:view> </center> </div> <div class="page_start_new_line"> <h:form> <h:commandButton class="general_form_button" action="#{pricesController.done}" value="#{messages.general_button_done}" immediate="true" type="submit"> <s:conversationPropagation type="end" /> </h:commandButton> </h:form> </div> <br /> </div> <script src="http://maps.google.com/maps?file=api&v=2&key=xxx" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(-43.589784, 172.266518), 10); var map1 = new GMap2(document.getElementById("map1")); map1.setCenter(new GLatLng(-43.589784, 172.266518), 12); var map2 = new GMap2(document.getElementById("map2")); map2.setCenter(new GLatLng(-43.589784, 172.266518), 13); } } //]]> </script> <script> load(); </script> </ui:define> <!-- content --> </ui:composition>
-
5. Re: Gmap and Virtual Earth not displaying on Firefox.
sergeysmirnov Jan 2, 2008 10:49 PM (in response to tony.herstell1)< f:view contentType="text/html" > is a key moment.
You have missed the last paragraph at http://livedemo.exadel.com/richfaces-demo/richfaces/virtualEarth.jsf?c=virtualEarth
It is the same for gmap. See also the previous post on this forum:
http://jboss.com/index.html?module=bb&op=viewtopic&t=116786 -
6. Re: Gmap and Virtual Earth not displaying on Firefox.
tony.herstell1 Jan 2, 2008 10:54 PM (in response to tony.herstell1)Egg on face.
That worked fine.
RTFM.