POST
|
use blend modes: Intro to layer blending | ArcGIS API for JavaScript
... View more
03-01-2021
11:57 AM
|
0
|
0
|
1447
|
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
|
5255
|
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
|
5255
|
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
|
5255
|
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
|
5316
|
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
|
587
|
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
|
1020
|
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
|
1020
|
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
|
1093
|
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
|
1073
|
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
|
712
|
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
|
194
|
POST
|
A WAB developer app accessing a web map with feature layer shared with a group produces a sign-in dialog showing information that is non-sensical and confusing for end users that are not trained GIS professionals or ArcGIS organization admins. That can be mitigated somewhat via CSS. However the sign-in dialog is also missing typical links for forgotten username or PWD. Does anyone have an approach for adding those typical link buttons back in? Commonly they would be at the bottom of the login dialog underneath the OK and Cancel buttons. Thanks! John
... View more
01-30-2020
10:57 AM
|
0
|
0
|
196
|
POST
|
I am also searching for how to do this. The default appearance is ok for a software developer or GIS professional who is also an ArcGIS organization administrator. But confusing for a normal human user of a simple web mapping app who might not know what an "item" is, what the 32 char hex code is supposed to mean, or even who "ArcGIS Online" is (as apposed to the named AGOL organization they are working in). The portal name and item id can be turned off via CSS: .resLink { visibility: hidden; !important; } .serverLink { visibility: hidden; !important; } … but that still leaves the confusing text "Please sign on to access the item on". For an ArcGIS JavaScript API app that text can be changed with: esri.bundle.identity.info = "Text Here. ${server} ${resource}"; // ${server} ${resource}" hidden via CSS … but I have not worked out yet where to put that in any of the WAB app js files. JB
... View more
01-29-2020
01:55 PM
|
0
|
0
|
428
|
POST
|
Using the ArcGIS REST API via the ArcGIS REST JS wrappers, I can see how to get a list of all users in a group via the group userList operation which only returns username, fullname, membertype,thumbnail, and joined. I can see how to get additional properties like email, description (bio), and tags via the username operation, but this can only return one single. I can't work out how to combine the two, and am looking for a code sample to get a list of users in a group, and then iterate though the list to additional get the remaining user properties. Any pointers would be most appreciated!
... View more
09-06-2019
09:54 AM
|
0
|
0
|
229
|
Title | Kudos | Posted |
---|---|---|
1 | 11-02-2023 05:57 AM | |
1 | 09-15-2023 03:25 PM | |
1 | 05-24-2023 10:36 AM | |
1 | 11-03-2023 01:54 PM | |
2 | 09-29-2023 06:18 AM |
Online Status |
Offline
|
Date Last Visited |
Tuesday
|