Hi everyone! I have a big doubt, what is MapClass() ??? I downloaded the code "Synchronized MapControl and PageLayoutControl application" from http://edndoc.esri.com/arcobjects/9.2/net/667d20df-d51e-4766-8ca0-c8b0cb924e5d.htm and I am trying to convert this C Sharp code to Java code but I do not understand in the ControlsSynchronizer.cs :
//create a new instance of IMap
IMap newMap = new MapClass();
newMap.Name = "Map";
Can anyone explain me what is the meaning of MapClass and how can I implement this for Java???
Or if you have an idea for synchronize the MapControl and PageLayoutControl whit Java code?
a MapClass is just a Map. Add Class at the end of the class names is a .net thing, I forget why we do that now. It avoids conflicts with types from other assemblies. In java I think it is just a "map" same thing...
Thank you so much for your quickly answer, that is right!!! 🙂 Now I can synchronize the MapControl and PageLayoutControl when I use a shapefile, but I have a problem when I try to synchronize a .mxd file. I really appreciate your help.