POST
|
Thanks! Is that from Esri Professional Services? Just wondering how safe that is to use and login on. Also, right after I posted the question I realized the 'data' endpoint in the api would work: https://arcgis.com/sharing/rest/content/items/{itemId}/data?f=json&token={tokenId}
... View more
11-27-2023
07:11 AM
|
0
|
1
|
532
|
POST
|
A while back when ArcGIS Online and Portal were first available there was a way to view the items in a more admin-centric UI mode where you could actually see the JSON value/markup of the web map object. The AGOL item would open in a form, where all the item properties (the json markup, tags, credits, etc) were in editable form fields. I've forgotten how to access that interface and it may not even exist any longer (or maybe it was just a feature in the locally installed Portal version?). Does any one know of what I'm referring and how to get to that view in ArcGIS Online? Basically I just want an easy way to inspect the JSON of a web map without having to use the browser debugger tools to extract it from a request. Thanks,
... View more
11-27-2023
06:53 AM
|
0
|
3
|
591
|
POST
|
Unfortunately, your work around did not work for me. I tried it with both a FGDB and a Shapefile export. Neither had the style set at the service level when they were re-published. Maybe I'm missing a step? Appreciate the feedback.
... View more
08-17-2022
07:55 AM
|
0
|
0
|
345
|
POST
|
Hello, I would like to change the default renderer of a hosted feature service after it has been created in ArcGIS Online. I used to be able to do this by going to the 'Visualization' tab from the item's overview page and styling the layer. Now, when I do this it creates an abstracted view (layer view??) and the feature service layer's default renderer (drawingInfo) remains unchanged. And yes, when I open these items in a web map I see the style I attempted to set in the Visualization tab, but that is not my workflow. I am adding these feature service layers at runtime in my client-side app and would like to have a default style set. Additionally, I'm using a developer's account without access to ArcGIS Pro (where I could set the style up and then upload right from ArcGIS Pro). I am uploading zipped file geodatabases and need to set the default style after the layer has been created, which I used to be able to do. Any guidance or workarounds is much appreciated. Thanks, I need to set this after the service has been created.
... View more
08-16-2022
06:19 AM
|
0
|
2
|
404
|
POST
|
Gotcha, I understand now. Thanks for the context. Yes, you should be able to do this. In the samples for Vue and React they are not passing in the entire widget to the view. They are only passing in a reference to the DOM element that the widget uses. In your case it would be something like: this.view.ui.add(document.getElementById('widgetDiv'), position); or maybe this would work, but I haven't used Angular for a year or two: this.view.ui.add(widget.container, position); Good luck.
... View more
06-30-2021
06:04 AM
|
1
|
0
|
2915
|
POST
|
I saw It's possible to create a React and VueJs component and use it as a widget. But is it possible to use Angular @ Component for creating custom widgets. Yes...if I understand your question correctly. You can use Angular to create your own custom components (whatever you want to call them; widgets, modules, etc). These components you create will not be exactly the same as the ArcGIS for JavaScript Widgets that are built around Dojo, but you can create custom components in Angular that use the ArcGIS for JavaScript API in the component logic. Extra question: Is it possible to use an Angular component for displayContent (popupTemplate) Yes...again, if I understand your question correctly, you can use Angular (or any other client-side framework) to set the 'content' property of the popupTemplate. You will need at least a basic/introductory understanding of JavaScript (or TypeScript), the Angular framework, and ArcGIS for JavaScript API to accomplish these things.
... View more
06-30-2021
05:37 AM
|
0
|
1
|
2918
|
POST
|
Does it correct the position after you close and re-open the popup? If so, maybe you can programmatically close the popup before the edits are applied and re-open it after the successful call to applyEdits.
... View more
06-30-2021
05:26 AM
|
0
|
0
|
363
|
POST
|
You're welcome. Yes, this question does come up a lot with my clients, and unfortunately the answer is not what anyone wants to hear. However, I do understand the policy from Esri's perspective. They would being giving away their product for next to nothing if they allowed just one licensed user to serve unlimited private user data to other users. The way it was described to me by the Esri rep was; you can buy Arcgis Online for a lower price (~ $5000) and add users as you need (anywhere from $50-500 per user license depending on license/role type) or you buy ArcGIS Server and can use that however you want. One potentially positive feature of the Arcgis.com path though; it was explained to me that we could add/remove users as needed, as much as needed (infinitely). So, for our value-added apps we only need enough licenses for the simultaneous users, not for every app user in our system. Additionally, Esri exposes pretty much all the Arcgis.com management functions through the REST API so you can develop creative solutions to manage your active licenses (e.g. add and remove users as necessary to keep your licenses count at or under your simultaneous users count). Also, like you mentioned in your first post; if you don't need each user to have their own private content, then the developer account might be enough. Cheers,
... View more
06-30-2021
05:17 AM
|
1
|
1
|
1731
|
POST
|
While the method you described works, it is likely violating the Terms of Use of the ArcGIS Online account as you are embedding a single named user to access private content on behalf of other users. https://www.arcgis.com/home/termsofuse.html See section 2.5.b. Value-added Applications. If you want anonymous users to access content, then the content needs to be publicly shared. Otherwise, Esri wants a (licensed) named user for each individual that is accessing the private content. This is how it's been explained to me directly from Esri customer reps. That said, I would contact your Esri customer rep and get clarification directly from them regarding your account and application. Edit: The answer above is for organizations hosted by Esri on Arcgis.com. If you have the on-site install of ArcGIS Enterprise or ArcGIS Portal then you can use the method you described without violating the software license agreements from what I understand. But again, your Esri rep can confirm.
... View more
06-29-2021
11:54 AM
|
1
|
1
|
1747
|
POST
|
This worked for me: string url = "{{...URL...}}/FeatureServer/0/applyEdits";
string adds = "[{\"geometry\":{\"x\":-118,\"y\":33},\"attributes\":{\"Name\":\"name\",\"Type\":\"type\",\"Column3\":\"value3\"}}]";
var inputParms = new Dictionary<string, string>();
inputParms.Add("adds", adds);
//inputParms.Add("updates", "");
//inputParms.Add("deletes", "");
//inputParms.Add("attachments", "");
inputParms.Add("f", "json");
//inputParms.Add("token", "");
var input = new FormUrlEncodedContent(inputParms);
HttpClient client = new HttpClient();
var response = client.PostAsync(url, input).Result;
var responseString = response.EnsureSuccessStatusCode().Content.ReadAsStringAsync().Result; If you have a secure service, then the token parameter will need to be populated with a valid security token. responseString contains the serialized JSON string that you can work with. In my testing the result was {"addResults":[{"objectId":10,"uniqueId":10,"globalId":null,"success":true}],"updateResults":[],"deleteResults":[]} Other resources: https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer-.htm https://stackoverflow.com/questions/4015324/how-to-make-an-http-post-web-request https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm
... View more
06-21-2021
01:42 PM
|
0
|
0
|
2354
|
POST
|
You may be able to apply a definitionExpression to the featureLayer that is associated with the table for the desired results. If you don't want to modify the featureLayer that is displayed on the map then try creating an in-memory only featureLayer with the desired definitionExpression to link to the featureTable.
... View more
06-17-2021
05:54 AM
|
0
|
2
|
1742
|
POST
|
Esri folks, any advice on this? It is causing me some major issues as well. My load time methods can't be debugged as the debugger is frozen processing the nearly 2000 issues. Anyone know of a way to disable the debugger from logging these issues?
... View more
06-15-2021
06:42 AM
|
2
|
0
|
3483
|
POST
|
The code works for me, but what was not clear to me from that sample was when to instantiate the Portal item. Here is a simple function I wrote that works in my application. You have to initialize the Portal object after the login is successful, using the checkSignInStatus(); After the _portal.load() is successfully executed, then my _portal object is populated with all the Portal properties for the sign-in user, including the user object (_portal.user). Hope this helps... var _portal = null,
_oAuthInfo = null;
*************************
registerApplication: function () {
_oAuthInfo = new OAuthInfo({
appId: 'abc123xyz'
});
arcgisIdentityManager.registerOAuthInfos([_oAuthInfo]);
arcgisIdentityManager.checkSignInStatus(_oAuthInfo.portalUrl + "/sharing")
.then((r) => {
console.log(r);
_portal = new Portal();
_portal.load();
});
}
... View more
03-01-2021
06:02 AM
|
0
|
1
|
1278
|
POST
|
You can call the .open() method of the mapView's popup and pass in the feature or content you want to display. Might be something like this... mapView.popup.open({ location: feat[0].geometry, features: [feat[0]] }); https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#popup https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open
... View more
02-19-2021
11:16 AM
|
2
|
1
|
876
|
POST
|
Unfortunately, what you are describing is likely a violation of the terms of use... If you are hardcoding a single user's credentials in an application that multiple people will use to access private content, then that will be a violation of the Arcgis.com Terms of Use. See section 2.5: https://www.arcgis.com/home/termsofuse.html
... View more
02-16-2021
05:47 AM
|
0
|
0
|
889
|
Title | Kudos | Posted |
---|---|---|
1 | 06-30-2021 05:17 AM | |
1 | 06-30-2021 06:04 AM | |
1 | 06-29-2021 11:54 AM | |
2 | 06-15-2021 06:42 AM | |
2 | 02-19-2021 11:16 AM |
Online Status |
Offline
|
Date Last Visited |
02-29-2024
02:22 PM
|