POST
|
I believe that the version you want to be editing is the version that you get if you select the option to download your WAB App (as a zip file) from the developer. Once that's done, its in jimu.js/MapManager.js Others may have differing opinions, but I'd be cautious about editing files that are still connected to the WAB directly. That said, the latter of your links is the one that is associated with one of the Apps you've created in WAB.
... View more
08-14-2015
10:06 AM
|
0
|
0
|
968
|
POST
|
Thank, but I'm comfortable with the default behavior for the popup size (and that's relatively easy to change once you find the settings). I'd just like to change the distance from the clicked point from 16pixels to ~40-60pixels. Having over written the default selection highlight, I'd actually be happy to turn off the leader too.
... View more
08-14-2015
10:00 AM
|
0
|
0
|
2593
|
POST
|
Some further refinement of what I've found.. Adding *.arcgis.com as a trusted site actually does not impact the ability to load our hosted WAB based App. It does impact our ability to log into any arcgis.com website so it's worth keeping. The key for us (California Department of Conservation) is adding *.ca.gov as a trusted site (irony implicit). I've yet to get any reports of issues from non-Dept. of Conservation folks, but it's been a very small survey so far since the site hasn't been linked. My suspicion is that there is something in the Dept.'s IT security system that is making the setting of trusted sites necessary, since I'm able to access the web map and arcgis.com in IE without any trusted site settings from personal computers.
... View more
08-14-2015
09:48 AM
|
0
|
0
|
329
|
POST
|
I just ran into this to. What I and the other IT staff have figured out is that in IE 11 if you don't have either: A. The Enable Protected Mode turned off under Internet Options-->Security-->Internet or B. *.arcgis.com listed added to the trusted sites and the Enable Protected Mode turned off there.. Then, you'll see this issue. To fix it, you also need to clear the cache. We run into this same issue when logging onto arcgis.com if we don't have the settings worked out as above. Does anyone have a working solution for this? A large portion of my audience is government computers set with IE as the default, and with settings that don't let them in.
... View more
08-13-2015
03:00 PM
|
1
|
1
|
329
|
POST
|
Just checking in... Has the recent release changed our ability to modify the defaults on popup window placement? I'm not concerned about size in this case, more about being able to back the popup off from the highlighted feature a bit.
... View more
08-13-2015
08:59 AM
|
1
|
2
|
2593
|
POST
|
Thank you so much, and in case anyone else wants to run with it, here's what I did starting with Robert's hint to make the identified polygons have a red boarder and red tint fill, and points have a red circle with a slightly darker red background. map.infoWindow.fillSymbol = new SimpleFillSymbol({
"type": "esriSFS",
"style": "esriSFSSolid",
"color": [255,0,0,25],
"outline": {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [255,0,0,255],
"width": 2
}
});
map.infoWindow.markerSymbol = new SimpleMarkerSymbol({
"color": [255,0,0,64],
"size": 15,
"angle": -30,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [255,0,0,255],
"width": 2,
"type": "esriSLS",
"style": "esriSLSSolid"
}
});
... View more
08-12-2015
03:40 PM
|
2
|
10
|
1369
|
POST
|
Is it possible to change the symbol used to highlight a feature that has been clicked on (i.e. to show the popup info)? I can see and edit the symbols live through the debugger, but haven't been able to figure out where to make changes so that they'll be permanent. On a related note, is there a preferred location for setting custom css properties to override existing ones? I'm currently using Web AppBuilder-Developer's Edition 1.1. Thanks,
... View more
08-12-2015
11:13 AM
|
0
|
29
|
9444
|
POST
|
Thanks again, The irony is that that a.view call is actually being made internally to the recfunctions module as part of the append_fields function. I think I'm going to try to run this up the flagpole with Esri support to see what they've got to say. I will report back.
... View more
05-29-2015
02:08 PM
|
0
|
1
|
2994
|
POST
|
Thanks again, rfn.append_fields definitely simplifies things, and you're correct about my use of object names as variable names. I've made use of the append_fields method from recfunctions and receive a different error, but one that seems to indicate the same problem. Traceback (most recent call last):
File "<string>", line 154, in execute
File "<string>", line 52, in Quantiles
File "C:\Python27\ArcGIS10.2\lib\site-packages\numpy\lib\recfunctions.py", line 616, in append_fields
data = [a.view([(name, a.dtype)]) for (name, a) in zip(names, data)]
TypeError: data type not understood
Failed to execute (QuantileCalc). Like before, I can run the function in an IDE without error, generating the desired result. I remain puzzled by what's going on. It might be time to bring in an Esri tech support call.
... View more
05-29-2015
11:49 AM
|
0
|
4
|
2994
|
POST
|
Thank you Dan, That's very good information, but that doesn't actually get at my issue. I've reformatted the Python toolbox at the github link above to try to more clearly identify the problem. I've added a snippet at the bottom of the .pyt module so that I can execute it directly against the same function, and it works fine. I have a function that does exactly what I need it to. It works if I run it in a separate IDE, calling the same Python installation (32bit, ver 2.7.5) as ArcGIS is uses (not just the same version, using the default ArcGIS installation of Python). That same code works if I paste it line by line into the the python window in ArcGIS (a painful process). def Quantiles(in_features, in_field, in_quant, in_qdir):
print("converting to numpy")
nparray = da.FeatureClassToNumPyArray(in_features,["OID@",in_field],skip_nulls = True)
print("calculating quantiles")
n = 1.0/float(in_quant)
qs = [n*x*100 for x in xrange(1,int(in_quant)+1)]
print(qs)
print("calculating percentiles")
flcol = np.array(nparray[[in_field]], np.float)
ps = np.percentile(flcol, qs)
print(ps)
print("Adding new numpy field")
newfldname = "".join(["Q",in_field])
fldtype = (newfldname,'int32',)
dtype=nparray.dtype.descr
dtype.append(fldtype)
dtype2 = np.dtype(dtype)
nparray2 = np.empty(nparray.shape, dtype=dtype2)
for name in nparray.dtype.names:
nparray2[name] = nparray[name]
print("Assign Quantiles")
out = AssignQuant(flcol,ps)
if in_qdir == "Reverse":
out = (int(in_quant) + 1) - out
nparray2[newfldname] = out
nparray3 = nparray2[['OID@',newfldname]]
print("Extend table to include the new values")
da.ExtendTable(in_features,"OBJECTID" ,nparray3,"OID@")
print("Done") When the function is called from within a Python Toolbox, it has problems with the dtype definition (line 41 on github, 20 above). dtype2 = np.dtype(dtype) I can see quite clearly that the parameters are making it into the function. I could do this in several other ways, but the performance is (much) better with Numpy than any of the cursor based, or join, addField, and calculateField methods I've looked at. If it were just for me, I'd run it just as the standalone script and import the function as needed. I suspect this'll be a starting point for publishing a geoprocessing service for our use, so I need to keep it within that realm.
... View more
05-29-2015
09:36 AM
|
0
|
6
|
2994
|
POST
|
I've got a script that I'm trying to get into a python toolbox for use and distribution. It adds a new column to a dataset that containing the quantile that a data field falls into (number of quantiles is an input as is the field, and an option to invert the quantile numbers). Basically: It extracts the needed fields (OID, and the selected field) from a feature class using arcpy.da.FeatureClassToNumPyArray. When I try to add a new field to the the resulting structured array using the code in a Python Toolbox, I get the following error: Traceback (most recent call last): File "<string>", line 133, in execute TypeError: data type not understood What's odd about this, is the same code differing (as far as I can see) only in externally providing the parameter values works fine in an IDE (Eclipse/PyDev using the same Python interpreter). So does cutting and pasting the lines of code into the Python window in ArcCatalog. If I run the same section of code for creating the copy of the structured array using only the existing fields, it also works (at least that far) in the Python Toolbox. I have tried multiple formulations of the dtype values with the same result from: <i4, int, integer ArcGIS 10.2.2, with the default installation of python(2.7.5) and numpy (v1.7.1). If anyone wants to take a look, my toolbox is available at: CenterForRegionalChange/QuantileCalc · GitHub Thanks, Nate
... View more
05-29-2015
12:13 AM
|
0
|
10
|
11693
|
POST
|
Having played with it fairly intensively for a few days now, I've had no issues with upgrading the numpy version installed as part of my arcgis python install to 1.9.
... View more
03-06-2015
10:08 AM
|
0
|
0
|
1805
|
POST
|
I found that to successfully install pandas for use with ArcGIS 10.3 I had to install a newer version of numpy (upgrade from 1.7 to 1.9). In doing that, I had to make sure to use pip in a command window with administrative permissions.
... View more
03-04-2015
04:55 PM
|
0
|
0
|
1805
|
POST
|
I inherited a javascript webmap system, that works quite well with one exception we've never gotten the legend to print correctly through the print widget. It appears to be because ArcGIS server doesn't handle passing legends to the print widget if the layer being printed is within a layer group in the service published to the server. Anyone else run into this? Any solutions?
... View more
10-16-2014
06:04 PM
|
0
|
3
|
2521
|
POST
|
I'm using the Side-Accordion map story template with 4 maps. After removing the getlegendLayers function from the template, I see entries in the legend on three of the maps for point (with stickpin,pushpin, and cross), and , line, area, and text that do not appear to be visibly related to any of my layers. The 4th map does not have them. I believe all of the maps and layers I'm using have editing turned off (but there are enough that working through all of them is at least annoying). There are no obvious differences in the settings between the three with and the one without. Any ideas how I go about getting rid of those items in the three maps? Thanks
... View more
05-23-2014
03:57 PM
|
0
|
0
|
348
|
Title | Kudos | Posted |
---|---|---|
1 | 08-13-2015 03:00 PM | |
2 | 08-12-2015 03:40 PM | |
1 | 08-13-2015 08:59 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|