aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapGetServerConnector.cs')
-rw-r--r--OpenSim/Server/Handlers/Map/MapGetServerConnector.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
index bd1ddbd..e2c8f35 100644
--- a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
@@ -38,6 +38,7 @@ using OpenSim.Server.Base;
38using OpenSim.Services.Interfaces; 38using OpenSim.Services.Interfaces;
39using OpenSim.Framework.Servers.HttpServer; 39using OpenSim.Framework.Servers.HttpServer;
40using OpenSim.Server.Handlers.Base; 40using OpenSim.Server.Handlers.Base;
41using OpenMetaverse;
41 42
42namespace OpenSim.Server.Handlers.MapImage 43namespace OpenSim.Server.Handlers.MapImage
43{ 44{
@@ -93,7 +94,16 @@ namespace OpenSim.Server.Handlers.MapImage
93 94
94 byte[] result = new byte[0]; 95 byte[] result = new byte[0];
95 string format = string.Empty; 96 string format = string.Empty;
96 result = m_MapService.GetMapTile(path.Trim('/'), out format); 97
98 UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992");
99
100 string[] bits = path.Trim('/').Split(new char[] {'/'});
101 if (bits.Length > 1)
102 {
103 scopeID = new UUID(bits[0]);
104 path = bits[1];
105 }
106 result = m_MapService.GetMapTile(path.Trim('/'), scopeID, out format);
97 if (result.Length > 0) 107 if (result.Length > 0)
98 { 108 {
99 httpResponse.StatusCode = (int)HttpStatusCode.OK; 109 httpResponse.StatusCode = (int)HttpStatusCode.OK;