PROBLEM
The MapCafe legend image does not allow the client to scroll to the bottom of the legend image. The legend image is truncated, it is missing classification information.
This is a known problem in MapCafe build z19.
Code:
for each t in theThemes
thmName = t.GetName
LExt = t.ReturnLegendExt(theDpy,TOCSym,true)
LY = LExt.GetY + 0.125
LX = LExt.GetX + 0.0625
'**************************************************
'* ThemeHeights is a structure that gets passed *
'* to MapCafe during initialization, it contains *
'* information necessary for MapCafe to draw the *
'* legend, place checkboxes, and know whether a *
'* theme is initially to be made visible *
'* and searchable. *
'**************************************************
'0:ThemeName 1:Visibility 2:XOrigin, 3:YOrigin 4:Width 5:Height 6:Active
themeDetails ={thmName.Clone,t.IsVisible,0,(originY*ymod).Ceiling,((LX*xmod)).Ceiling,(LY*ymod).Ceiling,t.IsActive}
'7:Type
Code:
tlast = 1
tcount = theThemes.count
for each t in theThemes
thmName = t.GetName
LExt = t.ReturnLegendExt(theDpy,TOCSym,true)
LY = LExt.GetY + 0.125
LX = LExt.GetX + 0.0625
'**************************************************
'* ThemeHeights is a structure that gets passed *
'* to MapCafe during initialization, it contains *
'* information necessary for MapCafe to draw the *
'* legend, place checkboxes, and know whether a *
'* theme is initially to be made visible *
'* and searchable. *
'**************************************************
'0:ThemeName 1:Visibility 2:XOrigin, 3:YOrigin 4:Width 5:Height 6:Active
if (tcount = tlast) then
themeDetails ={thmName.Clone,t.IsVisible,0,(originY*ymod).Ceiling,((LX*xmod)).Ceiling,((LY + 3.5)*ymod).Ceiling,t.IsActive}
else
themeDetails ={thmName.Clone,t.IsVisible,0,(originY*ymod).Ceiling,((LX*xmod)).Ceiling,(LY*ymod).Ceiling,t.IsActive}
end
tlast = tlast + 1
'7:Type
Article ID:000004537
Get help from ArcGIS experts
Download the Esri Support App