|
POST
|
I'm using the screening widget in WAB version 2.8 and I have roughly 30 layers that the screening widget queries for after the user enters their point and buffer. I've noticed that when I click to download the layers to a CSV file the widget only downloads the first 10 layers that have a result even if there is more than 10 layers that have a result. Is this a limitation of the browser? Also, is there a way to only download a certain layer instead of every layer? Thanks in advance!
... View more
07-08-2019
02:50 PM
|
0
|
0
|
488
|
|
POST
|
Thanks for the reply! I have a follow up question. After reading some of the items you posted and other items online, it appears that you should really only use React with the ArcGIS for JavaScript API if you're building an application that isn't necessarily map-centric. Do you know if that's a correct statement? Thanks!
... View more
06-10-2019
12:59 PM
|
0
|
1
|
1419
|
|
POST
|
I'm just getting into React and was looking for some good resources/tutorials for combining React and the JavaScript API. Also are there any examples of applications using React and the JavaScript API? Thanks!
... View more
06-05-2019
02:46 PM
|
0
|
3
|
1611
|
|
POST
|
I'm sorry about that. These are the lines of code that I commented out. if (displayFields.length > 0) {
array.forEach(displayFields, function(f){
_names[f.expression] = f.label;
});
for ( var di = 0; di < _r.graphics.length; di++){
_rows_ = [];
var g = _r.graphics[di];
var attributes = g.attributes;
var keys = Object.key(attributes);
if (di === 0){
array.forEach(keys, function(k){
if (_names.hasOwnProperty(k)){
_cols.push(_names[k]);
}
}):
}
array.forEach(keys, function(k){
if (_names.hasOwnProperty(k)){
_rows_.push(analysisUtils.getFieldValue(k, attributes[k], _r.context.specialFields,_r.context.dateFields, _r.context.defaultDateFormat,_r.context.typeIdField, _r.context.types));
}
});
_rows.push(_rows_);
}
dataForReport.push({
title: _r.context.baseLabel,
addPageBreak: false,
type: "table",
data: {
cols: _cols,
rows: _rows
}
});
}
... View more
05-22-2019
09:51 AM
|
2
|
3
|
2344
|
|
POST
|
Jan, I managed to find a workaround. I went into the Widget.js file in the SituationAwareness folder and deleted line 3183 through line 3218. By deleting or commenting out those lines you're left with only the summary results for the layer. I'm not sure if this was the correct way to customize the report, but it worked for me.
... View more
05-22-2019
07:18 AM
|
2
|
5
|
2344
|
|
POST
|
Currently there is no way to export the results from the Near Me widget in WAB. Is it possible to export the results from the widget as a CSV file? If so, what would be the workflow to achieving this? Thanks!
... View more
05-14-2019
07:01 AM
|
3
|
2
|
1955
|
|
POST
|
Owen, Thanks for the reply. I'm able to scroll up and down past the application when I initially get the application, but when I click a linear feature and the popup box displays is when the scrolling becomes disabled unless I'm hovering over the title box. Thanks again for looking into my problem.
... View more
04-03-2019
06:21 AM
|
0
|
0
|
462
|
|
POST
|
I'm using Web AppBuilder version 2.8 was wanting to customize the report that gets generated from the situational awareness widget. I know that the map portion of the report can customized based on the print service used, but is there a way to only show the summary table and not the table for the individual records? Thanks!
... View more
03-29-2019
07:30 AM
|
1
|
7
|
2631
|
|
POST
|
I have a hosted Cascade Story Map that has a custom application included in it. After the user interacts with the map inside the custom application, the story map doesn't seem to scroll any farther down unless the user is hovering over the map title or the popup box. Is there a way around this issue or is it a known problem? Here's the link to the story map: http://arcgis02.h-gac.com/development/BHR2019/index.html The custom application is the Water Quality Summary map (bookmark WQ Summary Map). Thanks, Michael
... View more
03-25-2019
07:10 AM
|
0
|
2
|
544
|
|
POST
|
Hi, I have a question about hosting my own story map. I have an JavaScript for ArcGIS application that I'm hosting on my company's server and I want to insert it to a story map that'll be hosted on the same server. Even though my story map will be hosted on the company's server, to include the JavaScript application in the story map, does the application URL need to have HTTPS in order for it to display in the story map? Thanks for the help!
... View more
02-14-2019
12:42 PM
|
0
|
0
|
313
|
|
POST
|
Robert, I ended up adding each graphic individually to the feature layer in my for loop. This might not be the most correct way of adding the graphics to the feature layer, but it worked. I really appreciate all your help!
... View more
12-28-2018
06:30 AM
|
1
|
0
|
499
|
|
POST
|
Robert, I tried using the .applyEdits, but the layer didn't draw and there were no features in the feature layer.
... View more
12-27-2018
11:05 AM
|
0
|
2
|
499
|
|
POST
|
Robert, I took a look at the sample and modified my code to match the sample. When I run the widget, a feature layer does get added to the map; however, nothing gets displayed on the map and the attribute says there's one record, but there are no attributes for that record. Here's what I've done based on the sample: //Create a feature collection which will form the new feature layer
var featureCollection ={
"layerDefinition": null,
"featureSet": {
"features": [],
"geometryType": "esriGeometryPoint"
}
};
featureCollection.layerDefinition = {
"geometryType": "esriGeometryPoint",
"drawingInfo": {
"renderer": {
"type": "simple",
"symbol": {
"color": [210,105,30,191],
"size": 6,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0,0,128,255],
"width": 0,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
}
},
"fields": [{
"name": "Name",
"alias": "Name",
"type": "esriFieldTypeString"
},{
"name": "Price",
"alias": "Price",
"type": "esriFieldTypeString"
},{
"name": "Rating",
"alias": "Rating",
"type": "esriFieldTypeString"
}]
};
this.featureLayer = new FeatureLayer(featureCollection, {
id: "Restaurants"
});
food.then(lang.hitch(this, function(response){
var i;
var features = [];
for (i = 0; i <= 10; i++){
var name = response.businesses[""+[i]+""].name;
var price = response.businesses[""+[i]+""].price;
var rating = response.businesses[""+[i]+""].rating;
var x1 = response.businesses[""+[i]+""].coordinates.longitude;
var y1 = response.businesses[""+[i]+""].coordinates.latitude;
var markerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE,10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([26,26,26])),new Color([26,26,26]));
var pt = new esri.geometry.Point({"x":x1, "y":y1, "spatialReference":{wkid:4326}});
var attr = {"Name":name, "Price":price, "Rating":rating};
var infoTemplate = new InfoTemplate("Restaurants Near Searched Address","Restaurant Name: ${Name}<br/>Price: ${Price}<br/>Rating: ${Rating}");
var graphic = new esri.Graphic(pt,markerSymbol,attr, infoTemplate);
// this.map.graphics.add(graphic);
features.push(graphic);
}
this.featureLayer.add(features);
this.map.addLayer(this.featureLayer);
}), function(error){
console.log(error);
});
} Thanks, Michael
... View more
12-27-2018
09:31 AM
|
0
|
4
|
2369
|
|
POST
|
Robert, Removing './files/jquery-3.3.1.min' fixed the problem. Now if I wanted to have the results to be exportable by the user, would the ideal way of accomplishing this be to create a graphics layer and then create a feature layer from the graphics layer? Or is there a way to create a feature layer from graphics? Thanks again for all the help!
... View more
12-26-2018
06:28 AM
|
0
|
6
|
2369
|
|
POST
|
Robert, I added the lang.hitch function to the code and now I'm getting this error: TypeError: lang.hitch is not a function I do have 'dojo/_base/lang' in the define portion of the file.
... View more
12-20-2018
07:43 AM
|
0
|
8
|
2369
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-09-2024 07:44 AM | |
| 1 | 03-29-2023 01:20 PM | |
| 2 | 11-07-2022 07:38 AM | |
| 1 | 01-21-2021 01:32 PM | |
| 1 | 08-25-2022 07:56 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-18-2025
07:01 AM
|