[mapguide-users] Re: OpenLayers with MapGuide

GordonL gordon.luckett at arrowgeomatics.com
Tue Oct 18 11:40:40 EDT 2011


 var url =
 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",

   var options = {
              isBaseLayer: true,
              useOverlay: false,
              singleTile: true,
	 'sphericalMercator': true,
	 visibility : true,
	 transitionEffect: "resize",
	 displayOutsideMaxExtent: true
     var params = {
			  format: 'png'
    layer = new OpenLayers.Layer.MapGuide( "MapGuide OS Overlay layer", url,
params, options );

    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.

More information about the mapguide-users mailing list