|
POST
|
I am using this example and the Print service is working great. Print templates with esri.request | ArcGIS API for JavaScript But now looking to take it to the next level and modify the Layout of the output. Titles, Adding Text in specific locations. Can someone help and point me in a direction where i might find info or examples. Can I format with HTML, CSS? I would also like to use this as a reporting tool....Can I push selected features (which I am pushing to DataGrid's) into the Print Out on a second page? Is there a way to control the resolution of the output image? Thanks
... View more
07-25-2014
01:25 PM
|
0
|
0
|
863
|
|
POST
|
Posted and Answered in this room https://community.esri.com/message/389472#389472
... View more
07-22-2014
01:13 PM
|
0
|
0
|
1180
|
|
POST
|
Think this is working....I owe you a cold one Ken..I cant thank you enough for your eyes and help....learning every day here....MUCH Appreciated.... action3 = on.pausable(app.map, "click", function(evt) { executeIdentifyTask(evt); // Call Identify function }); UPDATE: VERIFY its working......CHEERS Thanks a million
... View more
07-22-2014
10:26 AM
|
0
|
0
|
1826
|
|
POST
|
Not sure what this is telling me from the Console....something about missing geometry when I made the changes. Error {code: 400, message: "Missing 'geometry' for identify operation.", details: Array[0], log: undefined, httpCode: 400…} _ssl: undefined code: 400 details: Array[0] httpCode: 400 log: undefined message: "Missing 'geometry' for identify operation." stack: "Error↵ at Error (native)↵ at Object.e.load (https://js.arcgis.com/3.10/init.js:619:426)↵ at https://js.arcgis.com/3.10/init.js:187:69↵ at c (https://js.arcgis.com/3.10/init.js:74:221)↵ at d (https://js.arcgis.com/3.10/init.js:74:10)↵ at resolve.callback (https://js.arcgis.com/3.10/init.js:75:350)↵ at c (https://js.arcgis.com/3.10/init.js:74:436)↵ at d (https://js.arcgis.com/3.10/init.js:74:10)↵ at resolve.callback (https://js.arcgis.com/3.10/init.js:75:350)↵ at https://js.arcgis.com/3.10/init.js:191:300" __proto__: d init.js:188 TypeError {stack: "TypeError: Cannot read property 'length' of null↵ …errback (https://js.arcgis.com/3.10/init.js:76:1)", message: "Cannot read property 'length' of null"} "TypeError: Cannot read property 'length' of null at null.<anonymous> (http://localhost/dgifmapping/js/AppLayout_Warbler12.js:520:55) at h.(anonymous function).g [as onSetFeatures] (https://js.arcgis.com/3.10/init.js:239:390) at e._updateFeatures (https://js.arcgis.com/3.10/init.js:1207:314) at https://js.arcgis.com/3.10/init.js:173:204 at c (https://js.arcgis.com/3.10/init.js:74:221) at d (https://js.arcgis.com/3.10/init.js:74:10) at reject.errback (https://js.arcgis.com/3.10/init.js:76:1) at c (https://js.arcgis.com/3.10/init.js:74:493) at d (https://js.arcgis.com/3.10/init.js:74:10) at reject.errback (https://js.arcgis.com/3.10/init.js:76:1)" init.js:205 Error {stack: "Error↵ at Error (native)↵ at Object.e.load (… at https://js.arcgis.com/3.10/init.js:191:300", code: 400, message: "Missing 'geometry' for identify operation.", details: Array[0], log: undefined…} "Error at Error (native) at Object.e.load (https://js.arcgis.com/3.10/init.js:619:426) at https://js.arcgis.com/3.10/init.js:187:69 at c (https://js.arcgis.com/3.10/init.js:74:221) at d (https://js.arcgis.com/3.10/init.js:74:10) at resolve.callback (https://js.arcgis.com/3.10/init.js:75:350) at c (https://js.arcgis.com/3.10/init.js:74:436) at d (https://js.arcgis.com/3.10/init.js:74:10) at resolve.callback (https://js.arcgis.com/3.10/init.js:75:350) at https://js.arcgis.com/3.10/init.js:191:300"
... View more
07-22-2014
10:15 AM
|
0
|
0
|
1826
|
|
POST
|
I am reworked to do it this way and the two buttons are seemly to be playing nicely....where as, when I go between them I am not being prompted by alerts from the other Functions. BUT For some reason I am not getting any return data to the window....very puzzled.. function Identify() { domUtils.toggle(dom.byId("divLayerContainer")); if (action2 != undefined) { action2.pause(); alert("Action2 != undefined"); } if (action3 == undefined) { alert("Action3 A"); action3 = on.pausable(app.map, "click", function(evt) { executeIdentifyTask(map); // Call Identify function }); } else { action3.resume(); alert("Action3 B"); } } function Buffer() { app.map.setMapCursor("crosshair"); dojo.byId("divLayerContainer").style.display = "none"; alert("In Initial Buffer"); if (action3 != undefined) { action3.pause(); alert("Action3 != undefined"); } if (action2 == undefined) { alert("Action2 A"); action2 = on.pausable(app.map, "click", function(evt) { var params = new BufferParameters(); params.geometries = [ evt.mapPoint ]; params.distances = [ 25 ]; params.outSpatialReference = app.map.spatialReference; params.unit = GeometryService.UNIT_STATUTE_MILE; BufferTool(map, params); // Call BufferTool function and pass the Buffer Parameters }); } else { alert("Action2 B"); action2.resume(); } }
... View more
07-22-2014
10:01 AM
|
0
|
1
|
1826
|
|
POST
|
First off THANKS Ken I change to this and it just spins....no results returned.... I still get the 2 alerts from the two identify functions but no results!!! function executeIdentifyTask (event) { alert("in executeIdentifyTask"); function initializeSidebar(map){ alert("in initialize sidebar"); CHANGED THIS //action3 = app.map.on("click", executeIdentifyTask); TO THIS action3 = on.pausable(app.map, "click", function(evt) { executeIdentifyTask(map); // Call Identify function });
... View more
07-22-2014
09:23 AM
|
0
|
4
|
1826
|
|
POST
|
I have been bashing my head against the wall for over a week now....I cant get this to work....I trimmed it down the best I could in the link below. If oyouhit the first button on the right (identify) and click somewhere in Virginia it runs the code and returns results in a container on the right. Promting a few alerts along the way, The click the second button (Buffer). When you click the map the prompts from the Identify still appear as well as the buffer alerts. The buffer code runs fine, BUT the identify is also running forcing unneeded processing. I have tried everything I could think of and Cannot get the identify to STOP running after one clicks the Buffer Button. Can someone PLEASE put their eyes on this and maybe help me determine why I cannot shut off the Identify Code. WEBSITE can be found here: Application Re: Stop code from running.
... View more
07-21-2014
03:05 PM
|
0
|
7
|
2461
|
|
POST
|
this is posted in the wrong room...should be in JavaScript....moving now
... View more
07-21-2014
03:02 PM
|
0
|
1
|
1180
|
|
POST
|
I have been bashing my head against the wall for over a week now....I cant get this to work....I trimmed it downthe best I could in the link below. If oyu hit the first button on the right (identify) and click somewhere in Virginia it runs the code and returns results in a container on the right. Promting a few alerts along the way, The click the second button (Buffer). When you click the map the prompts from the Identify still appear as well as the buffer alerts. The buffer code runs fine, BUT the identify is also running forcing unneeded processing. I have tried everything I could think of and Cannot get the identify to STOP running after one clicks the Buffer Button. Can someone PLEASE put their eyes on this and maybe help me determine why I cannot shut off the Identify Code. WEBSITE can be found here: Application
... View more
07-21-2014
08:59 AM
|
0
|
2
|
1180
|
|
POST
|
I have 2 buttons in my application. Identify and Buffer What I ma after is clicking the identify and then being about to click the map and run it. Then click the Buffer button and run the Buffer code. Right now I can hit the Buffer Button and run the buffer code Then click the identify button (click it) and run the identify code (THE BUFFER CODE DOES NOT RUN) But if I go back to the Buffer Button and run that code the Identify code is STILL running. I cant seem to pause the Identify code....Anyone have any thoughts Just pasting a snip of the code below...can post more if need be. var action1, action2, action3; on(dojo.byId('Identify'), "click", Identify); on(dojo.byId('Buffer'), "click", Buffer); function Identify() { if (action2 != undefined) { action2.pause(); } if (action1 == undefined) { action1 = initializeSidebar(app.map); action3 = mapReady(); featureLayer.setInfoTemplate(template); } else { action1.resume(); } } function Buffer() { if (action1 != undefined) { action1.pause(); action1.destroy(); action3.pause(); action3.destroy(); } if (action2 == undefined) { action2 = on.pausable(app.map, "click", function(evt) { var params = new BufferParameters(); params.geometries = [ evt.mapPoint ]; params.distances = [ 2 ]; params.outSpatialReference = app.map.spatialReference; params.unit = GeometryService.UNIT_STATUTE_MILE; BufferTool(map, params); // Call BufferTool function and pass the Buffer Parameters }); } else { action2.resume(); } }
... View more
07-18-2014
11:09 AM
|
0
|
4
|
1832
|
|
POST
|
I was successful in changing the cursor when a specific button is clicked. IN this case its a button that creates a buffer. BUT ... the button in in the header of my web page....when I go onto the map it goes back to default. I want this Cursor change to only apply to this button Only change on the map DIV go back to default when another button is clicked. This is what I am trying... // Changes the cursor to an hourglass function cursor_crosshair() { document.body.style.cursor = 'crosshair'; } // Returns the cursor to the default pointer function cursor_clear() { document.body.style.cursor = 'default'; } cursor_crosshair();
... View more
07-18-2014
07:41 AM
|
0
|
1
|
1156
|
|
POST
|
Drove me a bit bonkers for a bit till I realized I was missing "dojo/data/ItemFileWriteStore", Thank you much for your help....very appreciated.
... View more
07-18-2014
06:19 AM
|
0
|
0
|
803
|
|
POST
|
If I am populating my grid as such how to I clear it.....when I rerun my function to get new data in a new area the last results are there untill the code finishes running....I want that to clear first before running the code. Function updateGrid(featureSet) { var data = arrayUtils.map(featureSet.features, function (entry, i) { return { id: entry.attributes.OBJECTID, SITENAME: entry.attributes.SITENAME, WATERBODY: entry.attributes.WATERBODY, ACCESSAREA: entry.attributes.ACCESSAREA, LOCATION: entry.attributes.LOCATION }; }); // If you use a store... dataStore = new Memory({ "data": data, "idProperty": "id" }); gridNoColumnSets.set("store", dataStore); gridNoColumnSets.startup(); }
... View more
07-17-2014
12:12 PM
|
0
|
2
|
1118
|
|
POST
|
I see in some examples where it says 1 of 3 etc as the user scrolls through the selected list....but I cannot find the exact code in the examples as it seems a function of the widget
... View more
07-03-2014
10:51 AM
|
0
|
0
|
374
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|