So

 var url =
"http://enterprise.mapguide.com/mapserver2012/mapagent/mapagent.fcgi?USERNAME=Anonymous";;
 var extent = new OpenLayers.Bounds(-9770571,5417146,-9762314,5435370);
 var mapOptions = {
                        maxExtent: extent, 
                                units: "m", 
                                maxResolution: 5000.0339,
                                projection: new 
OpenLayers.Projection("EPSG:900913")
                
          };
   map = new OpenLayers.Map( 'map', mapOptions );

   var osm = new OpenLayers.Layer.OSM("OpenStreetMap",
        "http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png";); 

   var options = {
              isBaseLayer: true,
              useOverlay: false,
              singleTile: true,
         'sphericalMercator': true,
         visibility : true,
         transitionEffect: "resize",
         displayOutsideMaxExtent: true
          };
     var params = {
           mapdefinition:
'Library://Samples/Sheboygan/Maps/SheboyganSphericalMercator.MapDefinition',
                          format: 'png'
        };
                
    layer = new OpenLayers.Layer.MapGuide( "MapGuide OS Overlay layer", url,
params, options );

    map.addLayers([layer,osm]);
                
    map.addControl(new OpenLayers.Control.LayerSwitcher());
                

what would I add to turn on the useOverlay: true?   
Can I not just send the Parameters of the extent in the map?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/OpenLayers-with-MapGuide-tp6902038p6905119.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to