|
POST
|
Hi, I want to reduce the height of a widget panel. I did so using a css like #My_Widget_panel { height: 290px !important; } However, when I open the app on a mobile, the panel is not positioned a the the bottom of the screen. Is there a way to position the panel correctly on mobile device?
... View more
08-29-2019
07:39 AM
|
0
|
6
|
1471
|
|
POST
|
In my Web Map in Portal, I would like to place a MapImage layer on top of a Feature layer but it seems to be impossible. The options to move the MapImage layer over the Feature layer is disabled. Is there a way to achieve this?
... View more
08-09-2019
05:58 AM
|
0
|
0
|
419
|
|
POST
|
Hi, Is it possible to define the layer type as ArcGISDynamicMapServiceLayer instead of FeatureLayer for a MapService that is hosted in an ArcGIS Server Entreprise? I would like the service to return images instead of vectors because it's a layer with a lot of features. Is there a parameter somewhere where we can define this? Thank you, Maxime
... View more
08-05-2019
12:44 PM
|
0
|
1
|
1107
|
|
POST
|
I finally decided to use the "mapLoaded" event published by window.topic (see dojo/topic — The Dojo Toolkit - Reference Guide ) in the MapManager.js. I put my custom code in libs/custom/custom.js, and add an entry in libs/main.js I like this solution because, I prefer to modify WAB source code the least possible custom.js const REFRESH_INTERVAL = 1; //en minutes (0.5 pour 30 secondes)
define([
'dojo/_base/declare',
], function(declare) {
var CustomCode = declare([], {
name: "Pannes HS éditeur custom code",
startup: function() {
window.topic.subscribe("mapLoaded", this._onMapLoaded.bind(this));
},
_onMapLoaded: function(map) {
console.log("_onMapLoaded")
this.map = map;
this._setRefreshIntervales();
},
_setRefreshIntervales: function() {
this.map.graphicsLayerIds.forEach(function(layerId) {
this.map.getLayer(layerId).setRefreshInterval(REFRESH_INTERVAL);
}.bind(this));
}
});
new CustomCode().startup();
});
... View more
08-05-2019
08:40 AM
|
0
|
0
|
2109
|
|
POST
|
Maybe I should create an event dispatcher accessible from the window, that will dispatch a map created event and maybe an app ready event when all widgets are loaded. Adding custom code in a mess like MapManager.js is something I don't want to do and maintain in long term.
... View more
08-01-2019
12:33 PM
|
0
|
0
|
2109
|
|
POST
|
Hi, I am relatively new in developing into Web App Builder applications. I have a dummy question. I have a small snippet of javascript code to add to an application but this not part of any widget. In fact, I want to set a refresh interval to a feature layer. What would be the ideal place for putting such snippet that needs to be executed when the map is loaded? Thank you, Maxime
... View more
08-01-2019
11:16 AM
|
1
|
5
|
2299
|
|
POST
|
I have a simple script to test multiprocessing with arcpy, but the script hang indefinitely. The problem is with the import arcpy statement that seems to be a problem in the child processes. Other multiprocessing script without import arcpy are working correctly import arcpy
import multiprocessing
import os, sys
multiprocessing.set_executable(os.path.join(sys.exec_prefix, 'python.exe'))
def testExists(data):
print data
return arcpy.Exists("foo.gdb")
if __name__ == '__main__':
data = ["foo.gdb", "bar.gdb"]
pool = multiprocessing.Pool(2)
result_arrays = pool.map(testExists, data)
print result_arrays
pool.close()
pool.join() Any idea what can cause the problem?
... View more
07-24-2019
08:37 AM
|
0
|
0
|
639
|
|
POST
|
I prefer using arcpy.CopyFeatures_management() over arcpy.Copy_management() because the latter will fail when there is topology or other stuff that are only supported in geodatabase enterprise. Also, Copy_management() is copying all relationships so when you loop over a dataset, it can tries to copy a feature class many times. Overall, arcpy.CopyFeatures_management() is much faster. Finally, I dont know why, but arcpy.Copy_management() have duplicated some dataset in the output adding _1, _2 , _etc at the end and spreading the feature classes in them. I wonder how arcpy.CopyFeatures_management() compares with arcpy.FeatureClassToFeatureClass_converseion() in terms of performance. Anyboy have compared both?
... View more
07-18-2019
05:24 AM
|
0
|
2
|
8386
|
|
POST
|
Hello, I would like to understand why sometimes arcpy.Exists() return True sometime False depending how I write the path of the featureClass. I have two databases with both a copy of the same featureClass In database1, the featureClass Archives.DBO.Data1 is in the dataset Archives.DBO.Dataset1 In database2 the featureClass PROD.SDE.Data1 is in the dataset PROD.SDE.Dataset1 With arcpy, if I only keep the short names of the dataset and featureClass in the path arcpy.Exists() return True for database1 but False for database2: import arcpy, os
FC_DB1 = os.path.join(r"C:\\", "Connexion", "Database1.sde", "Dataset1", "Data1")
FC_DB2 = os.path.join(r"C:\\", "Connexion", "Database2.sde", "Dataset1", "Data1")
arcpy.Exists(FC_DB1)
#return True
arcpy.Exist(FC_DB2)
#return False If I write the full dataset and featureClass with database2, arcpy.Exist() return True import arcpy, os
FC_DB2 = os.path.join(r"C:\\", "Connexion", "Database2.sde", "PROD.SDE.Dataset1", "PROD.SDE.Data1")
arcpy.Exist(FC_DB2)
#return True Why writing the short dataset and featureClass works for the database1 but not for the database2?
... View more
07-12-2019
06:59 AM
|
0
|
1
|
1039
|
|
POST
|
From times to times our technicians that are editing the data in a geodatabase enterprise are deleting unwillingly some features because they did not noticed they were selected when they press delete. I wonder if there is a way to add a warning popup when the save edits button is clicked that will list the number of features that were edited or deleted for each layers with an approve and a cancel buttons. I am familiar with arcpy and a little bit with ArcObject. Is this something possible to achieve? Any ideas how?
... View more
07-10-2019
12:32 PM
|
0
|
2
|
1491
|
|
POST
|
Ok thank you for your answer. Then, I'll use hide() instead for the X button
... View more
06-28-2019
11:17 AM
|
0
|
0
|
634
|
|
POST
|
I have a widget that is using the jimu/dijit/Popup class. I have noticed that when the popup is closed with the X button or with the close() method, the widget is automatically destroyed and cannot be accessed from the WidgetManager anymore. Is there a way to prevent the widget to be destroyed when the popup is closed?
... View more
06-28-2019
10:49 AM
|
0
|
2
|
776
|
|
POST
|
Thank you! I'll try that. What am I supposed to write for the "uri" in the manifest.json of the widgets to register the featureAction?
... View more
06-27-2019
11:30 AM
|
0
|
1
|
1311
|
|
POST
|
I have created a featureAction that I want to be enabled in the Select, AttributeTable and a custom Geoprocessing Widget. This featureAction when executed open another widget panel. I would like to store only one copy of the featureAction in the widget directory that is opened when executed. However, it seems that the icons and nls must be copied in every widgets where the featureAction is enabled. Is there a way to store the icons and nls into one place only?
... View more
06-27-2019
11:13 AM
|
0
|
3
|
1393
|
|
POST
|
Thank you for the information. That's a very interesting avenue. I am not sure what would be the implication of the web adaptor in this kind of settings. Also, do you know if Portal is compatible with such reverse proxy?
... View more
06-18-2019
06:05 AM
|
0
|
2
|
1598
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-13-2025 05:45 AM | |
| 2 | 06-03-2024 10:33 AM | |
| 2 | 05-14-2025 10:45 AM | |
| 2 | 04-12-2022 07:00 AM | |
| 1 | 02-26-2025 05:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|