Currently to get the map that is currently running on the server must be done by first calling the GetCurrentMapInfo XMLRPC method. And then get the map info from the database before building an IMap instance. This is cumbersome and probably creates lots of duplicate code.
A better idea is to implement this in the MapService service, it should return an IMap instance representing the map.
In addition, if the map doesn't exist, it can be a good idea to add the map to the database as well.
Currently to get the map that is currently running on the server must be done by first calling the
GetCurrentMapInfo
XMLRPC method. And then get the map info from the database before building anIMap
instance. This is cumbersome and probably creates lots of duplicate code.A better idea is to implement this in the
MapService
service, it should return anIMap
instance representing the map.In addition, if the map doesn't exist, it can be a good idea to add the map to the database as well.