[mapguide-users] Manipulating Maps in a Session, .NET API
Maksim Sestic
max at geoinova.com
Tue Aug 26 03:20:51 EDT 2008
Hi Nothi,
Please see Maestro API: http://trac.osgeo.org/mapguide/wiki/maestro
You need to reference OSGeo.MapGuide.MaestroAPI.dll and
MapGuideDotNetApi.dll libraries to get started. Then look for
RuntimeClasses.RuntimeMap, I'll see to post some coding examples on Wiki
page.
It's still thin on documentation but if you have some previous experience
with managed MG API then it's rather straightforward. Kenneth also did a
great job of enabling (de)serialization fro an to managed types.
Regards,
Maksim Sestic
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Johann
Nothbauer
Sent: Tuesday, August 26, 2008 08:09
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Manipulating Maps in a Session, .NET API
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
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3387 (20080826) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3387 (20080826) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the mapguide-users
mailing list