|
POST
|
What is the best way to wait for this graphic to load? Line 1, 2 and 3 are loaded (See console.log) But line 6 suggest not yet, everything is null (see console.log) I tried all(features).then(function (results) { but it didn't work... Thanks. console.log(layerSettings.options.geom)
console.log(layerSettings.options.symbol)
console.log(layerSettings.options.attr)
var graphic = new esri.Graphic(layerSettings.options.geom, layerSettings.options.symbol, layerSettings.options.attr);
features.push(graphic)
console.log(features))
... View more
10-17-2018
05:04 PM
|
0
|
10
|
2337
|
|
DOC
|
I have apps with the Foldable and Jewlerey theme and I use the widget in the same panel as you do in Live Preview site. The widget is defined under the groups section of the config.json. No icons on the headercontroller, and it is running in the background. I am using the box theme and want to apply the same (no icon and in the background). If I place the widget in the widgets in stemap folder it creates an on-panel widget. Below is the config.json of the live preview site. In the box theme the groups section is empty. Since the box theme does not have a LDockable panel is it possible to apply the widget on this theme? Thanks. "groups": [
{
"visible": false,
"panel": {
"uri": "themes/JewelryBoxTheme/panels/LDockablePanel/Panel",
"position": {
"left": 0,
"top": 40,
"bottom": 0,
"width": 360,
"relativeTo": "browser"
}
},
"maxWidgets": 1,
"id": "_18",
"widgets": [
{
"name": "PopupPanel",
"uri": "widgets/PopupPanel/Widget",
"id": "widgets_PopupPanel_Widget_32",
"icon": "widgets/PopupPanel/images/icon.png?wab_dv=2.1",
"config": "configs/PopupPanel/config_widgets_PopupPanel_Widget_32.json",
"version": "2.7"
}
],
"label": "Group_0",
"icon": "widgets/PopupPanel/images/icon.png?wab_dv=2.1"
}
],
"panel": {
"uri": "jimu/OnScreenWidgetPanel",
"position": {
"relativeTo": "map"
}
}
},
... View more
10-03-2018
09:26 AM
|
0
|
0
|
15044
|
|
DOC
|
I'd like to add the widget on the widgetsonscreen group (off panel) and be invisible. If I add it to the widgets in the stemapp it becomes another widget on the headercontroller with an icon. I am using the Box theme.
... View more
10-02-2018
02:34 PM
|
0
|
0
|
15044
|
|
DOC
|
nope, no modification. Just to verify that I have the problem, I created a new app. Then I follow these steps, and please let me know if there is something not right. 1. Change the theme to billboard. Clicked Saved. 2. extracted the contents of the popupanel zip file into a new folder PopupPanel in the widgets folder. 3. edited the app's config.json and added under the widgetOnScreen the entry {
"uri": "widgets/PopupPanel/Widget"
} 4. open the "Configure Popup Panel" and clicked OK. That created the rest of the entries in config.json and the Popup Panel in the configs folder. 5. Refresh the app and the popup panel flashes once before it vanished.
... View more
09-27-2018
01:55 PM
|
0
|
0
|
15044
|
|
DOC
|
There are no errors. After the instant flashing at start up, it vanishes. When you click on a feature, the popup shows up as a infowindow (floating) not as a side panel. I checked the config.json of your popuppanel website it seems that the popuppanel needs to be in the groups widget?? "groups": [
{
"visible": false,
"panel": {
"uri": "themes/JewelryBoxTheme/panels/LDockablePanel/Panel",
"position": {
"left": 0,
"top": 40,
"bottom": 0,
"width": 360,
"relativeTo": "browser"
}
},
"maxWidgets": 1,
"id": "_18",
"widgets": [
{
"name": "PopupPanel",
"uri": "widgets/PopupPanel/Widget",
"id": "widgets_PopupPanel_Widget_32",
"icon": "widgets/PopupPanel/images/icon.png?wab_dv=2.1",
"config": "configs/PopupPanel/config_widgets_PopupPanel_Widget_32.json",
"version": "2.7"
}
],
"label": "Group_0",
"icon": "widgets/PopupPanel/images/icon.png?wab_dv=2.1"
}
],
"panel": {
"uri": "jimu/OnScreenWidgetPanel",
"position": {
"relativeTo": "map"
}
}
},
... View more
09-27-2018
01:19 PM
|
0
|
0
|
15044
|
|
DOC
|
No, no errors. See above when I referesh a new app with only popuppanel widget. I get a confirmation that is created. By the way I use the v. 2.8 of WAB. Don't know if there is a difference. widget [widgets/PopupPanel/Widget] created.
... View more
09-26-2018
04:42 PM
|
0
|
0
|
12294
|
|
DOC
|
Despite the setting to close at widget startup, it does appear for a sec and then it vanishes. When I click on a feature, it doesn't come up. I am using v2.8 In the config.json "widgetOnScreen": {
---------
---------
{
"uri": "widgets/PopupPanel/Widget",
"id": "widgets_PopupPanel_Widget_35",
"name": "PopupPanel",
"version": "2.6",
"config": "configs/PopupPanel/config_widgets_PopupPanel_Widget_35.json",
"position": {
"relativeTo": "map"
},
"openAtStart": true
}, in the config/PopupPanel/config.... {
"closeAtStart": true,
"closeOnClear": true,
"allowExport": true,
"actionMenuPos": "top"
}
... View more
09-26-2018
03:00 PM
|
0
|
0
|
12294
|
|
DOC
|
Does the widget works on the Billboard theme? I placed the popup panel widget in the widgets folder and the uri under the widgetOnScreen, but no popups when I click on feature.Thanks
... View more
09-26-2018
02:12 PM
|
0
|
0
|
12294
|
|
DOC
|
Helen, try this version of the Identify widget. It modifies Robert's widget to list only the layers on the map, ignoring the config file. https://community.esri.com/docs/DOC-12399-identifyzip
... View more
09-20-2018
10:59 AM
|
1
|
0
|
15335
|
|
DOC
|
This version of the identify widget will modify Robert's widget to list only the visible layers on the map, ignoring the config file.
... View more
09-20-2018
10:56 AM
|
0
|
0
|
1121
|
|
DOC
|
Hi Robert. I tried to download the ver 2.8 from the link above, but I get the error 503, "Service Unavailable".
... View more
09-20-2018
08:40 AM
|
0
|
0
|
15335
|
|
POST
|
Just wanted to share this in case someone else comes across this issue. This applies when you create a new featurelayer on the fly based on the results of a query or an analysis tool. When you want to export the attributes of the new FL, even though the option to export to CSV is on, you will not be able to export because of the absence of the featurelayer.url. To resolve this issue go to the jimu.js/CSVUtils.js and add the lines 15-18. After you add these lines, you will be able to export the FL attributes. exports.exportCSVFromFeatureLayer = function(filename, layer, options) {
console.log(layer)
console.log(options)
console.log(filename)
options = options || {};
var exportOptions = {
datas: options.datas,
objectIds: options.objectIds,
fromClient: options.fromClient,
withGeometry: options.withGeometry,
outFields: options.outFields,
filterExpression : options.filterExpression,
outSpatialReference: options.outSpatialReference
};
if(layer.url === null){
exportOptions.fromClient = true;
exportOptions.withGeometry =true;
}
return exports._getExportData(layer, exportOptions).then(function(result) {
var formattedOptions = {
formatNumber: options.formatNumber,
formatDate: options.formatDate,
formatCodedValue: options.formatCodedValue,
popupInfo: options.popupInfo
};
return exports._formattedData(layer, result, formattedOptions)
.then(function(formattedResult) {
return exports.exportCSV(filename, formattedResult.datas, formattedResult.columns);
});
});
};
... View more
09-19-2018
11:18 AM
|
0
|
0
|
1038
|
|
POST
|
They are the same. I changed line #4 above and it works. Thank you. var newbuffer = geometryEngine.difference(buffer, intersect_geom);
... View more
09-04-2018
03:03 PM
|
0
|
0
|
2249
|
|
POST
|
Yes, you are correct. I made the assumption that the SR is already set. So, I include the code below, to ensure that the SR is the same for both geom. var buffer = geometryEngine.geodesicBuffer(intersect_geom, thebufferdistance, "miles");
buffer.setSpatialReference(this.map.spatialReference);
intersect_geom.setSpatialReference(this.map.spatialReference);
var newbuffer = geometryEngine.difference(buffer.geometry, intersect_geom); Now I get the error: "Cannot read property 'spatialReference' of undefined" So, the buffer is not yet created before the SR is assigned. It seems that I have to use a promise.
... View more
09-04-2018
12:15 PM
|
0
|
2
|
2249
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-09-2026 12:44 PM | |
| 1 | 06-08-2026 12:12 PM | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|