|
POST
|
I know this is a super old thread, however recently I run into an case with this issue. Just in case, if anyone else still curious about how to use AGSJSONRequestOperation to consume a secured service and return JSON back. Here I shared with a snippet of code in swift: let cred = AGSCredential(user: "user1", password: "user1")
let queryParam = ["bbox": "-241.20512466608835,-27.80850864596666,51.688012394341115,67.48206676752923", "f":"pjson"]
let dataUrl = NSURL(string: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire_secure/MapServer")
let op = AGSJSONRequestOperation(URL: dataUrl, resource: "export", queryParameters: queryParam)
op.credential = cred!
op.completionHandler = { (obj:AnyObject!) -> Void in
print("completed return with this JSON: '\(obj)'")
}
op.errorHandler = { (err:NSError!) -> Void in
print(err)
}
AGSRequestOperation.sharedOperationQueue().addOperation(op)
} Hope this can help.
... View more
07-08-2016
11:28 AM
|
0
|
0
|
1013
|
|
POST
|
Hi John, In order to use Offline function to sync tables, you need to make sure that your relatedTable is also enable the sync function from ArcGIS Server side, otherwise it is not possible to sync or query those tables in offline mode. Prepare data for offline use—Documentation (10.3 and 10.3.1) | ArcGIS for Server Once the data schema is correct, you need to make sure when you download the offline gdb to loop through all the table's iD with an ArcGIS Server map or feature service by checking this Class 10.2.5: AGSMapServiceTableInfo Class Reference Here is a snippet code that you generate the gdb generate parameters: AGSGDBGenerateParameters* syncParams = [[AGSGDBGenerateParameters alloc] initWithExtent:self.mapView.visibleAreaEnvelope layerIDs:tableIds];
syncParams.syncModel = AGSGDBSyncModelPerLayer;
syncParams.outSpatialReference = [AGSSpatialReference spatialReferenceWithWKID:102100];
syncParams.queries = [self createLayerQueries]; You can use AGSGDBLayerQuery to control the download gdb with certain layers and tables, you can take a look about this class 10.2.5: AGSGDBLayerQuery Class Reference, for example: - (NSArray*)createLayerQueries
{
// RelatedTable Query
NSString* relatedTableQueryWhere = [NSString stringWithFormat:@"some generic query syntax"];
AGSGDBLayerQuery* relatedTableQuery = [[AGSGDBLayerQuery alloc] init];
customerQuery.layerID = kCustomerServiceIndex;
customerQuery.option = AGSGDBQueryOptionUseFilter;
customerQuery.useGeometry = NO;
customerQuery.whereClause = relatedTableQueryWhere;
return query;
}
... View more
06-17-2016
04:33 PM
|
0
|
2
|
1296
|
|
POST
|
Hi Roy, I did some extra test and found that the labelSymbol will renderer with view.on ("layerview-create") event. Here is a sample view to show the behavior: JS Bin - Collaborative JavaScript Debugging In 3.x, labelSymbol can renderer with either featurelayer click, load or map click. This is sample in 3.x JS Bin - Collaborative JavaScript Debugging We already logged a bug for this specific odd behavior: [BUG-000096838 - LabelSymbol3D not work correctly with featureLayer event]
... View more
06-01-2016
04:07 PM
|
1
|
0
|
2467
|
|
POST
|
Hi Bates, You can try to checkout this github repository to get some good start about how to configurable ArcGIS JavaScript application with Bootstrap: https://github.com/tomwayson/responsive-citizens And there is also a video presentation about Bootstrap: Taking Your Mapping UI and UX to the Next Level | Esri Video Hope this can help.
... View more
05-18-2016
11:58 AM
|
1
|
1
|
533
|
|
POST
|
The error message sounds like you not add the GraphicsLayer | API Reference | ArcGIS API for JavaScript into the Application. Or at least that application doesn't recognize this class "esri/layers/GraphicsLayer" Would you make sure your widget js file, the dojoLoader has this class and the order is also correct? For example: define([
'dojo/_base/declare',
'dojo/_base/html',
'dijit/_WidgetsInTemplateMixin',
'jimu/BaseWidget',
'dijit/layout/TabContainer',
"dijit/layout/ContentPane",
'jimu/utils',
'jimu/dijit/Message',
"dojo/Deferred",
"dojo/promise/all",
"esri/layers/GraphicsLayer",
],
function(
declare,
html,
_WidgetsInTemplateMixin,
BaseWidget,
TabContainer,
ContentPane,
utils,
Message,
Deferred,
all,
GraphicsLayer,
... View more
05-03-2016
03:05 PM
|
1
|
3
|
1124
|
|
POST
|
Hi Isra, Is your print service is public facing or just intranet? Why don't you try this print sample to see if you can print using your service: Print templates with esri.request | ArcGIS API for JavaScript Then using the developer tool from browser to compare the difference behavior from the sample print service versus yours. Also, I would recommend read this thread to see if you have the similar issue Print Task doesn't bring any result back
... View more
05-03-2016
12:07 PM
|
0
|
0
|
1710
|
|
POST
|
Hi Bruce, Not sure if it is related to your data or other setup issue. You can try to test with this sample Measure Polygon Area and Perimeter at least you can try if any "noData" value included in this sample with your data. Essentially, I assume that ImageServiceMeasure Widget is using this method AreasAndLengthsParameters | API Reference | ArcGIS API for JavaScript to calculate the Area. Hope this can help you to narrow down something at least.
... View more
05-03-2016
11:46 AM
|
0
|
1
|
1484
|
|
POST
|
Hi Chris, Based on the WMS standard documentation said: "A WMS client may negotiate with a server to determine a mutually agreeable protocol version. Negotiation isperformed using the GetCapabilities operation according to the following rules. A WMS client may negotiate with a server to determine a mutually agreeable protocol version. Negotiation is performed using the GetCapabilities operation (described in 7.2) according to the following rules. All service metadata shall include a protocol version number and shall comply with the XML DTD or Schema defined for that version. In response to a GetCapabilities request (for which the VERSION parameter is optional) that does not specify a version number, the server shall respond with the highest version it supports. In response to a GetCapabilities request containing a version number that the server implements, the server shall send that version. For more details, you can check this documentation and search "Version number negotiation" http://portal.opengeospatial.org/files/?artifact_id=14416 You can try to define the specific the parameters of a WMS GetCapabilities through request URL, if that WMS Layer allow you to do so, for example: http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer?version=1.1.1&request=GetCapabilities&service=WMS
... View more
04-26-2016
03:20 PM
|
0
|
0
|
1256
|
|
POST
|
You're welcome Yeah I think you are right, you can use ArcGIS REST API to check if user belongs to a Group ArcGIS REST API - Group User
... View more
04-26-2016
10:44 AM
|
1
|
0
|
1647
|
|
POST
|
Hi Kyle, Esri's OAuth is just for you to login it, it does not take care of permissions, the permission checking could be implemented inside your own client implementation of Oauth. You can take a look about this online documentation: What is OAuth 2.0? | ArcGIS for Developers In other words, OAuth 2.0 is not an identity provider because OAuth 2.0 does not know anything about users. It is not an authorization protocol because OAuth 2.0 does not care about what you authenticate or your permissions model. OAuth 2.0 only cares about HOW credentials are requested and transmitted over the network.
... View more
04-26-2016
10:37 AM
|
0
|
0
|
1647
|
|
POST
|
Hi Kyle, Have you tried to share the application within your group? You can open your browser developer tool to check what kind of response that you received when you running the application? Then we can trouble shooting the issue based on the error you get.
... View more
04-26-2016
09:36 AM
|
0
|
1
|
1647
|
|
POST
|
Hi Kyle, Have you tried to create groups so that it can restrict people who not in this group can't view webmap or other items? Create groups—ArcGIS Online Help | ArcGIS So technically you need use both OAuth and groups together to limit the members to view the app. Hope this can help.
... View more
04-25-2016
04:45 PM
|
1
|
3
|
1647
|
|
POST
|
Hi Don, Based on Rene Rubalcava 's code, here I combine this new Export CSV function within the dropdown menu in our FeatureTable sample. You can try view this live demo http://jsbin.com/bubutucoqa/edit?html,output using Chrome browser.
... View more
04-25-2016
01:26 PM
|
2
|
0
|
4628
|
|
POST
|
Hi Don, You have to write code to implement this new function. Currently FeatureTable widget doesn't have csv export function. Essentially, you need to get all the data that loaded in dgrid and export to csv file. GitHub - kfranqueiro/dojo-smore: Dojo stores are great! Here, have s'more.
... View more
04-21-2016
01:39 PM
|
0
|
1
|
4628
|
|
POST
|
Hi Don, Here is a sample shows how to Extract Data from a map service: :"http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=gp_clipasync" Basically, you need to use "esri/tasks/Geoprocessor". which means you have to create your own geoprocessing tool and then publish as gp service. For more information, you can take a look about this online documentation about "geoprocessing specifically in ArcGIS Server 10.2 version" http://resources.arcgis.com/en/help/main/10.2/index.html#//002s00000002000000 Or 10.3 ArcGIS Server: http://server.arcgis.com/en/server/10.3/publish-services/windows/a-quick-tour-of-publishing-a-geoprocessing-service.htm Hope this can help.
... View more
04-21-2016
09:55 AM
|
1
|
3
|
4628
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-20-2015 10:15 AM | |
| 1 | 07-31-2015 08:53 AM | |
| 1 | 01-28-2016 04:55 PM | |
| 1 | 02-22-2016 02:07 PM | |
| 1 | 05-20-2015 04:54 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-27-2025
09:24 AM
|