POST
|
Thanks Noah, The 'submit' and 'complete' events in the 4.17 release made this much more manageable. I've got it working now so that when the Export button is clicked, the button is disabled until the print job finishes. Here is the code: var print = new Print({ view: myView, printServiceUrl: ***removed by author***, container: printContainer }) print.on("submit", function(){ $(".esri-print__export-button").attr("disabled", true); }) print.on("complete", function(){ $(".esri-print__export-button").attr("disabled", false); })
... View more
10-13-2020
07:35 AM
|
1
|
2
|
1579
|
POST
|
The use case is primarily that people seem to be just clicking the button repeatedly, which might be due to them not knowing that the print job is currently running. I was playing around with a couple ways to disable the print widget, but felt I was making very little progress which is why I posted my question. I'm interested in the potential solution with 4.17. I'll check that out when it's released and post my solution if it ends up solving it.
... View more
10-08-2020
10:18 AM
|
1
|
4
|
1579
|
POST
|
I'd like to disable the print export button when the user is in the process of exporting their map. Currently, a user is able to repeatedly generate map exports while an export is taking place. Is there a way to disable the button until the export has completed?
... View more
10-07-2020
12:38 PM
|
0
|
6
|
1630
|
POST
|
Thank you Tanu, That fixed it! I published the printing service from Pro following these steps: Share custom layouts for printing from ArcGIS Pro—ArcGIS Server | Documentation for ArcGIS Enterprise The polygons now render correctly in the print output and the labels are also present. Thanks
... View more
09-17-2020
10:55 AM
|
0
|
1
|
1111
|
POST
|
I have created and published a custom Geoprocessing Print service following the steps outlined in this post: https://community.esri.com/thread/179089 . We were initially using the default print widget, but due to authentication issues that caused the print service to fail to load, we created the custom print service with embedded credentials. The print service is being used in an application that was built using the ArcGIS API for JS 4.16. The print service loads to the application, so our first issue has been successfully resolved: However, now there's unwanted symbology when the print service executes and the labels are not displaying. For example, in the below screen shot, there are parcels on the map with purple outlines and no fill. There's also labels for parcel IDs in yellow: When I run the print widget to print this same location, I get the following result: Is there a reason why the fill is blue? Also, looking at the outlines of the polygons, they don't look purple, so I don't think any of the symbology that appears on the map in my second screenshot is in the print result. Also, the parcel ID labels are no longer present in the print result. Could this be an issue with using the JS API, or is it related to the process that I followed when publishing the custom print service? Thanks
... View more
09-17-2020
07:52 AM
|
0
|
5
|
1149
|
POST
|
Thanks for your response James. I appreciate the clarification as to when the Inbox is appropriate to use in Survey 123. And thanks for clearing up that a feature class doesn't need to be published from Pro. I'm planning to deploy our workflow either with Survey 123 being launched from Collector or using Field Maps. An issue that I've noticed with the Collector-Survey 123 route, though, is that two points are being recorded when I record the condition of one of our park's assets: a point is recorded when I initially add a point using Collector, then a second point is recorded when I submit the survey from Survey 123. Is there something that I'm missing in terms of how I've configured Collector with Survey 123 that would allow me to record just one point?
... View more
09-16-2020
05:29 AM
|
0
|
1
|
1381
|
POST
|
I'm putting together a data collection workflow for our Parks Department that uses Survey 123. Data collection will include related records as one point may have many related surveys (example: a park bench that is visited once a month to record its condition). The Parks Dept wants a map-centric data collection workflow. I initially wanted to integrate Collector and Survey 123 so that data collectors could navigate to their points of interest with the Collector app and then tap on the point to open Survey 123. However, after speaking with Esri tech support, I was informed that the only way to be able to do this was to create the feature class in ArcGIS Pro first. I've decided against this since it doesn't seem scalable. In other words, if the Parks Dept has a 25 or 30 question form and the form is constantly being revised, I'm concerned that I'll run into data management or flexibility issues if I'm constantly publishing new feature classes from Pro. What would be ideal is if this could solely be done from Survey 123 (ie, publish a feature class when publishing my survey form), but Tech Support told me that I needed to create the feature class in Pro first if using related records in a Survey 123 form within Collector. I'd be happy to be told that I'm wrong, though. This is a long way of saying that I'm now trying to get a map-centric "feel" using solely Survey 123. I've enabled the Inbox setting on my form, which kind of gives it a map-centric feel, although I don't love it. Now I'm trying to pre-populate some of my survey fields if the record is selected from the Inbox. For example, if the bench is located in Park A, I want Park A to be pre-populated on the survey form in the "Park Name" field if the data collector has tapped on the bench point from the Inbox. I knew how to do this when linking between Collector and Survey 123 by manipulating the URL scheme from Collector. Is there a way to do something similar if selecting an existing point from the Inbox map?
... View more
09-04-2020
12:58 PM
|
0
|
3
|
1427
|
POST
|
I'm using the Search tool to allow users to enter their address and be taken to their property of interest. This is for a parcel viewer application with over 800,000 records. Ideally, when the user enters their address in the Search, they will quickly be zoomed to their location of interest. However, right now it takes about 13 seconds for the Search to retrieve their address and zoom to the correct address. It's worth noting that all of the functionality is working (ie, the map eventually zooms to the location that was entered), it's just very slow. The parcel layer that is being searched is the same parcel layer that is displayed on the map (called parcelLyr in the below code). Below is the code for the search tool: //Create search tool to search addresses
const searchTool = new Search({
view: myView,
sources: [
{
layer: parcelLyr
searchFields: ["propstreet", "fullAdd2"],
displayField: "fullAdd2",
name: "LayerSearchSource",
placeholder: "example: 500 Griswold",
exactMatch: false,
suggestionsEnabled: true,
autoNavigate: false,
resultGraphicEnabled: false,
outFields: ["*"]
}
],
container: addressSearchBar,
includeDefaultSources: false,
resultGraphicEnabled: false,
popupEnabled: false,
locationEnabled: false,
searchAllEnabled: false
}) Is there something I can do to ensure that the correct address is retrieved more quickly? Thanks, Paul
... View more
08-13-2020
06:31 AM
|
0
|
1
|
520
|
POST
|
After speaking with tech support, we've found a solution for my issue. The result object is still added to the map, but I changed the opacity for the fill and the outline to be completely transparent. The highlightOptions within the MapView took care of the issue: myView = new MapView({
container: "map_canvas",
map: myMap,
center: mapCenter, //Center map on downtown Detroit
zoom: zoomLevel,
//Exclude the zoom widget from the UI
ui: {
components: ["attribution"]
},
constraints: {
rotationEnabled: false
},
//Highlight options to hide Search result from map
highlightOptions:{
color: [ 0,0, 0, 0.0 ],
fillOpacity: 0.0
}
});
... View more
07-30-2020
10:55 AM
|
1
|
0
|
2817
|
POST
|
Hi Robert, I'm returning to this issue today after taking a break from it. I still have not found a solution. One additional thing that I've discovered is that when I use the 'X' to clear my search result from the map, it removes the search object. This again makes me think that the issue is related to the Search widget. If we've reached a dead end, is there another resource I should try aside from Geonet? Would calling ESRI tech support be an option? I still need to figure out a way to get this cyan object off from the map since it's confusing for the user.
... View more
07-30-2020
05:57 AM
|
0
|
1
|
994
|
POST
|
I'm only using the Search widget. Something that I've noticed is that right when I start revising my search after initially making a search, the cyan shading is removed. Here are a couple of screen shots to show you what I mean. In this screenshot, I searched for 500 Griswold, which returned my symbology which I'm calling from my own function (the yellow border) as well as the cyan fill. In the below screenshot, I've removed the 'd' from Griswold, and it immediately removes the cyan fill: Is this a clue for why the cyan fill is being applied? Also, I have a process that removes the entire parcel layer when the user zooms out too far. When I do this when the cyan fill is on the map, it is removed when I reach the level where the parcel layer is removed from the map. When I zoom back in (which puts the parcel layer back on the map), the cyan fill does not return... the parcel layer is added back to the map with the yellow outline for the selected parcel, but there is no cyan object. Before I zoom out to remove the parcel layer, I run console.log(view.layerView.length)and get a value of '2'. When I zoom out and then back in, which removes the cyan object but places the parcel layer and yellow outline back on the map, I still get a value of 2 when running console.log(view.layerView.length). So, when I run console.log() the first time and I'm returned a value of '2', the cyan object is not part of that count.
... View more
07-27-2020
12:25 PM
|
0
|
2
|
994
|
POST
|
I've combed through my code, but I don't see anywhere where I'm showing popups or calling the feature layer views highlight method. In fact, I'm intentionally staying away from popups since I'm showing the parcel attribute information in a sidebar that's part of the application.
... View more
07-27-2020
11:46 AM
|
0
|
4
|
994
|
POST
|
Unfortunately, when I do this, it removes the yellow outline around the parcel and the cyan fill remains.
... View more
07-27-2020
10:51 AM
|
0
|
6
|
994
|
POST
|
Here's my process that runs after the Search tool executes. I put this process together to center the Map View on the result. searchTool.on("select-result", function(event){
console.log("location was chosen ", event)
long = event.result.feature.geometry.centroid.longitude + 0.003
lat = event.result.feature.geometry.centroid.latitude
myView.center = [long, lat];
myView.zoom = 16
selectedParcel = event.result.feature
createHighlightedParcel();
//Opens Parcel Info Panel and places results in panel
if ($("#parcelInfoPanel").css("visibility") === "hidden"){
console.log("in the show pacel info panel function")
showParcelInfoPanel(); //Reveals panel with parcel information
}
console.log(selectedParcel)
populateParcelPanel(selectedParcel); //Grabs parcel information from parcel features for the parcel panel
}) I'm grabbing the result of the search in the second line. Then, when I unpack that object it the console, by clicking on target, then resultGraphic, the value of resultGraphic is an object. Here is a screenshot of my console:
... View more
07-27-2020
10:32 AM
|
0
|
8
|
1826
|
Title | Kudos | Posted |
---|---|---|
1 | 06-10-2019 10:59 AM | |
1 | 10-13-2020 07:35 AM | |
1 | 07-30-2020 10:55 AM | |
1 | 10-08-2020 10:18 AM | |
1 | 09-23-2019 05:34 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|