On the GridService, the central simulator features: ensure that the map tile url ends with '/' because the viewer is dumb and just appends to it.

sedebug
Diva Canto 2015-01-22 10:45:07 -08:00 committed by Justin Clark-Casey (justincc)
parent 4509bbb8e4
commit 42644e3b84
1 changed files with 7 additions and 1 deletions

View File

@ -164,8 +164,14 @@ namespace OpenSim.Services.GridService
configVal = loginConfig.GetString("MapTileURL", string.Empty);
if (!string.IsNullOrEmpty(configVal))
{
// This URL must end with '/', the viewer doesn't check
configVal = configVal.Trim();
if (!configVal.EndsWith("/"))
configVal = configVal + "/";
m_ExtraFeatures["map-server-url"] = configVal;
}
configVal = loginConfig.GetString("DestinationGuide", string.Empty);
if (!string.IsNullOrEmpty(configVal))
m_ExtraFeatures["destination-guide-url"] = configVal;