From 02016cf2444806ad05b0b72c18930b28c21e80cb Mon Sep 17 00:00:00 2001 From: Tino Desjardins Date: Sat, 4 Nov 2017 14:38:36 +0100 Subject: [PATCH 1/2] Fix MapGuide example --- examples/mapguide-untiled.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/mapguide-untiled.js b/examples/mapguide-untiled.js index 2270ce4528..fcf5d3144f 100644 --- a/examples/mapguide-untiled.js +++ b/examples/mapguide-untiled.js @@ -3,9 +3,9 @@ goog.require('ol.View'); goog.require('ol.layer.Image'); goog.require('ol.source.ImageMapGuide'); -var mdf = 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition'; +var mdf = 'Library://Public/Samples/Sheboygan/Maps/Sheboygan.MapDefinition'; var agentUrl = - 'http://data.mapguide.com/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous'; + 'http://www.buoyshark.com/mapguide/mapagent/mapagent.fcgi?'; var bounds = [ -87.865114442365922, 43.665065564837931, @@ -23,7 +23,9 @@ var map = new ol.Map({ metersPerUnit: 111319.4908, //value returned from mapguide params: { MAPDEFINITION: mdf, - FORMAT: 'PNG' + FORMAT: 'PNG', + USERNAME: 'OpenLayers', + PASSWORD: 'OpenLayers' }, ratio: 2 }) From 7cb8b526a9c4282b866ff3bd7066ca1c18552c40 Mon Sep 17 00:00:00 2001 From: Tino Desjardins Date: Sat, 4 Nov 2017 14:53:21 +0100 Subject: [PATCH 2/2] Format source code --- examples/mapguide-untiled.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mapguide-untiled.js b/examples/mapguide-untiled.js index fcf5d3144f..e5fcc04349 100644 --- a/examples/mapguide-untiled.js +++ b/examples/mapguide-untiled.js @@ -24,8 +24,8 @@ var map = new ol.Map({ params: { MAPDEFINITION: mdf, FORMAT: 'PNG', - USERNAME: 'OpenLayers', - PASSWORD: 'OpenLayers' + USERNAME: 'OpenLayers', + PASSWORD: 'OpenLayers' }, ratio: 2 })