|
POST
|
For the life of me I cannot get the new FloorFilter widget working. My web map has a Levels layer, and a Facilities layer, and they have the necessary fields and attributes per documentation, but the floor filter widget does not light up and I receive the error "Facilities and Levels are required for the Floor Filter widget". Any tips or tricks? Thanks! JB
... View more
05-03-2021
12:56 PM
|
0
|
4
|
2400
|
|
POST
|
In my experience its a bit of a rabbit hole to program your own snapping manager from scratch, but good news is it looks like more snapping capability is on its way: https://www.esri.com/arcgis-blog/products/js-api-arcgis/announcements/whats-new-in-the-arcgis-api-for-javascript-version-4-18/ Enable self snapping through the new SketchViewModel.snappingOptions property and toggle it during a draw operation. This is the first step towards enabling full feature snapping in both 2D and 3D editing workflows. This support will be expanded incrementally over subsequent releases.
... View more
03-05-2021
12:12 PM
|
0
|
1
|
4313
|
|
POST
|
example where you can define a color ramp to apply: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-imagery-renderer
... View more
03-01-2021
02:30 PM
|
0
|
1
|
3366
|
|
POST
|
use blend modes: Intro to layer blending | ArcGIS API for JavaScript
... View more
03-01-2021
11:57 AM
|
0
|
0
|
3379
|
|
POST
|
Hi Randy - Explicitly settings the "fields" property for both cursors did the trick. Thanks! JB
... View more
10-27-2020
06:29 AM
|
0
|
0
|
7990
|
|
POST
|
Hi Randy, Yes input fc and output tc field names/types match along with the geometry type and spatial reference. My tc geodatabase is a file copy of my fc geodatabse so they are identical. The example you provided only copies the field contents, whereas I need to alter field contents in the target based on some algorithm. Thanks! JB
... View more
10-27-2020
04:05 AM
|
0
|
0
|
7990
|
|
POST
|
Hi Dan - Sorry that was just a typo (had cleaned up my code sample for the post, but missed that). I am aware of the examples. My code sample works if I remove SHAPE@ and row[1], i.e.: input = arcpy.da.SearchCursor(fc, "*", where_clause=(expression)) output = arcpy.da.InsertCursor(tc,['risk']) for row in input: risk_factor = row[5] if risk_factor == "423123fasq": output.insertRow(["high risk"]) . ... the above works, but produces output with no geometries of course. When I try to add the geometries I get the crash. Therefore I believe I am handling geometries incorrectly in some way. .
... View more
10-27-2020
03:59 AM
|
0
|
0
|
7990
|
|
POST
|
I am attempting to insert a feature into feature class based on feature in another feature class (both have identical structure) like this: input = arcpy.da.SearchCursor(fc, "*", where_clause=(expression)) output = arcpy.da.InsertCursor(tc,['risk','SHAPE@']) for row in cursor: risk_factor = row[5] if risk_factor == "423123fasq": updateRows.insertRow([["high risk",row[1]]) ... but I think I am not handling geometry correctly in insertRow as I get error "TypeError: cannot alter multipart geometry type". They are polyline features. Any ideas how to handle geometry correctly in this case? Thanks!
... View more
10-26-2020
06:03 PM
|
0
|
5
|
8051
|
|
POST
|
I am looking to implement a tool that exports an image of the map view clipped by a user drawn rectangle. That is to say, draw a box around something in the map view, and export a little .BMP of only what you drew the box around. So far I am using sketch for this and can get the geometry of the sketched rectangle. I can export a .BMP that is the same size as sketched rectangle which is great, but can't see how to export only what's inside the rectangle. Any ideas how to accomplish this via the Pro SDK? So far I have: protected override Task<bool> OnSketchCompleteAsync(Geometry geometry) { return QueuedTask.Run(() => { //Create BMP format with appropriate settings BMPFormat BMP = new BMPFormat(); BMP.Height = geometry.Extent.Height; BMP.Width = geometry.Extent.Width; BMP.OutputFileName = "c:\\example\\output.bmp"; MapView.Active.Export(BMP); MessageBox.Show("export complete"); return true; }); } }
... View more
10-20-2020
11:44 AM
|
0
|
1
|
1094
|
|
POST
|
Hi Undral - Yes I see what you see. Your background image of a single black star is not stretching to fill the the extent of the sketched graphic, is not rotating as as the sketched graphic is rotated, and does not scale as the sketched graphic is scaled. I am looking to see if I can use the sketch features to bring in a scanned map, allow the the user to translate, rotate, and scale it into place, and then for example use some other tools to digitize features from the scanned map. Similar to this awesome example from Dakota County MN, https://www.arcgis.com/home/item.html?id=68f3890767a843c0940eb7e9840c5244 only using the new JS API, no WAB, and no third party libs for interactive shape control on the display. Thanks! JB
... View more
10-20-2020
11:36 AM
|
0
|
0
|
1948
|
|
POST
|
Hi Undral - Running your example, the picturefillsymbol does not stretch to fill the sketched geometry, and does not scale or rotate as the sketch graphic is edited. It always says the same rotation and scale, and repeats to fill the extent of the geometry.
... View more
10-20-2020
09:22 AM
|
0
|
1
|
1948
|
|
POST
|
Drawing a rectangle with the JS API sketch widget, it is possible to make a PictureFillSymbol for a sketched rectangle stretch to 100% of the drawn rectangle width and height, including when moved, rotated, and scaled? Thanks! JB
... View more
10-20-2020
08:04 AM
|
0
|
5
|
2021
|
|
POST
|
How can you get height and width in screen pixels of a rectangle drawn with the sketch widget?
... View more
10-20-2020
07:57 AM
|
1
|
2
|
1796
|
|
POST
|
found a solution here that modifies PopupManager.js: ArcGIS Online - Order Popups same as Legend … and then modifying sortFeatures: function(features) as needed for my particular sorting requirements. Seems to work great!
... View more
06-09-2020
08:42 AM
|
0
|
0
|
1340
|
|
IDEA
|
Web AppBuilder is great for making small focused apps enabling real people to get work done using maps. Often end users of WAB apps are not trained Esri ArcGIS Online professionals. Therefore the default sign-in is highly confusing to users. The request is for the following: add a supported ability to replace the text "please sign in to access the item on ArcGIS Online" and the 32 char hexadecimal item id with the web application name and a logo add optional "forgot password' link at the bottom there are some unsupported CSS hacks that can help a little but not for things like adding a forgot password link button
... View more
02-28-2020
03:55 AM
|
0
|
0
|
329
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-11-2025 08:42 AM | |
| 2 | 05-14-2023 04:09 AM | |
| 1 | 11-02-2023 05:57 AM | |
| 1 | 09-15-2023 03:25 PM | |
| 1 | 05-24-2023 10:36 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-30-2025
10:20 AM
|