1 2 Previous Next 22 Replies Latest reply on May 15, 2010 3:04 AM by ilya_shaikovsky Go to original post
      • 15. Re: Using gmap inside modalpanel NOT working porperly
        pmeidl

        using <rich:modalPanel onshow="map.checkResize()"> works for me (found here: http://code.google.com/p/gmaps4jsf/issues/detail?id=57).

         

        the other solutions I found on the web all suggested to use HTML instead of XHTML, which didn't seem to solve the issue for me.

        • 16. Re: Using gmap inside modalpanel NOT working porperly

          Hi,

          rich gmap is not  rendering in model panel with Safari, any fix for this? below is my code

           

          <rich:modalPanel  id="storeLocationMapOverlay"  autosized="true" top="100"  onshow="map.checkResize()"  >
                           <div>   <h:outputText value="Store Location Map"/></div>
                           <f:facet name="controls">
                               <h:graphicImage value="../content/images/closebox.png"  onclick="Richfaces.hideModalPanel('storeLocationMapOverlay')"/>
                           </f:facet>
                           <h:form id="storeMapForm">
                                    <h:panelGrid id="mapGrid" styleClass="overlayPanel width500">
                              
                                   <rich:gmap  gmapVar="map"  mapType="G_NORMAL_MAP" enableDragging="true" zoom="2"
                                        style="width: 500px; height: 400px;"   showGMapTypeControl="false"
                                         gmapKey="ABQIAAAARGLSjsbAhg4dYB1UWUa5RxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxS_VJNFb4_Hg1PQG5eR_u6y_bKo5w"
                                         oninit="loadMap()">
                                       <script  type="text/javascript">
                                          function  loadMap(){
                                              var center = new  GLatLng('#{storeController.storeBean.gpsX}',  '#{storeController.storeBean.gpsY}');
                                               map.setCenter(center, 13);

           

                                              var marker =  new GMarker(center, {draggable: true});

           

                                               GEvent.addListener(marker, "dragstart", function() {
                                                 map.closeInfoWindow();
                                                });

           

                                               GEvent.addListener(marker, "dragend", function() {
                                                 marker.openInfoWindowHtml("Just bouncing along...");
                                                 });

           

                                               map.addOverlay(marker);
                                      }
                                         </script>
                                        </rich:gmap>

          • 17. Re: Using gmap inside modalpanel NOT working porperly
            ilya_shaikovsky
            • 18. Re: Using gmap inside modalpanel NOT working porperly

              Thanks Ilya for suggetion but i already tried that and it shows up the map in Safari, but the big problem is that my all commandLinks in side panel get disabled and not clickable since i am using workaround <f:view contentType='text/html'> , if i remove this from code then my sidePanel links works but map does not showup. please help me.

               

              Thanks

              • 19. Re: Using gmap inside modalpanel NOT working porperly

                Hi IIya,

                 

                Even I  have tried with firefox and it works in model panel as well on page  without setting view content Type

                ,I have tried to set the rich  map directly on page but still does not showup, I also compare the view  source of page and it does not look different. I could see the gpsX and Y  values.. any pointer please?

                 

                </script><div  id="baselineStore:j_id62" style="width: 500px; height:  400px;"><script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAARGLSjsbAhg4dYB1UWUa5RxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxS_VJNFb4_Hg1PQG5eR_u6y_bKo5w&hl=en_US"  type="text/javascript"></script><script  type="text/javascript">
                //<![CDATA[

                 


                function  __initGMap() { __initGmapdiv("map","baselineStore:j_id62", "Your  browser does not support Google Maps");
                __applyGmapparam("map",37.9721046,  -122.0424842834,2,G_NORMAL_MAP,true,true,false,false,false,true,true);
                var userfunc = function(event) { loadMap() };  userfunc();};__addLoadEvent(__initGMap);__addUnLoadEvent(GUnload);

                 

                //]]>
                </script></div>

                • 20. Re: Using gmap inside modalpanel NOT working porperly

                  Hi Ilya, I did not get solution for my problem yet, please help

                  • 21. Re: Using gmap inside modalpanel NOT working porperly
                    ilya_shaikovsky
                    Thanks Ilya for suggetion but i already tried that and it shows up the map in Safari, but the big problem is that my all commandLinks in side panel get disabled and not clickable since i am using workaround <f:view contentType='text/html'>

                    problem with links - other problem which should be checked separatelly but the sworkaround should be used for safari.

                    • 22. Re: Using gmap inside modalpanel NOT working porperly
                      ilya_shaikovsky

                      and please - do not update numerous threads or there is big chance to lost the thread where we will answer to you

                      1 2 Previous Next