POST
|
For Item.content_status (https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.content_status), should "givens" be "gives"? And "they should be either this information or not" is unclear.
... View more
11-04-2019
10:37 AM
|
0
|
0
|
233
|
POST
|
For Item.dependencies (https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.dependencies), should "management" be "manage"? And please consider pointing to the documentation for the returned class (arcgis.gis.ItemDependency) to help it to be used.
... View more
11-04-2019
10:36 AM
|
0
|
1
|
359
|
POST
|
Hi Kylie -- The display and behavior are the same offline and online. The only difference is that I can't send while offline, and so all that I can do is collect one point and modify it over and over again. There was no way to clear the "Update point" button display without sending. With each collected point, once I sent the point, I saw the display in "stuck2.png". I closed that display, and then I'm able to add the next point. With the workaround, I collected 37 points this way, albeit tediously. (Geonet reordered the attachments after I submitted the question. "stuck.png" shows the screen after collecting a point with the white/blue cross; "stuck2.png" shows the screen after I tap "send" and the send is successful. The first was done in the field yesterday with a new layer; the second was done this morning with an older layer that I knew worked from a few years ago.) What you describe is what I remember from using the app a few years ago: I just collect points on the device whether I'm online or offline and submit/sync them when connectivity returns. I could update a point by selecting it and choosing to modify it.
... View more
10-09-2019
09:45 AM
|
0
|
1
|
492
|
POST
|
After collecting a point, the display confirms the entered point, then offers a button to update the point (see first attachment). There doesn't appear to be any way to clear this display other than to send the point, which doesn't work offline. Reverting to online, I send the point, then a display would appear offering the opportunity to edit the point that I just sent (see second attachment). Fortunately, that display could be closed and I could move on to the next point. Reproduced with a point layer created this year and one from a few years ago. I am the owner of the layers. I recall Collector having a much smoother interface a few years ago: I could enter points quickly while offline, and then upload them all at once back at the office. Is there a setting that brings back the older style? The app is currently configured for downloading only via Wi-Fi and with automatic synchronization off. Collector 19.1.0.2666, iOS 13.1.2, iPhone XR
... View more
10-09-2019
09:19 AM
|
0
|
4
|
591
|
POST
|
Attached screenshot shows the top of the scrim highlighted with a yellow oval. Below the scrim, the map was unresponsive; had to drag it down via the top line to regain touch access to the map. White/blue add button slid down with top of scrim. Couldn't reproduce it. Best that I can tell is that I was trying to clear the last-entered point display so that I could enter a second point. Lots of poking and dragging of bottom window. Collector 19.1.0.2666, iOS 13.1.2, iPhone XR
... View more
10-09-2019
09:06 AM
|
0
|
0
|
237
|
POST
|
I agree with Ben: start with a sample, e.g., Create a map | ArcGIS API for JavaScript The "Explore in the sandbox" option that many samples have helps me a lot because I can run the sample without having to set it up on a web server, yet still modify it to explore the API.
... View more
01-25-2016
08:45 AM
|
1
|
0
|
1095
|
POST
|
James, The MapServer level (http://gis2.richmondnc.com/arcgis2013/rest/services/RichmondTaxForeclosure3/MapServer) does not support a feature query operation (see bottom of description page on link), but each of the layers it contains does. So if you create a webmap by adding each of the layers separately (http://gis2.richmondnc.com/arcgis2013/rest/services/RichmondTaxForeclosure3/MapServer/0 and http://gis2.richmondnc.com/arcgis2013/rest/services/RichmondTaxForeclosure3/MapServer/1), you'll get a webmap such as http://arcgis4localgov2.maps.arcgis.com/home/webmap/viewer.html?webmap=d0cb06c0e1714901826c0886c948810c, which can be configured into an app such as http://arcgis4localgov2.maps.arcgis.com/apps/SummaryViewer/index.html?appid=0dff70d563db4f59934e9c6c1076a3de . Mike
... View more
06-27-2014
07:04 AM
|
0
|
0
|
535
|
POST
|
Scott, This message occurs when the app, during startup, cannot get access to or find the configuration information; without the information, it cannot build the user interface. How are you running the app locally-hosted? There are two methods, and that will help to figure out what's happening: http://<myserver>/<mysite>/s2.html?appid=c3f7ae6ee9f54761b87fd51b3db93da1 http://<myserver>/<mysite>/s2.html?app=apps2/Finder In the first one, the app is seeking the configuration and user interface from ArcGIS Online using the app id; in the second one, the app is seeking the configuration and UI from the file Finder.json in the site's apps2 folder. You can test your site setup by downloading Finder_try_it.json from GitHub (https://raw.githubusercontent.com/Esri/local-government-online-apps/master/apps2/Finder_try_it.json), putting it in your site's apps2 folder, and running it using http://<myserver>/<mysite>/s2.html?app=apps2/Finder_try_it . A next test can be to use Finder.json modified with your app's configuration values; you can download the one that I created for you from http://localgovtemplates2.esri.com/Support/CayugaCounty.json, put it in your site's apps2 folder, and run it using http://<myserver>/<mysite>/s2.html?app=apps2/CayugaCounty . After making any changes to a JSON configuration + UI file, be sure to run the file through a lint check such as http://www.jslint.com/ or http://jsonlint.com/. Parsers of the JSON format can be tripped up by stray or missing punctuation. The parser will give a generic error to the app in this case, and the app will be unable to create its user interface or to run. Regards, Mike
... View more
06-26-2014
08:19 AM
|
0
|
0
|
234
|
POST
|
Wilfred, Some background for others: when the app starts up, shortly after the ready(function () {, the code splits into two paths: "depends on config file" and "independent of config file". The former is involved in reading the items from your group and setting up the gallery contents, which can take a little bit of time over the network; the latter are things that can be run right away. A good place to switch to the gallery is at the end of the "independent" path; it would go right before the comment "// Show the site by hiding the loading background" that ends the path:
changeSubpage("Gallery", false);
// Show the site by hiding the loading background
configIndependentInitReady = true;
hideLoading();
For setting the initial filters, you'd do that after the items are fetched from the server, which is done with the following lines:
// Get the gallery data. We'll chain the three calls (for the Most Popular & Most Recent
// sections of the main page and for the Gallery page) so that we can use one fetch of
// data for all three. Otherwise, all three fetch calls are made before the data arrives
// and we end up making three fetches.
galleryData.fetch({
sort: [{attribute: "numViews", descending: true}],
start: 0, count: 7,
onComplete: function(items, request){
// Most Popular
showPopular(items, request);
galleryData.fetch({
sort: [{attribute: "modified", descending: true}],
start: 0, count: 4,
onComplete: function(items, request){
// Most Recent
showRecent(items, request);
// Gallery page
updateGallery(null, null, null);
}
});
}
});
Note the updateGallery(null, null, null); call towards the end. It is here that you set your initial filter. The three parameters of updateGallery() are strings giving the desired category, the desired type, and the desired search term; a null is used to indicate all categories, all types, and no search term, respectively. So if I want to start up the app with the gallery showing the "Elections & Voting" category and the "Web" type with no search term, I'd change updateGallery(null, null, null); to updateGallery("Elections & Voting", "Web", null); Or for just the "Community Activities" category, I'd change updateGallery(null, null, null); to updateGallery("Community Activities", null, null); If I want to use the search term, I'd do something a little bit different for efficiency. Because it would be helpful for the user to see the search term in the type-in box, I'd insert the starting search term into the type-in box. But because any change to that type-in box triggers a updateGallery call, first I'd set the desired starting category (variable currentCategory) and/or the desired starting type (variable currentType). So if I wanted to see all "Web" types that include a search term "park", I'd use
currentType = "Web";
dijit.byId("searchBox").set("value", "park");
and delete the redundant updateGallery call. Regards, Mike
... View more
06-26-2014
07:14 AM
|
0
|
0
|
461
|
POST
|
For hosting the app in ArcGIS Online, you could create a different message box than the one that contains the help and use that message box to display your splash content, including an embedded video. You'd have to pack the HTML for it into a single string, but, as you can see from the image, this still gives you flexibility. The only problem with this approach is that the message box does not have a close button; the only way to close the splash screen would be to click on one of the menu buttons in the top-right corner. [ATTACH=CONFIG]34784[/ATTACH] (This snapshot uses the July 2014 release user interface update, but the concept can be used with the current application. The colors used for the non-hyperlink text and the background are controlled by the theme configured when the app is published.) To add this sample to your hosted app, you'd insert the following text between the '}' and ']' at the end of your configuration: , {
"classname": "js.LGMessageBox",
"styles": ".startMessageBox{display:block;padding:16px;position:absolute;overflow:auto;z-index:40;word-wrap:break-word;border:1px solid lightgray}",
"config": {
"rootId": "startMessageBox",
"content": "<h2>Getting Started with Finder</h2><hr><iframe frameborder='0' scrolling='no' width='720' height='405' src='http://video.arcgis.com/iframe/254/000000/width/720/0/00:00:00'></iframe><h3>Overview</h3><p>Finder is a configurable ArcGIS Online application that searches and queries attributes of feature layers. It can be used to present information about a wide variety of features such as property tax and assessment information or the locations of water access points.</p><p>This application can be deployed by local, state, and national governments; utilities; NGOs and private industries; and can be used by staff or citizens on desktop computers, smartphones, and tablet devices.</p><p>For more information, please go to the <a href='http://solutions.arcgis.com/local-government/' target='_blank'>ArcGIS for Local Government website</a></p>",
"parentDiv": "contentFrame",
"rootClass": "startMessageBox",
"horizOffset": [20, -20],
"vertOffset": [20, -20],
"trigger": "splash"
}
} This sample sets the HTML content of the splash screen using the "content" parameter, places it over the map (which is inside the "contentFrame" parent), and sets horizontal and vertical offsets of 20 pixels from each side (so the splash screen will resize as the browser window resizes). Lastly, it sets a "trigger" of "splash"--this is the key to closing it whenever any of the menu buttons is closed. After making these changes to the configuration file, save and lint the file using validator such as JSONLint to ensure that you have well-formed, error-free JSON. It's also recommended that you clear your browser cache before attempting to view your modified configuration.
... View more
06-20-2014
03:51 PM
|
0
|
0
|
606
|
POST
|
Sam, What you're seeing could be a symptom of IIS installed or updated after ASP.NET, so one just has to re-link the two, or it could be a red-herring message because the actual problem couldn't be caught by the checklist in the right place. A good check for the former is to put a simple ASP.NET program into the Gallery site's folder and see if it runs. For example, http://localgovtemplates2.esri.com/support/appcheck2.ashx reports AppCheck's application pool uses .Net version v2.0.50727 for our test site http://localgovtemplates2.esri.com/support/. The version number isn't important; what we want to see is the message to show that the server can compile an ASP.NET program. This test program is available from http://localgovtemplates2.esri.com/support/appcheck2.zip To re-link IIS & ASP.NET, one follows the instructions from Microsoft in http://msdn.microsoft.com/en-us/library/vstudio/k6h9cz8h(v=vs.100).aspx; you'd probably use aspnet_regiis -iru to not modify other sites on your server. If ASP.NET can compile the test program, then I'd explore the possibility of a red herring, and we can help you with that. Mike
... View more
06-20-2014
03:07 PM
|
0
|
0
|
199
|
POST
|
If it is possible to modify the AGENCYURL field of GovServiceInfo, you could have it include the HTML for a link. For example, if my field value is <a href='http://www.naperville.il.us/recyclecenter.aspx' target='_blank'>Recycling Center</a> then I will get [ATTACH=CONFIG]34780[/ATTACH] and clicking on the link will cause a new window to open with the website. One could also use a 'mailto:...' URL. If you prefer to have the link replace My Government Services in the same browser window, just remove the "target" attribute: <a href='http://www.naperville.il.us/recyclecenter.aspx'>Recycling Center</a>
... View more
06-20-2014
11:58 AM
|
0
|
1
|
799
|
POST
|
This is a splendid idea, but it is not something that can be handled by configuration alone. You would have to host the app so that you can make some small code changes. When a js.LGCommand button is clicked, it broadcasts a message--in your example, the "publish" parameter "mesure". The app has a class js.DropdownBox that listens for its configured "trigger" message and appears and disappears in response. Class js.LGMapBasedMenuBox inherits this capability and adds a dependency on the map identified by the "dependencyId" parameter. The various boxes that appear when a command button is clicked inherit from js.DropdownBox directly or through js.LGMapBasedMenuBox depending on the capability that they need. (Internally, a js.LGCommand also publishes a private message when clicked; this message contains the trigger message value. When a js.DropdownBox receives the private message, if the trigger message value does not match its own trigger, it closes itself. This is how it is possible to click on the Search button and have the Search box open and every other command box close without requiring each command to know about each of its neighbors.) The js.LGMapDijitContainer is a simple graphical item that displays an ArcGIS for JavaScript dijit all the time (e.g., the Home and Locate buttons)--it does not inherit from js.DropdownBox and does not know about the command messages, so the "trigger" parameter does not have an effect. As you demonstrated, however, it can hold a Measure dijit. Some suggestions for your example: the value for its final parameter "dijitAmd" has a trailing comma which should be removed--some browsers will fail with this; if you want to have the container resize to include the latitude and longitude display, remove the "height:120px;" from the CSS and change the "vertOffset" parameter to 8. If you were to create a new class that inherits from js.LGMapBasedMenuBox (because you want 1. js.DropdownBox' command-handling and 2. js.LGMapBasedMenuBox' dependency on the map), js.LGMapDijitContainer and js.LGDigitLegendBox will provide guidance. Some changes: in the JSON configuration, be sure that the command button's publish message and the measure box' trigger message exactly match and be sure that the command button's dependencyId and the measure box's rootId parameters exactly match (the command depends on the measure box saying that it is ready, and the measure box depends on the map saying it is ready--these dependencies keep the command button from appearing until it has something to work on). Also, classes that use dependency have a this.setUpWaitForDependency() call in their constructor; this call's parameter is the name of the class. This call is needed to keep a superclass from executing its onDependencyPrep or onDependencyReady calls independently of the invoking subclass.
... View more
06-20-2014
11:16 AM
|
0
|
0
|
361
|
POST
|
Hi Sandi, Have you linted the config.js file (e.g., using a tool such as JSLint)? Can you reproduce the popup with the unending progress bar by simply clicking on any feature right after you close the splash screen? (Trying to isolate the problem: is it in the popup or is it a side effect of the activity search + select from results process?) Because so much of the popup is constructed in the first display that you sent, I'm wondering if the comments fetch is failing. Regards, Mike
... View more
08-15-2013
09:33 AM
|
0
|
0
|
605
|
POST
|
Hi David, Would you please check my reproduction steps below? It sounds as if there's a path thru the app where the Locate result fails to be written as the current location, but I'm not able to duplicate the problem yet. Search by address (used "1380 Aurora Ave Naperville" (I'm testing with our try-it's Naperville data)) Got directions to the North Maintenance Facility (about 1.37 miles away) Jumped to my current location (set inside Centennial Park in Naperville using browser's emulator) Got directions to North Maintenance Facility (now showing about 0.24 miles away) I'm using the latest version of the app that we have in GitHub. I also tried using the default address for the initial search. I don't see changes in the app since the 10.2 download was created that would have changed the behavior, and the app doesn't know about the browser's location emulator (Manual Geolocation 1.0.1 in Chrome 28)--it simply uses the usual navigator.geolocation.getCurrentPosition() call. Is this happening on a desktop and/or mobile? If a desktop, are there any error/warning messages in the debugging console other than the usual cross-domain ping that reports as an error ("XMLHttpRequest cannot load...") and, for Chrome, warnings about files transferred as "MIME type text/plain"? Regards, Mike
... View more
08-15-2013
06:42 AM
|
0
|
0
|
205
|
Title | Kudos | Posted |
---|---|---|
1 | 05-22-2013 07:24 AM | |
1 | 07-29-2013 01:59 PM | |
1 | 01-25-2016 08:45 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|