POST
|
We have search arcgis online function and need to add search result (portal item) to map.
... View more
11-06-2019
05:58 AM
|
0
|
2
|
714
|
POST
|
I saw a portal item https://www.arcgis.com/home/item.html?id=690d7aecc9d643b2825e75587992040e and want to add it to my map (arcgis javascript API 4.11) using the following codes but it failed: Layer.fromPortalItem({ portalItem: item }).then(function(layer) { webmap.add(layer);
}); I think this is due to the portal item has layer index in the URL and the Javascript API Layer.fromPortalItem function cannot handle this. The portal item display fine in arcgis online map viewer. Can anyone help with this?
... View more
11-05-2019
12:24 PM
|
0
|
4
|
929
|
POST
|
Thanks! adding "fields: layer.layerDefinition.fields" solved the issue.
... View more
06-21-2019
05:23 AM
|
0
|
0
|
723
|
POST
|
I use the following sample to add a shapefile to FeatureLayer but attributes won't carry over. ArcGIS API for JavaScript Sandbox Any idea how I can retain all attributes from shapefile?
... View more
06-20-2019
01:46 PM
|
0
|
3
|
907
|
POST
|
When add DOM node to popupTemplate, the textbox cannot be focused. The issue only exist in version 4.6. I attached the sample codes. Run the sample codes in a browser, click on the point graphic. The infobox will popup. click on the textbox within the infobox. when you type, the cursor will go away after you type each char. If you switch to 4.5, the textbox works normally.
... View more
02-14-2018
11:06 AM
|
0
|
0
|
300
|
POST
|
In v3.x, we can use map.on("extent-change", function(){}); But in v4.x, it seems the event "extent-change" no longer exist. I tried to use: view.watch('extent', function(newextent, oldextent) { console.log(newextent); }); But when I zoom once, the above console.log line executed 10 times. I don't want to execute a function 10 times when only pan/zoom once. Any idea how to do "extent-change" in v4.x?
... View more
01-11-2018
02:29 PM
|
0
|
2
|
3487
|
POST
|
I have the exact same issue with print task in javascript API. Could you let me know how do you setup proxy for print service? Thanks!
... View more
10-28-2014
11:08 AM
|
0
|
1
|
246
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|