POST
|
We are using the 4.6 version of the API. We are wanting to use the service URL to retrieve the portal Item. You can retrieve the feature layer without the popup with the fromArcGisServerUrl method or fromPortalItem method which returns the popup. I'm trying to use the service URL to return the portalItem/feature layer with the popup.
... View more
03-13-2018
02:58 PM
|
0
|
1
|
507
|
POST
|
There doesn't seem to be a way to query a portal item by service URL. You can set the URL property of the portal item, but that doesn't return anything.
... View more
03-12-2018
11:42 AM
|
0
|
3
|
507
|
POST
|
I can load a feature layer, but the popup data associated with the FeatureLayer does not work. I can load the same item by calling fromPortalItem and it has popups. Is there a way to load a FeatureLayer by URL instead of ID that will allow popups?? Here's a code example of a FeatureLayer I created for a coffee shop in Phoenix. If I query by id, the popup shows, but if I query by the service URL, the coffee shop shows but not the popup. SANDBOX EXAMPLE <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> <title>FeatureLayer - 4.6</title> <link rel="stylesheet" href="https://js.arcgis.com/4.6/esri/css/main.css"> <script src="https://js.arcgis.com/4.6/"></script> <style> html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } </style> <script> require([ "esri/Map", "esri/views/MapView", "esri/layers/Layer", "esri/layers/FeatureLayer", "esri/widgets/Popup", "dojo/domReady!" ], function( Map, MapView, Layer, FeatureLayer, Popup ) { var map = new Map({ basemap: "hybrid" }); var view = new MapView({ container: "viewDiv", map: map, extent: { // autocasts as new Extent() xmin: -9177811, ymin: 4247000, xmax: -9176791, ymax: 4247784, spatialReference: 102100 } }); /******************** * Add feature layer ********************/ // Carbon storage of trees in Warren Wilson College. var featureLayer = new FeatureLayer({ url: "https://services5.arcgis.com/QGM0VeSNqhUanPGN/arcgis/rest/services/Coffee_Shops__Custom_Data_Sample/FeatureServer" }); map.add(featureLayer); }); </script> </head> <body> <div id="viewDiv"></div> </body> </html>
... View more
03-08-2018
09:26 AM
|
0
|
5
|
650
|
POST
|
My "this" keyword is not available.... Am I the only one? Using AngularJS.
... View more
02-28-2018
03:10 PM
|
0
|
0
|
460
|
POST
|
Hey Chris wondered if you had any other thoughts? chrissmith
... View more
02-01-2018
07:43 AM
|
0
|
0
|
845
|
POST
|
Unfortunately this is for on prem servers. I don't see this as part of the esri API. Overview | API Reference | ArcGIS API for JavaScript 4.6
... View more
02-01-2018
07:42 AM
|
0
|
0
|
845
|
POST
|
I'll try to find this in the API and see if this has an affect.
... View more
02-01-2018
06:58 AM
|
0
|
0
|
3404
|
POST
|
This is for on-prem. I am trying to accomplish this through ARCGis cloud services only. Our webapp calls into the proxy which then calls the print service.
... View more
01-31-2018
07:36 AM
|
0
|
3
|
3404
|
POST
|
Do you have anything set-up for allowedReferers or mustMatch? <ProxyConfig allowedReferers="*" mustMatch="true">
... View more
01-30-2018
12:42 PM
|
0
|
8
|
3404
|
POST
|
I saw this question asked in a different part of the forums and it was never answered. I am having the same issue. I am trying to use the print widget to print a secure map (per the below example of a secure map). None of our stuff is on-prem, it's all ESRI cloud. I am using a proxy from GitHub - GitHub - Esri/resource-proxy and all calls work fine - except the print widget when attempting to export a SECURE map. I have ensured my credentials were working correctly. {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map Task : Layer \"2016 USA Population Density\": Unable to connect to map server at https://demographics6.arcgis.com/arcgis/rest/services/USA_Demographics_and_Boundaries_2016/MapServer.\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}} Thanks in advance, T
... View more
01-30-2018
12:05 PM
|
0
|
11
|
7090
|
POST
|
I have this problem as well. Did anyone else resolve this?
... View more
01-30-2018
11:56 AM
|
0
|
0
|
639
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|