POST
|
Brandon Price, i don't have my working computer with me so its hard for me to get some sample code but basically there are a few options. you can pass data via localstorage you can alternatively also use javascript, see a old code example of my var win = window.open(this.widgetPath + "StreetView.html","_blank",
"width=" + this.config.svWidth + ",height="+
this.config.svWidth+",TOP=0,LEFT=0");
if(!win){
alert("Make sure your pop up is unblocked");
return;
}
win.onload = function() {
var point = new Point(evt.mapPoint.x,evt.mapPoint.y,me.map.spatialReference)
win.initialize(0,point.getLatitude(),point.getLongitude());
win.setPanoramaCallback(lang.hitch(me,callback));
win.setPositionCallback(lang.hitch(me,me.callbackPositionChange))
win.setClose(lang.hitch(me,me.closeThisWidget));
};
in your iframe
function initialize(heading,lat,lon) {
var pegPoint= {lat: lat, lng: lon};
panorama = new google.maps.StreetViewPanorama(
document.getElementById('pano'), {
position: pegPoint,
pov: {
heading: heading,
pitch: 10
}
});
}
... View more
09-25-2019
07:24 PM
|
0
|
0
|
915
|
POST
|
Hi Christopher Mugdan, would you be able to kindly mark the answer as correct if the answer helps to answer your question so that it may assist others in the future. This will also move the question into the "answered" bucket. Thanks
... View more
09-25-2019
06:56 PM
|
2
|
0
|
580
|
POST
|
Hi, OAuth2 Root—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers which uses the standard oauth2 workflow. there are alot of articles on OAuth 2 and their principles will apply. for example - https://itnext.io/an-oauth-2-0-introduction-for-beginners-6e386b19f7a9 Hope that helps
... View more
09-23-2019
05:04 PM
|
2
|
2
|
580
|
POST
|
Hi, looks like it didn't send the preflight request as it is a simple request. I am stumped sorry
... View more
09-23-2019
07:05 AM
|
0
|
0
|
1652
|
POST
|
Hi, if you keep the network tab open and click on f5 to refresh. Then you right click to save as har file, I can have a look.
... View more
09-23-2019
05:26 AM
|
0
|
2
|
1652
|
POST
|
It should be initiated at the beginning before all the actual request.
... View more
09-23-2019
04:50 AM
|
0
|
4
|
1652
|
POST
|
The response header contain what the setting on your server is and the request header shows what is being send. They have to match up to avoid CORS error Hi I am doing this on my mobile phone so I can only search for a example online. See screenshot below. Request method of type options. There should be a response header and a request header. This is a preflight request <image1.png>
... View more
09-23-2019
03:59 AM
|
0
|
6
|
1652
|
POST
|
Hi I am doing this on my mobile phone so I can only search for a example online. See screenshot below. Request method of type options. There should be a response header and a request header. This is a preflight request
... View more
09-23-2019
03:56 AM
|
0
|
0
|
2737
|
POST
|
Matthieu Thery, with all CORS error, the way to debug your issue is to look at the preflight request. If you look at your network traffic, there is a OPTION request. look at your request header and then the response header and compare. It will tell you what is missing and what is causing your CORS error. If you take a screenshot, I am happy to assist.
... View more
09-22-2019
06:28 AM
|
0
|
9
|
2737
|
POST
|
As Ben Elan suggested, using the Esri proxy is probably the easiest way to approach this.
... View more
09-22-2019
06:24 AM
|
0
|
0
|
3753
|
POST
|
Hi, you need to check the server for server log by setting the log mode to debug. This will establish if the error occur on client before it hits the server or after it hits the server. The log manger is on manager page -> log tab
... View more
09-15-2019
03:46 PM
|
0
|
0
|
522
|
POST
|
Hi ADITYA KUMAR, the data will be photoInfo.data = arrayUtils.map(resp, function(p) { var latlng = new Point(parseFloat(p.lng), parseFloat(p.lat), wgs); var webMercator = webMercatorUtils.geographicToWebMercator(latlng); var attributes = { "Caption": p.caption, "Name": p.full_name, "Image": p.image, "Link": p.link }; return { "x": webMercator.x, "y": webMercator.y, "attributes": attributes }; so basically an array with the following structure. { "x": 120, "y": -32, "attributes": { "Caption": "caption", "Name": "a name", "Image": small.jpg, "Link": "http link" } };
... View more
09-11-2019
07:54 PM
|
0
|
0
|
1922
|
POST
|
Hi, you can still access the symbol as part of the renderer object. It will be something like layer.renderer.defaultSymbol or something along that line.
... View more
09-11-2019
07:49 PM
|
0
|
3
|
716
|
POST
|
Hi, I have a button that changes some layers to a specific version. Once a workflow is completed, those layers are then reconcile and post. If there are no conflict, we then move those layers back to default using the tool as shown below. Change IGPResult gpResult = null; await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(async () => { var parameters = Geoprocessing.MakeValueArray(constructLayer, "TRANSACTIONAL", newVersion.GetName()); gpResult = await Geoprocessing.ExecuteToolAsync("ChangeVersion_management", parameters); }); If there are no issues with the reconciling, we will then delete the version. jobVersion.Delete() HOWEVER, I kept receiving the following message when I the Delete() method is called "Operation not allowed because the version is in use." The version is only used by me. If I restart pro then manually delete the version, it works fine. Can someone please advise what the approach to deleting version.
... View more
09-10-2019
11:10 PM
|
0
|
2
|
887
|
POST
|
Hi, I would use https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html the callout are better used for labelling.
... View more
09-10-2019
08:05 PM
|
1
|
0
|
469
|
Title | Kudos | Posted |
---|---|---|
1 | 03-29-2022 06:53 PM | |
1 | 07-22-2021 07:59 PM | |
1 | 03-30-2022 04:36 PM | |
1 | 10-23-2021 06:49 AM | |
1 | 07-11-2021 11:42 PM |
Online Status |
Offline
|
Date Last Visited |
03-30-2022
06:13 PM
|