Hello, I'm trying to display a MapGuide Map using OpenLayer v6.1.0. I can see the Map in preview in Maestro but the Map does not showing up in OpenLayers, the example from here works fine: https://openlayers.org/en/latest/examples/mapguide-untiled.html
I don't understand the Version parameter, which is set to 3.0.0 in the example code. Is this the MapGuide Version? I'm using MapGuide 2.5.2 This is my code so far: var agentUrl = 'http://192.168.128.176:85/mapguide/mapagent/mapagent.fcgi?'; var mdf = 'Library://Test/Maps/Test.MapDefinition'; var mapguide = new ol.source.ImageMapGuide({ projection: 'EPSG:31467', url: agentUrl, useOverlay: false, metersPerUnit: 1.00000000000000, params: { MAPDEFINITION: mdf, FORMAT: 'PNG', VERSION: '2.5.2', USERNAME: 'Administrator', PASSWORD: 'admin' }, ratio: 1 }) var layersource = new ol.layer.Image({ source: mapguide }) var map = new ol.Map({ layers: [layersource], target: 'map', view: new ol.View({ zoom: 12, center: [3474969.4459683, 5494505.61502864] }) }); There are no errors, just a white screen with zoom control. This is the information I obtained from maestro for that test map: *PROJCS["DHDN/3.Gauss3d-3",GEOGCS["DHDN/3.LL",DATUM["DHDN/3",SPHEROID["BESSEL",6377397.155,299.15281535],TOWGS84[598.1000,73.7000,418.2000,-0.202000,-0.045000,2.455000,6.70000000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",3500000.000],PARAMETER["false_northing",0.000],PARAMETER["scale_factor",1.000000000000],PARAMETER["central_meridian",9.00000000000000],PARAMETER["latitude_of_origin",0.00000000000000],UNIT["Meter",1.00000000000000]]* -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users