[mapguide-users] Changing the Scale and Extents of a MgMap via .NET API

Johann Nothbauer nothbauer at rmdata.at
Fri Aug 22 08:25:27 EDT 2008


Hi All!

Is it possible to manipulate a MgMap object via the .NET API?
I am using the .NET API without a Viewer-Context. I'm trying to render a 
Map to a System.Windows.Form in .NET.
I can render a Map, but can I can't change the ViewExtents or the 
ViewScale like this:

MgMap kgMap = new MgMap();
... some map initialization...

MgPoint center = kgMap.ViewCenter;  // this works well
double viewScale = kgMap.ViewScale;

kgMap.SetViewScale() // is impossible, no such Method

Is this the right approach for doing such things?
Should I use the Mapagent instead? If yes, which Method will do the Trick?

cheers,
Nothi





More information about the mapguide-users mailing list