This works: > mapFrame.ZoomToView(mapFrame.GetCenter().X, mapFrame.GetCenter().Y, scale)
Brilliant! Still, in the spirit of understanding things fully, how does one proceed using the method you just described? This fails from the scriptFrame: parent.mapFrame.getLegendCtrl().SetScale(1000); Thanks for the help. Tom Kenneth Skovhede, GEOGRAF A/S wrote: > > Arh... you have to call mapFrame.GetLegendCtrl() > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > > Tom Chadwin skrev: >> Hi Kenneth >> >> Thanks for the reply. I know the description and diagram are in the >> Developers' Guide, but the Legend Palette is not present in either the >> list >> of frames or the diagram. Is it part of mapFrame? If so, it must be a >> frame >> within it, since I believe that mapFrame.SetScale() throws an error. >> >> Thanks >> >> Tom >> >> >> >> Kenneth Skovhede, GEOGRAF A/S wrote: >> >>> The viewer frame layout is described in the "MapGuide Developers Guide" >>> on page 19: >>> http://mapguide.osgeo.org/2.0/documentation.html >>> >>> Regards, Kenneth Skovhede, GEOGRAF A/S >>> >>> >>> >>> Tom Chadwin skrev: >>> >>>> Hello >>>> >>>> I cannot work out which frame contains the legend palette functions. I >>>> want >>>> to execute the Viewer API function SetScale from a script in the >>>> scriptFrame, but cannot seem to get the path right. >>>> >>>> Can anyone help? >>>> >>>> Many thanks >>>> >>>> Tom >>>> >>>> >>> _______________________________________________ >>> mapguide-users mailing list >>> [email protected] >>> http://lists.osgeo.org/mailman/listinfo/mapguide-users >>> >>> >>> >> >> > > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/Call-legend-palette-method-from-scriptFrame-tp17986614p17988347.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
