[OpenLayers-Users] WMS layers and Gmaps V3 with OL 2.9.1

Bart van den Eijnden bartvde at osgis.nl
Sun Aug 29 11:25:40 EDT 2010


Hi Puneet,

the dev examples are run off OpenLayers trunk.

To get RC1, check out the instructions here:

http://trac.openlayers.org/wiki/Release/2.10/Announce/RC1

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
bartvde at osgis.nl

On Aug 29, 2010, at 4:27 PM, P Kishor wrote:

> On Sun, Aug 29, 2010 at 3:12 AM, Bart van den Eijnden <bartvde at osgis.nl> wrote:
>> There is not Google V3 support in 2.9.1.
> 
> Interesting. That is in spite of the example at
> http://openlayers.org/dev/examples/google-v3.html
> 
> Is the version included in the above example 2.10 RC1?
> 
> The funny thing is, I can display Google maps with Gmaps V3 API and
> OpenLayers 2.9.1. I just am unable to display my WMS layers along with
> Google maps.
> 
> 
>> 
>> Try 2.10 RC1.
> 
> Where do I get 2.10 RC1? Is it the one at
> 
> http://trac.openlayers.org/browser/branches/openlayers/2.10/lib/OpenLayers.js
> 
> 
> Thanks.
> 
> 
>> 
>> 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
>> bartvde at 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 at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>> 
>> 
>> 
> 
> 
> 
> -- 
> Puneet Kishor
> 




More information about the Users mailing list