|
POST
|
Rickey, I can give it a shot. Do you have the logic you can share? I will try anything that will help get me past the issue. Not sure if you tried the application, but you may be able to find out what I have been experiencing. Again, thank you much for your responses. Ian
... View more
02-25-2016
02:41 PM
|
0
|
1
|
1761
|
|
POST
|
Rickey, Thank you for the feedback. We reviewed the Story map, but it does not meet our needs. We are currently looking to migrate to a WAB application with a custom list widget. Here is a link to the test application: Art in Public Places We are trying to move to this application because it is more mobile friendly. The problem is that there appears to be a bug with the zoom. The following line of code works, but gets cranky at random: var publicArtExtent = features[0].geometry; this.map.centerAndZoom(publicArtExtent, .50); I have ESRI looking into this issue. I want the user to be able to center and zoom in on the feature. I am using ArcGIS Server 10.1 SP1 and we are planning to migrate soon. There is also a known bug, where you use this block of code for zooming to a feature with a single click in the datagrid: statesLayer.on("load", function(evt) { var query = new Query(); query.where = "1=1"; evt.layer.queryFeatures(query, function(featureSet) { var items = array.map(featureSet.features, function(feature) { return feature.attributes; }); //idProperty must be set manually if value is something other than 'id' var memStore = new Memory({ data: items, idProperty: "OBJECTID" }); window.grid.set("store", memStore); window.grid.set("sort", "NAME"); grid.on(".field-OBJECTID:click", function(e) { //retrieve the ObjectId when someone clicks on the magnifying glass if (e.target.alt) { zoomRow(e.target.alt); } }); }); }); The problem is where you use a query.where 1=1 then refresh the map, the data grid and feature layer does not display until you refresh again. To remedy this problem, the following code was added in: this.publicartFL.on("load", lang.hitch(this, function () { var time = Math.floor(Math.random() * 1000); var requestUrl = "http://gis.edmondok.com/arcgis/rest/services/Parks/PublicArt/MapServer/0/query?where=1%3D1&outFields=*&time=" + time; var request = new esriRequest({ 'url': requestUrl, 'content': { 'f': "json" }, 'callbackParamName': "callback" }); This works if you refresh the application and the data grid and feature layer always displays. This seems to be a nasty bug. But it also seems to be a lose lose situation. Ian
... View more
02-25-2016
12:57 PM
|
0
|
3
|
1761
|
|
POST
|
I have a JavaScript application and add-in tool that allows an end user to zoom to a feature on the map with a single click. However, when doing so, the user can repeat this a few times, then I get an error in console mode that states 'unable to complete operation'. Then zooming to the feature turns into a double click on the zoom icon. This issue is very random. I want the single click on the feature to work at all times. Has anyone else experienced this issue? This issue is so random and is not specific to any particular feature. You can single click 10 times, then you run into a feature that requires a double click, another with a double click, then back to a single click. Here is a link to my application: Art in Public Places I would appreciate any feedback. Also, would there be a better solution to populate a grid and zoom to feature? Thank you for any feedback. Ian
... View more
02-25-2016
10:34 AM
|
0
|
5
|
3547
|
|
POST
|
Thank you very much Robert! I was able to lengthen the data grid by using this code: .dgrid-grid.ui-widget.gridDiv{ height: 750px; padding: 0px; border-style: none; } However, what you suggested looks a lot better and that is what I am going with. I added some other css properties to make the data grid list look like this: I am now working with the css to have the grey lines removed from the columns. Still selecting elements on the page to see what it is I need to set . Thank you much for your assistance! Ian
... View more
02-03-2016
11:41 AM
|
1
|
0
|
4464
|
|
POST
|
Robert, Thank you again for the response. Your assistance is greatly appreciated. I couldn't modify the height of the grid with that line you listed above. I am trying to select elements on the page to see if I can add properties to the .css file. What do you think? Here is how it currently looks:
... View more
02-02-2016
01:49 PM
|
0
|
6
|
4464
|
|
POST
|
Robert, Thank you so much! This works really well. This is awesome! Still trying to get my icons referenced properly and change the height of the grid within the panel. Ian
... View more
02-02-2016
01:16 PM
|
0
|
8
|
4464
|
|
POST
|
I have a JavaScript application that contains a data grid, where the user can click on an icon to zoom to feature or click on another icon to open up a fact sheet. Here is a preview: I want to deploy this data grid functionality as a widget, but currently struggling to get it to work properly. I know the steps to add in the custom widget to the Web Application Builder, but cannot get this tool to work properly. I am attaching the code that contains the tool I want to deploy. The zip file contains: 1. CSS folder with the layout.css file; 2. Graphics folder that contains the two icons; 3. the index.htm file which contains the code. I have the feature layer I want to use hard coded, which is fine and what I want. I want the data grid to appear in the panel within the widget. So far, I have been unsuccessful in getting this deployed properly. Does anyone have any ideas or approaches I can use? Would greatly appreciate some assistance. Ian
... View more
02-02-2016
07:39 AM
|
0
|
14
|
8206
|
|
POST
|
Hello Everyone! I was wondering if anyone has developed an application where you have a DIV that contains a legend, then you have an arrow or button that collapses it within an application? If so, how can this be done? Example: The result would be more map space: Any suggestions? This will be the first time trying this out. Thank you.
... View more
10-29-2015
01:48 PM
|
0
|
4
|
3334
|
|
POST
|
Thanks Rickey. Still need to figure out feature layer drawing, but no need to use it if I can use the dynamic layer to perform the same function .
... View more
10-15-2015
06:18 AM
|
0
|
0
|
2648
|
|
POST
|
I have figured out a different solution. I am now using the ArcGISDynamicMapService for using an Info Popup. Caching the browser each time fixes the issue, but that is not reasonable for end users. The dynamic map service shows up each time the browser window is refreshed. Here is a code change I made: var surveymonuments = new ArcGISDynamicMapServiceLayer("REST ENDPOINT", { id: "SurveyMonuments" }); // Set Info Template for Survey Monuments surveymonuments.setInfoTemplates({ 0: { infoTemplate: infoTemplate } }); map.addLayer(surveymonuments); I have the info template defined in the application. Problem solved.
... View more
10-14-2015
09:50 PM
|
1
|
2
|
2648
|
|
POST
|
I think I have narrowed down the problem of not being able to see my feature layer appear after the browser is refreshed. The issue is with caching. If I have the browser open, my feature layer appears. If I clear the cache, then refresh the browser, the feature layer re-appears. Is there a way to clear the cache within the application, so the feature layer always appears if the browser is refreshed? I tried some of these tags, but they do not work: <meta http-equiv="Cache-Control" content="no-store"> This is not an issue when using dynamic map services. The feature layer however is an issue. How can I clear the cache for the application to allow my feature layer to draw all the time without having to clear the cache? Any input is greatly appreciated. Thank you!
... View more
10-14-2015
05:07 PM
|
0
|
1
|
2969
|
|
POST
|
Rickey, is there something I can do to clear the cache when the browser is refreshed? Notice how it is on, then off, then on again after refreshing?
... View more
10-14-2015
04:17 PM
|
0
|
0
|
2648
|
|
POST
|
Rickey, Here is the application: http://gis.edmondok.com/surveymonuments Here is what my console log is showing: Error: Unable to draw graphic (null): Unable to complete operation.(…) Can you see the graphic if you open the application? Open it, use the popup, then refresh the browser.
... View more
10-14-2015
03:59 PM
|
1
|
2
|
2648
|
|
POST
|
I have an application that allows the user to click on a feature and a popup template appears. However, if I refresh the app, the popup quits working even though the feature layer displays. If I refresh again, the popup template works again. Also, if I open the browser then use the popup it works, then close the browser then re-open it works. Refreshing seems to be the issue. I do not have a lot of features displayed. How can I get the popup to work after the app is refreshed in the browser each time? Here is the configuration of my feature layer: // Map Feature Layer --------------------------------------------------------------------------------------------------------------------- publicartFL = new FeatureLayer("http://gis.edmondok.com/arcgis/rest/services/Parks/PublicArt/MapServer/0", { id: "PublicArt", mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"], infoTemplate: infoTemplate }); map.addLayer(publicartFL); Here is a scenario: 1. Open the application, click on a feature and the popup template appears. 2. Refresh the app, features display, yet popup does not work. 3. Refresh the app again, the features display, then the popup works again. I have also tried using the mode: FeatureLayer.MODE_SNAPSHOP, but I get the same results. How can I get the popup to appear if a user were to refresh the application? Has anyone else run into this issue? Any advice or input is greatly appreciated.
... View more
10-14-2015
03:33 PM
|
0
|
8
|
4782
|
|
POST
|
This seems like an interesting idea, but do you have an example?
... View more
10-02-2015
01:43 PM
|
0
|
2
|
2570
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-01-2022 05:53 AM | |
| 1 | 09-18-2018 06:17 AM | |
| 1 | 06-19-2018 10:31 AM | |
| 1 | 05-15-2018 10:42 AM | |
| 1 | 10-14-2015 03:59 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-10-2025
07:13 AM
|