I assumed mdfId was shorthand for Map Definition id, thus my example show creating a Web Layout from scratch with an existing Map Definition resource id.
In that case, what you want to do would be something like this: IWebLayout wl = (IWebLayout)conn.ResourceService.GetResource(mdfId); //Fetches the XML content and deserializes it into object form. txtStats.Text += "\nMap: " + wl.Map.ResourceId; // OK txtStats.Text += "\nScale: " + wl.Map.InitialView.Scale; // Also OK - Jackie -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Maestro-API-InitialView-of-WebLayout-is-null-tp6607143p6609751.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
