<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Stephane,<br><br>From your question what i understood is you want to switch between different google layers. Am i right?<br><br>It can be achieved by creating all google layer as base layer and then you can switch between those. If you want sample code i can share that with you.<br><br>Let me know if i am on correct path? <br><br><div><div><div><div><div><div><div><div><div><strong></strong><font size="2"><span style="font-family: verdana,helvetica,sans-serif;">Thanks,</span><br style="font-family: verdana,helvetica,sans-serif;"><span style="font-family: verdana,helvetica,sans-serif;">Rahul G. Teni<br>Cynosure Software Solutions<br style="font-family: verdana,helvetica,sans-serif;"></span><span style="font-family: verdana,helvetica,sans-serif;">MS BITS,BE Comp</span><br style="font-family: verdana,helvetica,sans-serif;"><span style="font-family:
 verdana,helvetica,sans-serif;"></span></font><br></div></div></div></div></div></div></div></div></div><br><br>--- On <b>Mon, 8/31/09, users-request@openlayers.org <i>&lt;users-request@openlayers.org&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: users-request@openlayers.org &lt;users-request@openlayers.org&gt;<br>Subject: Users Digest, Vol 35, Issue 90<br>To: users@openlayers.org<br>Date: Monday, August 31, 2009, 10:22 AM<br><br><div class="plainMail">Send Users mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:users@openlayers.org" href="/mc/compose?to=users@openlayers.org">users@openlayers.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>or, via email, send a message with subject or
 body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:users-request@openlayers.org" href="/mc/compose?to=users-request@openlayers.org">users-request@openlayers.org</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:users-owner@openlayers.org" href="/mc/compose?to=users-owner@openlayers.org">users-owner@openlayers.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Users digest..."<br><br><br>Today's Topics:<br><br>&nbsp;&nbsp;&nbsp;1. Re: Exception, but why? (Marc Jansen)<br>&nbsp;&nbsp;&nbsp;2. Best way to implement hover/click highlighting&nbsp;&nbsp;&nbsp; of polygons<br>&nbsp; &nbsp; &nbsp; (Peter Becker)<br>&nbsp;&nbsp;&nbsp;3. switching default layer before initial map&nbsp;&nbsp;&nbsp; display<br>&nbsp; &nbsp; &nbsp; (<a ymailto="mailto:stephane.poirier@usherbrooke.ca"
 href="/mc/compose?to=stephane.poirier@usherbrooke.ca">stephane.poirier@usherbrooke.ca</a>)<br>&nbsp;&nbsp;&nbsp;4. vector layers don't display in internet explore&nbsp;&nbsp;&nbsp; 8.0.6001<br>&nbsp; &nbsp; &nbsp; anymore (<a ymailto="mailto:stephane.poirier@usherbrooke.ca" href="/mc/compose?to=stephane.poirier@usherbrooke.ca">stephane.poirier@usherbrooke.ca</a>)<br>&nbsp;&nbsp;&nbsp;5. Re: Best way to implement hover/click&nbsp;&nbsp;&nbsp; highlighting of<br>&nbsp; &nbsp; &nbsp; polygons (Eric Lemoine)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sun, 30 Aug 2009 20:07:34 +0200<br>From: Marc Jansen &lt;<a ymailto="mailto:jansen@terrestris.de" href="/mc/compose?to=jansen@terrestris.de">jansen@terrestris.de</a>&gt;<br>Subject: Re: [OpenLayers-Users] Exception, but why?<br>To: Maren Kiehl &lt;<a ymailto="mailto:maren.kiehl@gmx.de"
 href="/mc/compose?to=maren.kiehl@gmx.de">maren.kiehl@gmx.de</a>&gt;<br>Cc: <a ymailto="mailto:users@openlayers.org" href="/mc/compose?to=users@openlayers.org">users@openlayers.org</a><br>Message-ID: &lt;<a ymailto="mailto:4A9ABFE6.7060401@terrestris.de" href="/mc/compose?to=4A9ABFE6.7060401@terrestris.de">4A9ABFE6.7060401@terrestris.de</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hi Maren,<br><br>it is very hard to guess the source of that behaviour since we do not <br>see any code. Is there any chance you can post a minimal example that <br>shows this behaviour?<br><br>Have your tried the code with Firebug being disabled? Is the error <br>console still showing the error?<br><br>-- Marc<br><br><br>Maren Kiehl schrieb:<br>&gt; Hi at all.<br>&gt;<br>&gt; I programmed an application with a wfs-layer which opens a popup with <br>&gt; some informations to a special point by clicking it.<br>&gt; Everything works without a
 problem but in Mozilla the Firebug (1.4.2) <br>&gt; throws the following exception:<br>&gt;<br>&gt; uncaught exception: [Exception... "Component returned failure code: <br>&gt; 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" <br>&gt; nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: <br>&gt; <a href="http://localhost/openl/lib/OpenLayers/Request/XMLHttpRequest.js" target="_blank">http://localhost/openl/lib/OpenLayers/Request/XMLHttpRequest.js</a> :: <br>&gt; anonymous :: line 200" data: no]<br>&gt;<br>&gt; Whats wrong? And why does the programm throw it although everything is fine.<br>&gt;<br>&gt; Thanks for help.<br>&gt; Best regards<br>&gt; Maren<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@openlayers.org" href="/mc/compose?to=Users@openlayers.org">Users@openlayers.org</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/users"
 target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;<br><br><br>------------------------------<br><br>Message: 2<br>Date: Mon, 31 Aug 2009 09:34:44 +1000<br>From: Peter Becker &lt;<a ymailto="mailto:pbecker@itee.uq.edu.au" href="/mc/compose?to=pbecker@itee.uq.edu.au">pbecker@itee.uq.edu.au</a>&gt;<br>Subject: [OpenLayers-Users] Best way to implement hover/click<br>&nbsp;&nbsp;&nbsp; highlighting&nbsp;&nbsp;&nbsp; of polygons<br>To: <a ymailto="mailto:users@openlayers.org" href="/mc/compose?to=users@openlayers.org">users@openlayers.org</a><br>Message-ID: &lt;<a ymailto="mailto:200908310934.44718.pbecker@itee.uq.edu.au" href="/mc/compose?to=200908310934.44718.pbecker@itee.uq.edu.au">200908310934.44718.pbecker@itee.uq.edu.au</a>&gt;<br>Content-Type: text/plain; charset="us-ascii"<br><br>Hello all,<br><br>I know it is a bit of a broad question, but after quite a few experiments I <br>still feel a bit puzzled as
 to which way I want to set up a map in our <br>application. The map displays certain areas (catchments, bay areas, etc.). The <br>user should be able to click on those areas, which then shows detailed <br>information in a side bar (div on the same level as the map's div).<br><br>We are using a stack with PostGIS and GeoServer and I managed to get the basic <br>functionality working in different ways, e.g. using GeoServer's map previews as <br>example as well as <a href="http://openlayers.org/dev/examples/getfeature-wfs.html" target="_blank">http://openlayers.org/dev/examples/getfeature-wfs.html</a> .<br><br>But getting it to work is only one thing, I'd like to get some more <br>understanding on the implications of different approaches. The two main <br>concerns for me at the moment are the browser support and the number of <br>roundtrips some approaches seem to take.<br><br>I saw <a href="http://trac.openlayers.org/wiki/Browsers"
 target="_blank">http://trac.openlayers.org/wiki/Browsers</a> -- does that mean all <br>OpenLayers features are fully supported in each of these? Can I e.g. use an <br>all-vector approach for the overlays and expect them to work?<br><br>And regarding the round trips: I would like the map view not to hit our server <br>more than once per interaction -- mostly to keep the map snappy, but also to <br>not but unnecessary burden on the server. The UI won't allow arbitrary zooming <br>and panning, so bounds should get invalidated only as a result of some custom <br>callback.<br><br>I was thinking along the lines of loading all polygons as WFS layer -- is that <br>the way to do it? Should I set a specific strategy? I can't find much <br>documentation on strategies.<br><br>Thanks for any hints/experiences you are willing to share.<br><br>Cheers,<br>&nbsp; Peter<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a
 href="http://openlayers.org/pipermail/users/attachments/20090831/2cf61167/attachment-0001.htm" target="_blank">http://openlayers.org/pipermail/users/attachments/20090831/2cf61167/attachment-0001.htm</a> <br><br>------------------------------<br><br>Message: 3<br>Date: Sun, 30 Aug 2009 21:50:29 -0400<br>From: &lt;<a ymailto="mailto:stephane.poirier@usherbrooke.ca" href="/mc/compose?to=stephane.poirier@usherbrooke.ca">stephane.poirier@usherbrooke.ca</a>&gt;<br>Subject: [OpenLayers-Users] switching default layer before initial map<br>&nbsp;&nbsp;&nbsp; display<br>To: &lt;<a ymailto="mailto:users@openlayers.org" href="/mc/compose?to=users@openlayers.org">users@openlayers.org</a>&gt;<br>Message-ID: &lt;91F4403121E140F78EAF096F75BDB814@spoirierdell&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi All,<br><br>With the following code, I created a few google layers. Google streets gets to be the default. Now, how can I change the default layers to
 be, say, the google hybrid map?<br><br>if(myepsg=="EPSG:900913")<br>{<br>&nbsp; &nbsp; googlestreetsLayer=new OpenLayers.Layer.Google("Google Streets",{"sphericalMercator": true,minZoomLevel: 2});<br>&nbsp; &nbsp; googlephysicalLayer=new OpenLayers.Layer.Google("Google Physical",{type: G_PHYSICAL_MAP, "sphericalMercator": true,minZoomLevel: 2});<br>&nbsp; &nbsp; googlesatelliteLayer=new OpenLayers.Layer.Google("Google Satellite",{type: G_SATELLITE_MAP, "sphericalMercator": true,minZoomLevel: 2});<br>&nbsp; &nbsp; googlehybridLayer = new OpenLayers.Layer.Google("Google Hybrid",{type: G_HYBRID_MAP, "sphericalMercator": true,minZoomLevel: 2});<br>}<br><br><br>Stephane Poirier, M.Sc. Optic Physics <br>Remote Sensing Application Software Developer<br>Universit? de Sherbrooke<br>2500 Bd Universit?, Sherbrooke, Qc J1K 2R1 Canada<br>www.usherbrooke.ca/cartel<br><a ymailto="mailto:Stephane.Poirier@Usherbrooke.ca"
 href="/mc/compose?to=Stephane.Poirier@Usherbrooke.ca">Stephane.Poirier@Usherbrooke.ca</a><br>+1 (514) 509-8833 (actual work site telephone)<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://openlayers.org/pipermail/users/attachments/20090830/571b7302/attachment-0001.htm" target="_blank">http://openlayers.org/pipermail/users/attachments/20090830/571b7302/attachment-0001.htm</a> <br><br>------------------------------<br><br>Message: 4<br>Date: Sun, 30 Aug 2009 23:02:22 -0400<br>From: &lt;<a ymailto="mailto:stephane.poirier@usherbrooke.ca" href="/mc/compose?to=stephane.poirier@usherbrooke.ca">stephane.poirier@usherbrooke.ca</a>&gt;<br>Subject: [OpenLayers-Users] vector layers don't display in internet<br>&nbsp;&nbsp;&nbsp; explore&nbsp;&nbsp;&nbsp; 8.0.6001 anymore<br>To: &lt;<a ymailto="mailto:users@openlayers.org" href="/mc/compose?to=users@openlayers.org">users@openlayers.org</a>&gt;<br>Message-ID:
 &lt;0CDA8FA3C5274F4596374392E19D5B25@spoirierdell&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi All,<br><br>My vector layers do display fine in Firefox, Chrome, Safari but don't display at all in IE 8.0.6001. I was using IE 8.0 compatibility view to have proper vector layer display until recently. But now, Ie 8.0 compatibility view does not seems to work or fix that issue anymore. <br><br>Should I write specific code for IE 8.0? Or, is there a patch for IE 8.0? <br><br><br>Stephane Poirier, M.Sc. Optic Physics <br>Remote Sensing Application Software Developer<br>Universit? de Sherbrooke<br>2500 Bd Universit?, Sherbrooke, Qc J1K 2R1 Canada<br>www.usherbrooke.ca/cartel<br><a ymailto="mailto:Stephane.Poirier@Usherbrooke.ca" href="/mc/compose?to=Stephane.Poirier@Usherbrooke.ca">Stephane.Poirier@Usherbrooke.ca</a><br>+1 (514) 509-8833 (actual work site telephone)<br>-------------- next part --------------<br>An HTML attachment was
 scrubbed...<br>URL: <a href="http://openlayers.org/pipermail/users/attachments/20090830/c5e2fef3/attachment-0001.htm" target="_blank">http://openlayers.org/pipermail/users/attachments/20090830/c5e2fef3/attachment-0001.htm</a> <br><br>------------------------------<br><br>Message: 5<br>Date: Mon, 31 Aug 2009 06:52:20 +0200<br>From: Eric Lemoine &lt;<a ymailto="mailto:eric.lemoine@camptocamp.com" href="/mc/compose?to=eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>&gt;<br>Subject: Re: [OpenLayers-Users] Best way to implement hover/click<br>&nbsp;&nbsp;&nbsp; highlighting of polygons<br>To: Peter Becker &lt;<a ymailto="mailto:pbecker@itee.uq.edu.au" href="/mc/compose?to=pbecker@itee.uq.edu.au">pbecker@itee.uq.edu.au</a>&gt;<br>Cc: <a ymailto="mailto:users@openlayers.org" href="/mc/compose?to=users@openlayers.org">users@openlayers.org</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;<a
 ymailto="mailto:ca7da9120908302152p3714e141y83f27456a0a544d1@mail.gmail.com" href="/mc/compose?to=ca7da9120908302152p3714e141y83f27456a0a544d1@mail.gmail.com">ca7da9120908302152p3714e141y83f27456a0a544d1@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br><br>On Monday, August 31, 2009, Peter Becker &lt;<a ymailto="mailto:pbecker@itee.uq.edu.au" href="/mc/compose?to=pbecker@itee.uq.edu.au">pbecker@itee.uq.edu.au</a>&gt; wrote:<br>&gt; Hello all,<br><br>Hi<br><br><br>&gt;<br>&gt; I know it is a bit of a broad question, but after quite a few experiments I still feel a bit puzzled as to which way I want to set up a map in our application. The map displays certain areas (catchments, bay areas, etc.). The user should be able to click on those areas, which then shows detailed information in a side bar (div on the same level as the map's div).<br>&gt;<br>&gt; We are using a stack with PostGIS and GeoServer and I managed to get the basic
 functionality working in different ways, e.g. using GeoServer's map previews as example as well as <a href="http://openlayers.org/dev/examples/getfeature-wfs.html" target="_blank">http://openlayers.org/dev/examples/getfeature-wfs.html</a> .<br>&gt;<br>&gt; But getting it to work is only one thing, I'd like to get some more understanding on the implications of different approaches. The two main concerns for me at the moment are the browser support and the number of roundtrips some approaches seem to take.<br>&gt;<br>&gt; I saw <a href="http://trac.openlayers.org/wiki/Browsers" target="_blank">http://trac.openlayers.org/wiki/Browsers</a> -- does that mean all OpenLayers features are fully supported in each of these? Can I e.g. use an all-vector approach for the overlays and expect them to work?<br><br>Yes, vector layers are supposed to work in every listed browser. But<br>you will get different results in terms of performance from one<br>browser to
 another. For example IE will require much more time than FF<br>and Chrome to display geometries on vector layers. Depending on the<br>number of geometries, display time may be so long so that it can<br>become unacceptable.<br><br><br>&gt;<br>&gt; And regarding the round trips: I would like the map view not to hit our server more than once per interaction -- mostly to keep the map snappy, but also to not but unnecessary burden on the server. The UI won't allow arbitrary zooming and panning, so bounds should get invalidated only as a result of some custom callback.<br>&gt;<br>&gt; I was thinking along the lines of loading all polygons as WFS layer -- is that the way to do it?<br><br>Possibly. Again it depends on the number of objects you need to<br>display and the browsers you want to support. I'd recommend doing<br>experiments with your dataset.<br><br>&gt; Should I set a specific strategy?<br><br>You can use the BBOX strategy so that only features
 included in the<br>current extent of the map are fetched and displayed. As the map is<br>moved new features will be fetched from the server.<br><br>Cheers,<br><br><br>&gt; I can't find much documentation on strategies.<br>&gt;<br>&gt; Thanks for any hints/experiences you are willing to share.<br>&gt;<br>&gt; Cheers,<br>&gt;&nbsp;&nbsp;&nbsp;Peter<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a ymailto="mailto:eric.lemoine@camptocamp.com" href="/mc/compose?to=eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br><a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br><br><br>------------------------------<br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@openlayers.org" href="/mc/compose?to=Users@openlayers.org">Users@openlayers.org</a><br><a
 href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br><br><br>End of Users Digest, Vol 35, Issue 90<br>*************************************<br></div></blockquote></td></tr></table><br>