|
POST
|
Hi @BethRomero 1. Your app has a search method of "Map extent" set. The solution uses "search radius". Search radius method allows for a map click, and then the clear search button appears. Map extent search method has a button to "search this area" since it's a map extent based search. This update can be made in the Nearby section > search method. 2. Your app has a custom selection fill set. This is a known limit at this time, that the pin and address may draw under the selection fill. To remove the selection fill go to Interactivity > Modify > and disable selection fill. 3. Switching your search method back to "Search radius" will bring back the "clear results" button. 4. Labels - I'm still investigating this one. I see labels showing in my examples but will keep looking into this. 5. At this time, the expanded related result is below the pop-up. Let me know if this doesn't get you closer to what you are expecting. Any updates on #s 2 and 4?
... View more
Wednesday
|
0
|
0
|
16
|
|
POST
|
@CodyPatterson Is this a good way to share it within network? The URL will work on a remote machine when testing. Or is it a security risk? if __name__ == "__main__":
app.run(debug=True, port=5000, host='0.0.0.0') EDIT: AH, I see you mentioned this method in your first reply. I didn't know what it meant at the time. But, I'm still wondering if this is a good idea as far as security goes.
... View more
3 weeks ago
|
0
|
1
|
393
|
|
POST
|
Hi @CodyPatterson I attached the code straight from ch. 15. You just run the app.py file and it gives you the URL in the terminal. The user on the other end would connect to that IP over a port you've designated, and basically would need to send a request Thanks for explaining. I'm still learning when it comes to requests. I'm not grasping the above directions.
... View more
3 weeks ago
|
0
|
0
|
417
|
|
POST
|
so having it locally would still allow your coworker or friend to connect while on your local network. Thanks for the feedback! How would they connect? I tested by pasting that URL in a browser on a remote machine, but a connection couldn't be established. I'm confused as to how or what I'm supposed to share.
... View more
3 weeks ago
|
0
|
2
|
511
|
|
POST
|
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:5000 I was hoping to learn a way to share code through an app, as the chapter starts out by saying. But, once completing the chapter I see it's local. Am I missing something?
... View more
3 weeks ago
|
0
|
6
|
541
|
|
POST
|
My intention is to share a script tool. The help docs explaining the Execution Tab don't go into detail. I've shared a script tool before by putting the python file and tool in the same shared directory. I'm wondering now about embedding it. This seems like a better way because you only have to worry about where the tool is located, and not both the tool and the script. I've tested this method and it seems doable. Is embed intended for sharing?
... View more
a month ago
|
0
|
2
|
271
|
|
POST
|
Nice. Yeah, it doesn't make a difference if parameter 0 is GetParameter() or GetParameterAsText(). Both work. It's only the Data Type that needed changed.
... View more
a month ago
|
0
|
0
|
422
|
|
POST
|
@DuncanHornby @TonyAlmeida It worked with the arcpy.GetParameter() function and the Data Type parameter set to String. I used the index 0. I was able to run the tool numerous times on the following files and it deleted all of them: *.zip, *.shp, *.png, *.jpeg. So: if __name__ == "__main__":
#name of zip file with extension
oldzip = arcpy.GetParameter(0)
# output folder
workspace_folder = arcpy.GetParameterAsText(1)
# delete
delete_old_parcels_zip(oldzip, workspace_folder)
... View more
a month ago
|
1
|
1
|
434
|
|
POST
|
@TonyAlmeida Thanks, that works on its own (without += operator) but embedded in the script tool with the same input as before it runs but doesn't delete and no print statements in tool. I believe the issue lies with the script tool data type parameter for file. I'm going to concentrate on that. Tool interface:
... View more
a month ago
|
0
|
0
|
444
|
|
POST
|
Two examples of input: oldzip = 'WillCounty_Street.zip'
workspace_folder = r'C:\Users\jpilbeam\test' Thanks for asking. So, the end-user of this tool would input files to delete in the first parameter. The files in the workspace folder could be either a *.zip, *.shp or *.pdf. What I was pointing out was the separate scenarios I've tried . As in, what I've tried was: - setting the Data Type to File - setting the Data Type to File, and File Filter to zip; shp - setting the Data Type to Shapefile - setting the Data Type to folder. --This didn't make much sense, but i tried it anyway.
... View more
a month ago
|
0
|
0
|
503
|
|
POST
|
import arcpy,os
# delete old zips
def delete_old_parcels_zip(oldzip, workspace_folder):
arcpy.env.workspace = workspace_folder
# r=root, d=directories, f=files
for root, directories, files in os.walk(workspace_folder):
for file in files:
if file.endswith(oldzip): #.endswith accepts a tupule
#delete existing zips from folder
print("old zips deleted: {}".format(file))
arcpy.AddMessage("old zips deleted: {}".format(file))
arcpy.Delete_management(file)
if __name__ == "__main__":
#name of zip file with extension
oldzip = arcpy.GetParameterAsText(0)
# output folder
workspace_folder = arcpy.GetParameterAsText(1)
# delete
delete_old_parcels_zip(oldzip, workspace_folder) I'm having trouble getting this script to work as a script tool. It works fine as a stand-alone. I've tried a number of things in Pro Catalog Toolboxes: Properties > Execution panel > embedded Properties > Execution panel > external script Properties > Parameter 0: Data Type > File > Filter File (zip; shp) Properties > Parameter 0: Data Type > Shapefile Properties > Parameter 0: Data Type > Folder Properties > Parameter 1: Data Type > Workspace It doesn't throw any errors. But it produces no results. Basically, the tool is supposed to find a file based on user input and in the workspace and delete it. Note: I'm after learning to use if __name__ == "__main__" in a script tool.
... View more
a month ago
|
1
|
9
|
547
|
|
POST
|
@BethRomero Thanks, getting closer to what I'm expecting. Following up, question #s 1 and 2 still have unexpected results. Note: link above should reflect changes. 1. I switched to Search Radius. However, even after clearing the selection the schools are still highlighted. The highlighted selections in the map are added-to instead of being un-selected. 2. All toggle switches have been turned off in Interactivity > Modify which helped. However, the label is still under the highlighted district that I seemingly have no control over.
... View more
11-03-2025
11:53 AM
|
0
|
0
|
238
|
|
POST
|
@BethRomero Hi, thanks for looking. Here is the app: https://willcountygis.maps.arcgis.com/home/item.html?id=c6e79531385d4b30acec5d2d661e81a8
... View more
10-28-2025
02:29 PM
|
0
|
0
|
322
|
|
POST
|
1. Clicking on the map does nothing (i.e. provides no results) 2. The searched address is behind the other layers and I know no way to move it up. 3. No way to clear the results. Closing the search only removes them from the sidebar, not the map. There is no "Clear Results" button at the top of the screen, as with some of these solutions. I have to either refresh the browser or put in another search. 4. I added labels to schools in the webmap. They do not appear after a search. They only appear without a search. 5. Any way to move the related record above district info?
... View more
10-28-2025
01:37 PM
|
0
|
5
|
359
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | a month ago | |
| 1 | 10-22-2025 02:14 PM | |
| 1 | 01-17-2019 08:21 AM | |
| 1 | 07-06-2023 07:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|