DOC
|
James, Can you post the configure file you are using for the Print Plus widget? Larry
... View more
07-22-2015
07:14 PM
|
0
|
0
|
5088
|
DOC
|
Lei, Are you adding the widget to the stemapp, or to an app in the server/apps folder? if you are adding to the stemapp, then you need to edit some other files in the stemapp. i don't have access to the docs now, but I think the details are in them. Larry
... View more
07-22-2015
07:11 PM
|
0
|
0
|
7799
|
POST
|
Hard to say without seeing the source code. In my last job, I had a Python script that did the reconciles and posts every morning, plus lots of other stuff too. I wrote two log files, one at the error level, which I had the servers email to me, and one at the debug level for debugging.
... View more
07-15-2015
10:23 AM
|
1
|
1
|
974
|
POST
|
Brandon, I see that "Reconciling and Posting Edits" always comes before "Reconcile and Post Completed Successfully. Edits are Saved". This is good. It's the "DERP_Editing Version Exists" message that is moving around. Not sure what that is, but it looks like this may just be the result of asynchronous behavior. Larry
... View more
07-15-2015
09:38 AM
|
1
|
3
|
974
|
POST
|
Maribel, It is possible and I have done it. Here is a snippet of code that I use: var layerOrder = ['layer1', 'layer2', 'layer3'];
if (layerOrder && layerOrder.length) {
var ignore = false;
on(this.map.infoWindow, 'dfd-complete', function(evt) {
// The dfd-complete event is undocumented and may not work in future versions.
if (evt.target.count > 1) {
evt.target.setContent('');
}
});
on(this.map.infoWindow, 'set-features', function(evt) {
if (ignore || evt.target.count < 2) {
return;
}
var features = evt.target.features;
var layerNames = [];
var newLayerIndexes;
var index;
var newFeatures = [];
array.forEach(features, function(feature) {
layerNames.push(feature.getLayer().name);
});
newLayerIndexes = Array(layerNames.length);
array.forEach(layerNames, function(layerName, idx) {
index = array.indexOf(layerOrder, layerName);
if (index === -1) {
newLayerIndexes.push(idx);
} else {
// In the case of multiple features from the same layer
while (newLayerIndexes[index] !== undefined) {
index++;
}
newLayerIndexes[index] = idx;
}
});
array.forEach(newLayerIndexes, function(index) {
if (index !== undefined) {
newFeatures.push(features[index]);
}
});
ignore = true;
evt.target.setFeatures(newFeatures);
evt.target.show();
ignore = false;
});
}
This code should go into a "headless" widget (like my Anvil Widget). You can see it in action here: Hamilton County Map Viewer. My layerOrder is: [
"Cemetery",
"School",
"Railroads",
"Interstates and US Highways",
"State Highways",
"Major Roads",
"Minor Roads",
"Parcels",
"Subdivision",
"Corporate Limits",
"Political Township"
]
When I have some time, I'll put this into another variation of the Anvil Widget. Larry
... View more
07-12-2015
06:22 PM
|
1
|
0
|
887
|
DOC
|
James, I've solved much of the problem. I'm still not getting a symbol for my parcels layer in the print file legend. (My parcels layer is a feature layer that gets a new renderer when the basemap changes, so it could be specific to that.) Not sure how to solve this problem, so I thought I'd post Version 1.1.6 which includes what I did solve. Larry
... View more
07-12-2015
05:43 PM
|
1
|
0
|
5088
|
DOC
|
James, I apologize for my slow response. I've started a new job and it's keeping me pretty busy. This seems like a bug in the Esri Print Widget, and has carried through to my Print Plus Widget. I'll look into it as soon as possible and get back to you. Larry
... View more
07-11-2015
05:00 PM
|
0
|
0
|
5088
|
POST
|
Jared, I've just started a new job and have been offline for a few days. Does the Swipe Plus widget on this page do what you are looking for? Hamilton County Map Viewer Larry
... View more
07-02-2015
07:28 PM
|
0
|
0
|
648
|
DOC
|
John, You are welcome to the Print Plus Widget, but I suspect Esri's documented process will be more suitable. Creating a map series from a web app is pretty ambitious. I'd love to see it if you can make it work.
... View more
06-19-2015
08:13 PM
|
0
|
0
|
5088
|
POST
|
Abi, Have you set the basemap layer to "Hide in Legend" in the WebMap? Larry
... View more
06-15-2015
04:21 PM
|
2
|
1
|
434
|
DOC
|
Andrew, 1. Make sure you have the ZoomPrevNext entry in the client\stemapp\widgets\list.json file. 2. When you create a new app in WAB, it copies files from the stemapp folder to server\apps\<app #> folder. Therefore, the widget won't be available in any apps you have already created; it will only be available in apps you create after you have added it to the stemapp folder and both the stemapp\widgets\list.json and the stemapp\predefined-apps\default\config.json files. 3. If you want to add it to an app you have already created, all you need to do is add it to the server\apps\<app #>\config.json file. 4. in all cases, you will need to adjust the "position": { "top": 215, value of all the widgets in the stack (e.g. Home, MyLocation, etc.) to put the widget into the order you want it. Larry
... View more
06-13-2015
11:17 AM
|
0
|
0
|
7466
|
DOC
|
Is your app on a public site that I can look at? If not, can I see your main config.json file?
... View more
06-12-2015
08:18 PM
|
0
|
0
|
7466
|
DOC
|
I am not aware of a Web AppBuilder Version 1.2. What Esri calls Version 1.1 shows its version as 1.2. Is that the version you are asking about? Larry
... View more
06-12-2015
02:56 PM
|
0
|
0
|
7466
|
POST
|
Andrew, I have created a new Anvil Bookmarks Widget. I copied just what I needed from the Acme Widget. It seemed easier than trying to answer your questions one by one, as good as they were. Take a look and let me know if any of your questions linger. Larry
... View more
06-11-2015
08:25 PM
|
1
|
1
|
646
|
DOC
|
2/18/2017 - updated download link The Acme Widget in the Hamilton County WAB Viewer is a "headless" widget that adds lots of functionality and modifies the behavior and/or appearance of a lot of Esri Widgets (without modifying their code). The Anvil series of widgets are simplified versions of the Acme Widget, demonstrating just one or two nuggets of functionality. This widget is a sample of how to create a "headless" widget for the Wed AppBuilder (WAB). By "headless," I mean it is invisible and it is loaded at startup. This sample modifies Esri's Bookmark Widget to eliminate the graphic and include the scale of the bookmark. There is no live sample for this widget, as it is invisible. I called it AnvilBookmarks because the original "headless" widget I wrote is called Acme, and I wanted to stay with the Roadrunner theme. If you want to drop this widget into the WAB and configure it in an app, you will need to copy its folder into the client\stemapp\widgets folder and then add it to the client\stemapp\predefined-apps\default\config.json file. If you want to add this widget to an app you have already built with the WAB, then add it to the main config.json file like this: "widgetOnScreen": { "widgets": [ { "uri": "widgets/AnvilBookmarks/Widget", "position": { "left": -1000, "bottom": -1000 }, "version": "1.1", "id": "widgets/AnvilBookmarks/Widget_101", "positionRelativeTo": "map", "name": "AnvilBookmarks", "label": "Anvil Bookmarks" }, . . . . . . ], "panel": { "uri": "jimu/PreloadWidgetIconPanel", "positionRelativeTo": "map" } }, . . . . . . AnvilBookmarks-1.1-2015-6-11.zip https://community.esri.com/docs/DOC-9624-anvilbookmarks-11-2015-6-11zip Larrys Custom WAB Widgets and More
... View more
06-11-2015
08:20 PM
|
0
|
1
|
6171
|
Title | Kudos | Posted |
---|---|---|
1 | 08-03-2015 07:45 AM | |
1 | 08-06-2015 05:32 PM | |
1 | 08-11-2015 06:08 PM | |
1 | 06-09-2015 06:58 PM | |
1 | 01-22-2015 03:06 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|