On Sun, Aug 29, 2010 at 3:12 AM, Bart van den Eijnden <bart...@osgis.nl> wrote: > There is not Google V3 support in 2.9.1. > > Try 2.10 RC1. >
Sorry, no success. I replaced my OpenLayers to the hosted version of OpenLayers-2.10RC1, and used the code below. The Google layer shows, but my Counties layers does not. Suggestions? > Best regards, > Bart > > -- > Looking for flexible support on OpenLayers or GeoExt? Please check out > http://www.osgis.nl/support.html > > Bart van den Eijnden > OSGIS > bart...@osgis.nl > > On Aug 29, 2010, at 6:38 AM, P Kishor wrote: > >> I have the following, simplest possible code. Works without gmaps >> layer, but no WMS shows up when gmaps layer is included. What is it >> that I am doing wrong? >> >> <script type="text/javascript"> >> function init(){ >> var lon = -90.397; >> var lat = 45.93; >> var zoom = 5; >> var map = new OpenLayers.Map( 'map' ); >> var layer = new OpenLayers.Layer.WMS( >> "OpenLayers WMS", >> "http://labs.metacarta.com/wms/vmap0", >> {layers: 'basic'} >> ); >> >> var counties = new OpenLayers.Layer.WMS( >> "Counties", >> >> "http://mapserv.ssec.wisc.edu/cgi-bin/mapserv?map=/opt/fgs/www/htdocs/research/Projects/LakesTSI/lakestsi2.map", >> { >> layers: "Counties", >> map_imagetype: "agga", >> transparent: true, >> reproject: true, >> singleTile: true >> } >> ); >> >> var gphy = new OpenLayers.Layer.Google( >> "Google Physical", >> {type: google.maps.MapTypeId.TERRAIN} >> ); >> >> // the following doesn't work >> map.addLayers([gphy, counties]); >> >> // the following works fine >> map.addLayers([layer, counties]); >> >> map.setCenter(new OpenLayers.LonLat(lon, lat).transform( >> new OpenLayers.Projection("EPSG:4326"), >> map.getProjectionObject() >> ), zoom); >> >> map.addControl( new OpenLayers.Control.LayerSwitcher() ); >> } >> </script> >> >> -- >> Puneet Kishor >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users