POST
|
Hello guys, I need to add a multi layered symbol for my lines using the arcGIS API for javaScript, like in the picture in ARCMAP I tried to search online but didn't find anything helpful, I don't want to do this on PORTAL but instead to use it in my code to show my query results, so I need to code a multi layered symbol, I tried working with Cartographic Line symbol and adding multiple ones for my layer but it didn't work, var lineCL = new CartographicLineSymbol({ "color": [ 255, 0, 0, 255 ], "width": 1.995, "type": "esriCLS", "style": "esriSLSShortDashDot", "cap": "esriLCSButt", "join": "esriLJSRound", "miterLimit": 30 },{ "color": [ 26, 26, 26, 255 ], "width": 2.58, "type": "esriCLS", "style": "esriSLSShortDashDot", "cap": "esriLCSButt", "join": "esriLJSRound", "miterLimit": 30 }); renderer.symbol=lineCL; PLEASE I am waiting for your help. Robert Scheitlin, GISP
... View more
05-07-2019
06:31 AM
|
0
|
1
|
842
|
POST
|
Hello guys, I'm working with arcGIS API for Javascript, ArcGIS for server 10.6 I have a filed in arabic called "arabic_name", I am working in a geodatabase stored in Oracle this same query used to work in .shp files, once I changed to .gdb it's not working anymore,it says (No records found.) what can I do ? please tag anyone that can help me out ! ArcGIS API for JavaScript Robert Scheitlin, GISP
... View more
03-01-2019
02:35 AM
|
0
|
2
|
1116
|
POST
|
Robert, your code didn't work because I don't have three layers, I have published ONE mapService that contains three layers, it's giving me "TypeError: Cannot read property 'layerObject' of undefined" because that is my "lyrInfoArr" variable: I have tried also: var layerInfos = LayerInfos.getInstanceSync(); var lyrInfoArr = layerInfos.getLayerInfoArray(); var layerLayer=lyrInfoArr[0].layerObject.layerInfos; this.map.removeLayer(layerLayer[0]); this.map.removeLayer(layerLayer[1]); this.map.removeLayer(layerLayer[2]); But this code does nothing .
... View more
11-12-2018
01:02 AM
|
0
|
1
|
684
|
POST
|
Hi guys, I am new to WAB(DE), I want to make a widget that removes some layers from the map, I tried the code below but id does not work, var layerInfos = LayerInfos.getInstanceSync(); array.forEach(layerInfos.getLayerInfoArray(), function(layerInfo) { this.map.removeLayer(layerInfo.newSubLayers[0].layerObject); this.map.removeLayer(layerInfo.newSubLayers[1].layerObject); this.map.removeLayer(layerInfo.newSubLayers[2].layerObject); }, this); What is wrong with it ? Robert Scheitlin, GISP ArcGIS Enterprise
... View more
11-09-2018
07:53 AM
|
0
|
3
|
931
|
POST
|
Hello guys, Using this matrix, About release versions—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers I'm in need of the 2.6 version, I have used the 2.9 version but when I upload the widget to my Portal some functions do not work, I think that is due to using the wrong version, so I looked for the 2.6 version that is not available on ESRI website, they keep only the latest version which is now the 2.10 version. so what to do ? Robert Scheitlin, GISPWeb AppBuilder for ArcGIS
... View more
11-09-2018
02:59 AM
|
0
|
1
|
976
|
POST
|
Hi guys, I am working on many modules in one app, every module has its own widgets, so Once I change the module using a widget, some specific widgets should be destroyed and replaced by other widgets, any ideas about destroy and rebuilding widgets ? Robert Scheitlin, GISP please tag anyone who can help me thanks in advance ArcGIS API for JavaScript
... View more
10-30-2018
02:28 AM
|
0
|
1
|
796
|
POST
|
Robert, It is not, but I can't find the fields of the layer
... View more
09-14-2018
07:49 AM
|
0
|
1
|
1185
|
POST
|
Robert, thank you, but there is no "field" property, How can I find the fields of a layer ?
... View more
09-14-2018
07:10 AM
|
0
|
3
|
1185
|
POST
|
Hello guys, I'm new to developing with arcGIS web app-builder, I want to show the layers added on the map (they're coming from my arcGIS server map service) and once I choose a layer, its fields will be displayed in the other list drop-down, such a widget is available on the app-builders docs but it's not working for me, maybe because it's only for 'ArcGIS Feature Layer', you can find it here: Create a ListView widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers define([ 'dojo/_base/declare', 'jimu/BaseWidgetSetting', 'dojo/_base/lang', 'dojo/_base/array', 'dijit/_WidgetsInTemplateMixin', 'jimu/LayerInfos/LayerInfos', 'dijit/form/Select' ], function(declare, BaseWidgetSetting, lang, array, _WidgetsInTemplateMixin, LayerInfos) { return declare([BaseWidgetSetting, _WidgetsInTemplateMixin], { baseClass: 'jimu-widget-listview-setting', postCreate: function(){ //the config object is passed in this.setConfig(this.config); }, setConfig: function(config){ // this.textNode.value = config.configText; // Update header text //you can change the default string named "headerText" defined at nls/string.js with a variable defined in config.json this.headerTextNode.value = config.widgetHeaderText; // Get all feature layers from the map LayerInfos.getInstance(this.map, this.map.itemInfo) .then(lang.hitch(this, function(layerInfosObj) { var infos = layerInfosObj.getLayerInfoArray(); var options = []; array.forEach(infos, function(info) { // if(info.originOperLayer.layerType === 'ArcGISFeatureLayer') { options.push({ label: info.title, value: info.id }); // } }); this. layerSelect.set('options', options); this.layerSelect.on('change', lang.hitch(this, function(value) { //alert('value of layerId is :' +value); var selectedLayer = layerInfosObj.getLayerInfoById(value); console.log("selectedLayer: "+selectedLayer); // [Object Object] console.log("selectedLayer.layerObject: "+selectedLayer.layerObject); // [Object Object] console.log("selectedLayer.layerObject.fields: "+selectedLayer.layerObject.fields); //undefined console.log("selectedLayer.layerObject0: "+selectedLayer.layerObject[0]); //undefined console.log("selectedLayer.layerObject1: "+selectedLayer.layerObject[1]); //undefined if(selectedLayer) { var fieldOptions = array.map(selectedLayer.layerObject.fields, function(field) { return { label: field.alias || field.name, value: field.name } }); this.thumbnailSelect.set('options', fieldOptions); this.titleSelect.set('options', fieldOptions); } })); })); }, getConfig: function(){ //WAB will get config object through this method /*return { configText: this.textNode.value };*/ //WAB will get config object through this method return { widgetHeaderText: this.headerTextNode.value, layerId: this.layerSelect.get('value'), thumbnailField: this.thumbnailSelect.get('value'), titleField: this.titleSelect.get('value') }; } }); }); When using Breakpoints while debugging, I can't find the "Fields" property in the layerObject object, where I can find it ? Robert Scheitlin, GISP
... View more
09-14-2018
02:26 AM
|
0
|
5
|
1560
|
POST
|
Hi guys, I know that there is a possibility to import widgets to Portal 10.6, is there a way to edit themes and add them to my app on Portal ? Robert Scheitlin, GISPRebecca Strauch, GISP
... View more
09-13-2018
01:32 AM
|
0
|
2
|
701
|
POST
|
Robert, I have edit it, refreshed the web server, added it again as an appBuilder extension and tried to add a layer, the same two errors keep showing
... View more
09-07-2018
07:48 AM
|
0
|
1
|
1194
|
POST
|
Robert, I got it I've used instead: https://machinename.domain.com/waportal J'aime Afficher 0 mention J'aime (0) • Répondre Action
... View more
09-07-2018
07:22 AM
|
0
|
0
|
770
|
POST
|
Robert, I have two options one with web adaptor (waportal) and one without it: https://machinename.domain.com:7443/arcgis/home/index.html https://machinename.domain.com/waportal/home/index.html
... View more
09-07-2018
07:12 AM
|
0
|
2
|
770
|
POST
|
09-07-2018
07:10 AM
|
0
|
3
|
1194
|
Title | Kudos | Posted |
---|---|---|
1 | 07-13-2018 12:59 PM | |
1 | 05-19-2017 08:31 AM | |
2 | 05-23-2017 08:42 AM | |
2 | 05-23-2017 07:07 AM | |
1 | 05-19-2017 12:54 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|