mapOptionsDependencyObjects[3] = cr.new ObjectsHelper();
mapOptionsDependencyObjects[3].object = new Point();
mapOptionsDependencyObjects[3].alias = "point";
MapOptions mo = (MapOptions) cr.getObjectFromXML(ph.XMLFile, "mo", MapOptions.class, mapOptionsDependencyObjects);
String routeId = cr.getFieldFromXML(ph.XMLFile, "routeId");
int radius = Integer.valueOf(cr.getFieldFromXML(ph.XMLFile, "radius"));
try
{
mi = cMr.getZoomRadius(routeId, point, radius, mo, id_licenca, mapType);
}
catch (Exception e)
{
e.printStackTrace();
}
response.setContentType("text/xml");
response.setCharacterEncoding("UTF-8");
ObjectsHelper[] dependencyObjects = new ObjectsHelper[2];
dependencyObjects[0] = cr.new ObjectsHelper();
dependencyObjects[0].object = new Extent();
dependencyObjects[0].alias = "extent";
dependencyObjects[1] = cr.new ObjectsHelper();
dependencyObjects[1].object = new MapInfo();
dependencyObjects[1].alias = "MapInfo";
response.getWriter().write("<?xml version='1.0' encoding='UTF-8'?>\n" + cr.getXMLFromObject(mi, dependencyObjects) + "");
}
if (ph.fields[0].equals("getMap"))
{
MapInfo mi = new MapInfo();
String mapType = cr.getFieldFromXML(ph.XMLFile, "maptype");
if (!mapType.toLowerCase().equals("gif") && !mapType.toLowerCase().equals("png") && !mapType.toLowerCase().equals("jpg") ){
mapType = "png";
}
Extent extent = (Extent) cr.getObjectFromXML(ph.XMLFile, "extent", Extent.class, null);
ObjectsHelper[] mapOptionsDependencyObjects = new ObjectsHelper[4];
mapOptionsDependencyObjects[0] = cr.new ObjectsHelper();
mapOptionsDependencyObjects[0].object = new MapSize();
mapOptionsDependencyObjects[0].alias = "mapSize";
mapOptionsDependencyObjects[1] = cr.new ObjectsHelper();
mapOptionsDependencyObjects[1].object = new Icon[0];
mapOptionsDependencyObjects[1].alias = "icon";
mapOptionsDependencyObjects[2] = cr.new ObjectsHelper();
mapOptionsDependencyObjects[2].object = new Icon();
mapOptionsDependencyObjects[2].alias = "Icon";
mapOptionsDependencyObjects[3] = cr.new ObjectsHelper();
mapOptionsDependencyObjects[3].object = new Point();
mapOptionsDependencyObjects[3].alias = "point";
MapOptions mo = (MapOptions) cr.getObjectFromXML(ph.XMLFile, "mo", MapOptions.class, mapOptionsDependencyObjects);
String routeId = cr.getFieldFromXML(ph.XMLFile, "routeId");
try