filter=args[1];
} else {
filter="A Point";
}
layerObj layer = map.getLayerByName("POINT");
layer.setTemplate("template.html");
layer.queryByAttributes(map,"FNAME", filter, mapscriptConstants.MS_MULTIPLE);
layer.open();
System.out.println( "Searched for: " +filter );
int results=layer.getNumResults();
System.out.println( "Results number (should be always 1): " +results );
for(int i=0;i<results;i++) {
shapeObj shape=layer.getShape(layer.getResult(i));
System.out.println( "shape["+i+"]=" +shape );
}
layer.close();
}