[mapguide-trac] #803: Maestro API: Default settings for resource classes

MapGuide Open Source trac_mapguide at osgeo.org
Mon Dec 29 02:50:46 EST 2008


#803: Maestro API: Default settings for resource classes
-------------------------+--------------------------------------------------
 Reporter:  jng          |         Owner:  ksgeograf
     Type:  enhancement  |        Status:  assigned 
 Priority:  low          |     Milestone:           
Component:  Maestro      |       Version:           
 Severity:  trivial      |    Resolution:           
 Keywords:               |   External_id:           
-------------------------+--------------------------------------------------
Comment (by ksgeograf):

 In r3535, I have added a method called CreateResourceObject to the
 connection interface. You can now do:

 {{{
 MaestroAPI.HttpServerConnection con = new
 OSGeo.MapGuide.MaestroAPI.HttpServerConnection(new
 Uri("http://localhost/mapguide"), "Administrator", "admin", "da", true);
 MaestroAPI.LayerDefinition ldef =
 con.CreateResourceObject<MaestroAPI.LayerDefinition>();
 }}}

 And get a layer with many default properties set. Is this close enough to
 meet your requirements, or do you have a special use case in mind?

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/803#comment:4>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list