|
POST
|
Robert, Yay! It works, Thanks so much. I will look at the corrected fiddle to see what I was missing.
... View more
11-18-2014
01:57 PM
|
0
|
0
|
704
|
|
POST
|
Need some help to figure out what I am missing, basically all I am trying to do is switch layers from nursing homes to hospitals,all other functionalities remain the same: this is the one with hospitals, not working http://jsfiddle.net/JSSR/7pukb2j1/ Here is the original working Application:with nursing homes http://jsfiddle.net/JSSR/9u52hooq/ If someone can take a look at it and help me that will be great! Thanks
... View more
11-18-2014
01:33 PM
|
0
|
2
|
989
|
|
POST
|
Ken, Thanks for the help and explaining the problem, that helps a lot to understand why it I was not getting the desired results.
... View more
09-29-2014
01:50 PM
|
0
|
0
|
1499
|
|
POST
|
Ken, Thanks for looking at my application and the quick reply, the tooltip is showing up, but the circle still disappears, is there a way where we can have the circle to stay up once it selects the features, so the user can hover around different points to see the FacilityIDs . Thanks.
... View more
09-29-2014
01:05 PM
|
0
|
3
|
1499
|
|
POST
|
Harold, I fixed the setRenderer, here is a working version of my application, labels are now showing up, at the scale I want: http://jsfiddle.net/JSSR/d6z1enf3/ Thanks for pointing out the problem!
... View more
09-29-2014
12:45 PM
|
0
|
0
|
1531
|
|
POST
|
Hi, I am trying to add hover over tooltip to my application, but once I add code for tooltip, the dialog is not showing up and now even the circle that is used to draw a buffer and select features disappears, here is what I have so far, if anyone take a look and point out what is missing or needs to be corrected, that will be great, thanks! http://jsfiddle.net/JSSR/b2cjcdoc/
... View more
09-29-2014
12:32 PM
|
0
|
5
|
2234
|
|
POST
|
Hi Harold, The points show up now, even in my original code when I comment out the line 141, and it is doing what I am looking for. Thanks for looking at it and pointing out the problem. Will look into the setRenderer and see what is the problem and if needs any modifications. Thanks again for the help!
... View more
09-22-2014
01:36 PM
|
0
|
0
|
1531
|
|
POST
|
Hi, I am having a problems with the feature layer not showing up after I add label layer to my application, it is working fine, doing everything required but displaying the points. I know they are loaded because when I draw a circle, the points within the the buffer are selected and sent to the datagrid, I want to be able see all points along with the FacilityIDs labeled. Here is my code in the attached JSfiddle: http://jsfiddle.net/JSSR/zbLdk6q4/1/ If I add this everything goes away map.addLayer(featureLayer); or this featureLayer.show(); may be I am not putting in the right place. Thanks!
... View more
09-22-2014
12:27 PM
|
0
|
3
|
1531
|
|
POST
|
Tim, I added the correct link, but that did not help, probably something else needs to corrected, still working on it. Thanks for the help.
... View more
09-17-2014
08:49 AM
|
0
|
0
|
1284
|
|
POST
|
Thanks, Kelly for a such a quick response and for fixing the errors. Works fine now!!
... View more
09-16-2014
05:56 PM
|
0
|
0
|
2051
|
|
POST
|
Hi Mike, I have published a feature service and I am using the REST point URL for that service in my JavaScript application. I am now I am trying to add labels, but once I add label layer and create a text symbol, the feature layer itself is not showing up. Here is my application in JSfiddle, if you can take a look at it and tell me what is missing or what needs to be corrected that be a great help. http://jsfiddle.net/ynhw88er/7/ Thanks!!
... View more
09-16-2014
04:58 PM
|
0
|
2
|
2051
|
|
POST
|
Tim, I need some help figuring this out, I am trying to do something similar, but once I add the label layer, the feature layer is not showing up. I have added this, among other required require ([ "esri/layers/LabelLayer", "esri/renderers/ScaleDependentRenderer" function( LabelLayer, ScaleDependentRenderer var featureLayer = new FeatureLayer("http://services1.arcgis.com/hVMNhMnY75fwfIFy/ArcGIS/rest/services/NursingFacilities/FeatureServe mode: FeatureLayer.MODE_ONDEMAND, outFields: [labelField] }); var labelField = "FacilityID"; var NFColor = new Color("#444") // create a text symbol to define the style of labels var NFLabel = new TextSymbol().setColor(NFColor); NFLabel.font.setSize("12pt"); NFLabel.font.setFamily("arial"); NFLabelRenderer = new SimpleRenderer(NFLabel); var labels = new LabelLayer({ id: "labels" }); // tell the label layer to label the Nursing facility feature layer // using the field named "FacilityID" labels.addFeatureLayer(featureLayer, NFLabelRenderer, "{" + labelField + "}"); // add the label layer to the map map.addLayer(labels); // scale dependent renderer for NF labels var NFRenderer = new SimpleRenderer(NFLabel); var NFScaleDependent = new ScaleDependentRenderer({ rendererInfos: [{ renderer: NFRenderer, minScale: 500000, maxScale: 1 ); }); var NFOptions = { pointPriorities: "AboveCenter" }; labels.addFeatureLayer(featureLayer, NFScaleDependent, "{FacilityID}", NFOptions); FeatureLayer.setRenderer(NFRenderer); map.addLayer(featureLayer); The feature layer itself is not loading, something is missing or I am not doing it right, any help will be appreciated. Thanks!
... View more
09-15-2014
12:31 PM
|
0
|
2
|
1284
|
|
POST
|
Riyas, It does work now, I am not sure what I was doing wrong earlier. Thanks for explaining the server side component for export/download to CSV, I kind of had an idea, I now understand it better. The link to the thread that you have sited in your answer is the same one I got the iframe/export handler example. Thanks for all the help.
... View more
09-08-2014
09:42 AM
|
0
|
0
|
1694
|
|
POST
|
Hi Riyas, Thank you very much for updating the code to use Enhanced grid, the print function works well, but for some reasons it works only once and does not update and if we click on another point, the map disappears and does not load again, I am trying this in JSFiddle, if you can take a look that it will be great. Also, export all to csv, just gives an alert message, I want to be able to save or download that, is there any way to do that. I came across some examples that use Iframe something like this, dojo/request/iframe view /dojo/request/iframe require(["dojo/request/iframe"], function(iframe){ iframe("csv", { handleAs: "csv" Found one that has something similar, http://jsfiddle.net/g42qpc75/4/ but since I am new to JScript, I do not know if that will solve the issue or help in my example. Thanks again for your time and help!
... View more
09-05-2014
12:38 PM
|
0
|
2
|
1694
|
|
POST
|
Riyas, You had helped me a couple of weeks back with my JavaScript application, I am now trying to add some more functionality to this application, I want to add print and export to csv functions to the datagrid. I was going through the documentation for Dgrid for options dgrid - A Dojo grid created by SitePen and noticed that it does not have print and export features, but from what I have been reading through forums and other places, I see suggestions for using plugins for printer and exporter which only work with EnhancedGrid dojox.grid.EnhancedGrid.plugins.Printer — The Dojo Toolkit - Reference Guide dojox.grid.EnhancedGrid.plugins.Exporter — The Dojo Toolkit - Reference Guide Example: http://datatables.net/extensions/tabletools/ I did not find any samples in ArcGIS JavaScript Api reference that use Enhanced grid, do you have any suggestions how I can go about adding Print and Export to csv or excel, in this example that I have attached here. Thanks in advance!
... View more
09-04-2014
11:04 AM
|
0
|
4
|
1693
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-15-2015 12:26 PM | |
| 1 | 02-26-2017 10:19 AM | |
| 1 | 06-02-2015 11:44 AM | |
| 1 | 06-09-2015 07:51 AM | |
| 1 | 03-24-2015 09:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|