DOC
|
The purpose of this widget is to provide the user with easy access to basic information about the web map that is being used in the WAB app. This widget was created with WAB DE 2.2 and has been tested in 2.16 with no issues. Features of the widget: Get current map Extent Projection Coordinates Geographic Coordinates Get map Spatial Reference Get Web Map Information Title Map ID Owner ArcGIS Online Sharing level Tags Get Map Layer Info A list of the unique layer ID's that are assigned to the layers when they are added to the Web Map. Feature Layers Dynamic MapService Layers If there are any questions/suggestions please let me know! Thank you, Chris
... View more
01-20-2017
01:18 PM
|
4
|
3
|
3236
|
POST
|
Syed, You could use the Measurement widget in the list of widgets. It also includes: Distance Area As Robert Scheitlin, GISP said, you can set the visibility of the standard coordinates widget to false, and then rely on the measurement widget. Hope this helps! Chris
... View more
01-04-2017
06:06 AM
|
1
|
0
|
1131
|
POST
|
Hello, I am working on a map that includes several Title Panes. I have replaced the Text in the title panes with images. Is it possible to create tool tips for the panes? I have tried using the Dijit Tooltip class to display them, but it won't show when the title pane is created. My code attempting to create the tooltips: //"BasemapTitle" is the Id for the TitlePane
var myTooltipDialog = new Tooltip({
connectId: ["BasemapTitle"],
content: "Basemap Gallery",
position: ["below"]
}); Thanks! Chris
... View more
12-14-2016
03:26 PM
|
0
|
1
|
926
|
POST
|
Robert, I was having issues getting the mobile popups to display. I tried everything I could think of and I eventually found out that the mobile Popup are not compatible with the new 'Calcite' theme. I had to download the popupMobile .css file and host it locally to override the 'calcite' theme css. Download Link to popupMobile css file: https://developers.arcgis.com/javascript/3/jsapi/css/arcgis-js-sdk-css.zip Path to the css file: 1. Extract the file Then go to: esri ==> dijit ==> css ==> popupMobile.css
... View more
12-13-2016
08:58 AM
|
0
|
0
|
661
|
POST
|
Hello all, I am working on a map using Esri's JS API version 3.18. I want to make the map switch the popups from regular popups, created using the Popup class, to mobile Popups, created using the PopupMobile class. I have tried changing the map's infoWindow from one to the other when the screen width falls below a certain threshold, but it does not seem to work. Has anyone else come across this? Thanks! Chris
... View more
12-12-2016
02:34 PM
|
0
|
2
|
1646
|
POST
|
Update: Here is the link to the bug: BUG-000099764: Querying a related table in Web AppBuilder for ArcGI..
... View more
12-12-2016
12:17 PM
|
2
|
0
|
1480
|
POST
|
Hello all, I am using the Smart Edit widget in Esri's Web AppBuilder in my application. Overall this widget is a major improvement from the standard edit widget that was originally provided before the Smart Editor Widget. One of the features that we found was missing from the new edit widget was the ability to choose the shape of the edit that you wanted to make. (Only applied to Polygons and Polylines.) In the original Edit widget you could use the toolbar to define the shape desired : The Smart Editor Widget, however, does not have an option to choose. I have downloaded the Web AppBuilder Developer Edition (Link) and have changed the Smart Editor widget's code to create a popup box to prompt the user to choose the editing shape that is desired. Here is what happens with my edits: Here is the code that makes this happen (Inside the Smart Editor widget's Widget.js file): _activateTemplateToolbar: function () {
if (this.templatePicker) {
var selectedTemplate = this.templatePicker.getSelected();
if (selectedTemplate && selectedTemplate !== null) {
switch (selectedTemplate.template.drawingTool) {
case "esriFeatureEditToolNone":
switch (selectedTemplate.featureLayer.geometryType) {
case "esriGeometryPoint":
this.drawToolbar.activate(Draw.POINT);
break;
case "esriGeometryPolyline":
this.drawToolbar.activate(Draw.POLYLINE);
break;
case "esriGeometryPolygon":
this.drawToolbar.activate(Draw.POLYGON);
break;
}
break;
case "esriFeatureEditToolPoint":
this.drawToolbar.activate(Draw.POINT);
break;
case "esriFeatureEditToolLine":
this.promptPolylineDrawType(); // Edit
break;
case "esriFeatureEditToolAutoCompletePolygon":
case "esriFeatureEditToolPolygon":
this.promptPolygonDrawType(); //Edit
break;
case "esriFeatureEditToolCircle":
this.drawToolbar.activate(Draw.CIRCLE);
break;
case "esriFeatureEditToolEllipse":
this.drawToolbar.activate(Draw.ELLIPSE);
break;
case "esriFeatureEditToolRectangle":
this.drawToolbar.activate(Draw.RECTANGLE);
break;
case "esriFeatureEditToolFreehand":
switch (selectedTemplate.featureLayer.geometryType) {
case "esriGeometryPoint":
this.drawToolbar.activate(Draw.POINT);
break;
case "esriGeometryPolyline":
this.drawToolbar.activate(Draw.FREEHAND_POLYLINE);
break;
case "esriGeometryPolygon":
this.drawToolbar.activate(Draw.FREEHAND_POLYGON);
break;
}
break;
}
}
else if (this.drawToolbar) {
this.drawToolbar.deactivate();
}
}
else if (this.drawToolbar) {
this.drawToolbar.deactivate();
}
},
// *****************************MY EDITS BEGIN HERE***********************************************
promptPolylineDrawType: function () {
var dialog = new Popup({
titleLabel: "Select Drawing Method",
width: 500,
maxHeight: 200,
autoHeight: true,
content: "Please select the shape desired.",
buttons: [{
label: "Polyline",
classNames: ['jimu-btn'],
onClick: lang.hitch(this, function () {
this.drawToolbar.activate(Draw.POLYLINE);
dialog.close();
})
}, {
label: "Freehand Polyline",
classNames: ['jimu-btn'],
onClick: lang.hitch(this, function () {
this.drawToolbar.activate(Draw.FREEHAND_POLYLINE);
dialog.close();
})
}
],
onClose: function () {
if (this.drawToolbar) {
this.drawToolbar.deactivate();
}
}
});
},
promptPolygonDrawType: function () {
var dialog = new Popup({
titleLabel: "Select Drawing Method",
//width: 600,
maxHeight: 200,
autoHeight: true,
content: "Please select the shape desired.",
buttons: [{
label: "Polygon",
classNames: ['jimu-btn'],
onClick: lang.hitch(this, function () {
this.drawToolbar.activate(Draw.POLYGON);
dialog.close();
})
}, {
label: "Triangle",
classNames: ['jimu-btn'],
onClick: lang.hitch(this, function () {
this.drawToolbar.activate(Draw.TRIANGLE);
dialog.close();
})
}, {
label: "Freehand Polygon",
classNames: ['jimu-btn'],
onClick: lang.hitch(this, function () {
this.drawToolbar.activate(Draw.FREEHAND_POLYGON);
dialog.close();
})
}, {
label: "Circle",
classNames: ['jimu-btn'],
onClick: lang.hitch(this, function () {
this.drawToolbar.activate(Draw.CIRCLE);
dialog.close();
})
}, {
label: "Rectangle",
classNames: ['jimu-btn'],
onClick: lang.hitch(this, function () {
this.drawToolbar.activate(Draw.RECTANGLE);
dialog.close();
})
}
],
onClose: this.drawToolbar.deactivate()
});
},
//**********************************MY EDITS END HERE *******************************************************
_templatePickerNeedsToBeCreated: function (layers) {
if (this.templatePicker === undefined || this.templatePicker === null) {
return true;
}
if (this.templatePicker.featureLayers.length !== layers.length) {
return true;
} It is still a work in progress, but this will allow you to choose the shape that you desire for editing in the Smart Editor Widget. Any feedback or suggestions are welcome! Thanks, Chris P.S. Unlike the standard Edit widget, the smart editor widget does not utilize the Editor Class of the Esri JavaScript API. It uses the Edit and Draw classes.
... View more
12-08-2016
07:49 AM
|
0
|
0
|
2379
|
POST
|
2CDSD 2C, Unfortunatly, the Esri Resource proxy does not support printing secured services at this point. I have done some digging and found (from PrintTask, Secure AGS Service, and Resource Proxy ) this: The resource proxy will not print a secured map service. This is by design. So it is possible to use the proxy in order to authenticate and display the secured service on the map, but when it comes to printing a secured service, the resource proxy will not handle this scenario as it will not pass the token in the Web_Map_as_JSON parameter. If you are using a short lived token, then a solution would be to let the identity manager handle the authentication for you, meaning that you will get a prompt to enter your credentials once the app loads and then these credentials will be used when you try to print. Otherwise, you can create a custom print service and embed the credentials as described in the article. If you choose to use the second option, please make sure that you use a 10.3 print service or above as there was an issue in the earlier versions which is fixed in 10.3 ====================================================================================== I have spent about a month on the phone with Esri tech support about this and have spoken with ArcGIS Server and Online personnel at the Esri UC this past summer and have gotten the same answers. Because the proxy won't apply the token it has, the print service will then not have permission to access the secured layer. I have tried and gotten the same errors as you are seeing. (My GeoNet thread: https://community.esri.com/message/598929 ) The suggested action by Esri tech support and the Esri staff at the UC was to custom edit the proxy to apply the token to the request. Sorry about the bad news. Chris
... View more
11-16-2016
11:28 AM
|
1
|
0
|
1221
|
POST
|
Hello all, I am adding a CSV layer to my JS map. Is it possible to filter the layer by attribute values using the JS API? I have tried using the "setDefinitionExpression" method but it seems to only work with Esri Map services or Feature Services. Am I missing something? Thank you! Chris
... View more
11-15-2016
08:57 AM
|
0
|
2
|
1184
|
POST
|
Hello, I am creating a map based off of Esri's JS library (3.18). I would like the overview map's basemap to match basemap selected from the basemap on the Basemap Gallery. Has anyone done this before? Thanks, Chris
... View more
11-03-2016
08:44 AM
|
0
|
2
|
1513
|
IDEA
|
Hello! It would be nice to copy a popup template from one layer to another in ArcGIS Online and Portal for ArcGIS. I have over 20 layers in a map that all have the same fields but display different points. It would be nice to have a dropdown or something that gives you the choice to take the popup template from another layer (with same fields) and apply it to the next one. It would be nice to also include any media (pictures, charts, etc...) in this transfer. Thanks, Chris
... View more
11-02-2016
05:50 PM
|
39
|
3
|
1713
|
IDEA
|
Hello! It would be nice to copy a popup template from one layer to another in ArcGIS Online and Portal for ArcGIS. I have over 20 layers in a map that all have the same fields but display different points. It would be nice to have a dropdown or something that gives you the choice to take the popup template from another layer (with same fields) and apply it to the next one. It would be nice to also include any media (pictures, charts, etc...) in this transfer. Thanks, Chris
... View more
11-02-2016
05:50 PM
|
35
|
2
|
1330
|
Title | Kudos | Posted |
---|---|---|
1 | 06-10-2016 07:23 AM | |
1 | 05-24-2021 02:27 PM | |
1 | 11-02-2016 02:19 PM | |
1 | 05-18-2016 08:47 AM | |
1 | 01-04-2017 06:06 AM |
Online Status |
Offline
|
Date Last Visited |
07-31-2024
12:30 PM
|