|
DOC
|
James, There is no configuration option, but you can modify the code in the Widget.html. Line 35 in the latest version would add "checked" after the type="checkbox". 34: <div style="margin-bottom:7px;"> 35: <input data-dojo-attach-point="showTotals" type="checkbox" checked /> 36: <label data-dojo-attach-point="showTotalsLabel">${nls.showTotals}</label> 37: </div> Regards, Tom
... View more
04-27-2017
08:49 AM
|
0
|
0
|
8934
|
|
POST
|
Chelsea, They are still in composite hierarchy order, not score order. It would be nice if there were a REST service option for setting the order as needed. Regards, Tom
... View more
04-25-2017
08:57 AM
|
0
|
2
|
1732
|
|
POST
|
Greetings, I ended up contacting support to see why this wasn't possible. The answer was that this was by design. The renderer for a heatmap requires a schema for possible weighting fields and uses the geometry type as set in a featurelayer. Support was also adding a documentation enhancement that would better describe that the renderer should be used with a featurelayer. I did find that you can use a unique value renderer with a graphicslayer, so this does seem a bit inconsistent. It would be nice to render a heatmap in a graphicslayer just based on the geometry and without the ability to use a weight field. I am going to work on moving my table data into a feature collection that can be used with a featurelayer so it can render a heatmap. Support pointed me to an example that will be helpful. Feature collection | ArcGIS API for JavaScript 3.20 Regards, Tom
... View more
04-19-2017
11:36 AM
|
0
|
0
|
1235
|
|
POST
|
Greetings, I have created an app that we use for public safety public disclosure requests. The app uses a geoprocessing script that queries a database (not geodatabase) that returns rows that have lat/lon coordinates. Points are then created with the attributes and added to a GraphicsLayer and drawing the layer with a SimpleRenderer to begin with. I have added a couple of buttons that allow the user to change how the points are displayed. This displays fine with a SimpleRenderer or UniqueValueRenderer, but won't work with a HeatmapRenderer. There are no errors in the console, just a blank map. I have read the documentation and there isn't anything that says a HeatmapRenderer won't work with GraphicsLayer. I have seen some similar posts that don't actually answer this question. The code for this seems pretty straightforward. Here are some snippets for changing the renderers: function displayBasicPoints() {
var marker = new SimpleMarkerSymbol();
marker.setColor(new Color([168, 0, 0, 0.25]));
var resultsRenderer = new SimpleRenderer(marker);
resultsLayer.setRenderer(resultsRenderer);
resultsLayer.refresh();
}
function displayHeatmap() {
resultsLayer.spatialReference = map.spatialReference;
var hr = new HeatmapRenderer();
resultsLayer.setRenderer(hr);
resultsLayer.refresh();
} You can also view the app at: DEX Queries Thanks very much for any help! Regards, Tom
... View more
04-05-2017
03:08 PM
|
0
|
1
|
1996
|
|
DOC
|
Measure Widget Users! I have posted an update that fixes a problem with editing measures. The widget was using a couple of event listeners, but recently one was being ignored. This has been fixed and the widget is functioning properly now.
... View more
03-30-2017
04:20 PM
|
1
|
0
|
8934
|
|
DOC
|
Jacqueline, Thanks very much! You can override the default value by adding 2 lines of below line 124 in the measure Widget.js. It will look like this: this.textSymChooser.textPreview.innerHTML = "Sample Text"; // line 124 this.textSymChooser.textFontSize.value = 12; this.textSymChooser.textFontSize.textbox.value = "12"; Regards, Tom
... View more
03-28-2017
02:21 PM
|
0
|
0
|
8934
|
|
POST
|
Greg, Sorry for the late reply. I am on the road today and have limited access to the internet. I would set a breakpoint on the last line and then you can examine the values for both the pl and newPL variables. The code looks correct, the pl variable may not have a value set. Regards, Tom 46° 36' 17.86"N 120° 30' 18.23"W
... View more
03-21-2017
10:19 AM
|
0
|
0
|
1736
|
|
POST
|
Greg, Probably the simplest solution would be to reverse the order of the path points in the polyline used. I have updated my example to show how to do this. Here is a function that will reverse the path order: function reversePolylineOrder() {
var newPL = new Polyline(map.spatialReference);
var newPath = [];
for (var i = pl.paths[0].length - 1; i >= 0; i--) {
newPath.push(pl.getPoint(0, i));
}
newPL.addPath(newPath);
pl = newPL;
} Regards, Tom
... View more
03-20-2017
10:59 AM
|
1
|
2
|
1736
|
|
POST
|
Brian, I have the same problem. I have discovered that popup configuration is disabled for all layers if you try and edit just one layer that doesn't have the shape field at the bottom. I was happily configuring popups for several layers and stumbled on one layer that didn't have the shape field at the bottom. At that point I couldn't configure any popups in my webmap whether the shape field was at the bottom or not. I could save my webmap, do a hard refresh with cache flush and then I could configure popups again. Not the most elegant way to get through many layers to configure popups. Regards, Tom
... View more
03-17-2017
11:22 AM
|
3
|
1
|
3276
|
|
POST
|
André, Are you wanting to highlight the selected features on the map? You can easily highlight them by setting a selection symbol. Here is the documentation that might help with that: FeatureLayer | API Reference | ArcGIS API for JavaScript 3.19 Regards, Tom
... View more
02-27-2017
10:59 AM
|
1
|
0
|
874
|
|
POST
|
Jason, Thanks for the code, that gives me some context. Maybe try: tiff = r'C:\Temp\my_tif.tif' png = r'in_memory\my_png.png' CopyRaster_management(tiff, png, pixel_type='32_BIT_SIGNED', format='PNG') b64 = base64.b64encode(png.read()) Regards, Tom
... View more
02-24-2017
01:13 PM
|
0
|
0
|
2701
|
|
POST
|
Jason, It should already be open, I was suggesting that you read it. Could you provide the code you have attempted? Regards, Tom
... View more
02-24-2017
11:48 AM
|
0
|
2
|
2701
|
|
POST
|
Jason, I had done something similar, but was loading an image file from disk. To encode it I had to read it. Something like: with open(driverPhoto, "rb") as imageFile: encodedPhoto = base64.b64encode(imageFile.read()) Perhaps you have to do a read as well. Regards, Tom
... View more
02-24-2017
11:05 AM
|
0
|
4
|
2701
|
|
POST
|
Andre, Looking at your query, it looks like you are trying to do a wildcard selection of a date field. Please try using a more specific selection like: query.where = "nud = '" + userVal + "'"; Date fields can be a bit tricky to work with as they may contain date/time values so finding an exact match would mean also have to specify a time or time range. Something like: query.where = "nud between '" + userVal + " 00:00' and '" + userVal + " 23:59'"; Regards, Tom
... View more
02-24-2017
08:58 AM
|
2
|
3
|
874
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-19-2023 08:13 AM | |
| 1 | 02-22-2023 09:12 AM | |
| 1 | 05-15-2015 03:11 PM | |
| 1 | 02-10-2015 11:52 AM | |
| 1 | 01-19-2017 02:01 PM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
04:50 PM
|