Now, I'm trying to make an online map. My map shows multiple layer such road, block, land use, etc. Each layer have to set transparency, so I make the layer using feature layer. But when I'm trying to print this map,the print does not show all my feature layers. Please help me, is there anything I have missed or something wrong on my code.
This is sample code to add my feature layer to app.map,:
my feature layer sample defenition :
app.flroad = new esri.layers.FeatureLayer("http://10.7.12.21:6080/arcgis/rest/services/inventoryMapv11/MapServer/1, {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
visible: true
});
and than all the feature layer adding to map.
layerDefinitions = [app.flsph, app.fl,app.flpeat, app.flhcv, app.fllanduse, app.fl2, app.flbound, app.flriver2, app.flriver1, app.flroad, app.flpoi];app.map.addLayers(layerDefinitions);
On Map Screen all the layer are shown, but when printing execute and empty printing show. and the print function : app.printer = new esri.dijit.Print({ map: app.map, templates: templates, url: app.printUrl }, dojo.byId("print_button")); app.printer.startup();