Re[mapguide-users] quest for change the status bar to reflect the
layer selected
Bruno Scott
bscott at geomapgis.com
Wed Dec 17 06:09:37 EST 2008
Actually, the status bar in the ajax viewer only shows the amount of features
selected.
It would be great if it showed the name of the selected layer also.
If there is many features selected on different layers, the behavior stays
the same as actually.
The modification is trivial
In the mainframe.templ
instead of having
if(hasStatusbar == 1)
sbFrame.SetFeatureSelectedMsg(FormatMessage((selCount > 1?
"__#FEATURESSELECTED#__": "__#FEATURESELECTED#__"), new Array(selCount,
"unused")));
we would have this
if(hasStatusbar == 1)
{
var selLayers = GetMapFrame().GetSelectedLayers();
if(selLayers.length == 1)
{
sbFrame.SetFeatureSelectedMsg(FormatMessage("__#LAYERSELECTED#__",
new Array(selCount, selLayers[0].legend)));
}
else
{
sbFrame.SetFeatureSelectedMsg(FormatMessage((selCount > 1?
"__#FEATURESSELECTED#__": "__#FEATURESELECTED#__"), new Array(selCount,
"unused")));
}
}
i will create a ticket for this one
--
View this message in context: http://www.nabble.com/Request-for-change-the-status-bar-to-reflect-the-layer-selected-tp21051252p21051252.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list