POST
|
You can't use a renderer on a GraphicsLayer, " Each graphic must have its own symbol since the GraphicsLayer cannot have an associated renderer". That's a real bummer. It was a nice feature in 3.X.
... View more
a week ago
|
0
|
0
|
29
|
POST
|
I have a hosted feature service where I would like some of the attribute fields editable and other non-editable (view-only). How can I do that? I see I can create a view of the feature layer, and in the view I can select which fields are viewable. I want the fields viewable, just not all of them editable.
... View more
06-17-2020
10:48 AM
|
0
|
0
|
87
|
POST
|
Erwin, 1. That worked great for me. I also a way to set it in my sendRequest function (see below). NetworkRequest { id : req url : "https://somedomain/someEndpoint" method : "POST" responseType : "json" onReadyStateChanged : { console . log ( "readyState: " , readyState ) ; if ( readyState !== 4 ) return ; if ( status !== 200 ) return ; console . log ( "Response Received!" ) ; } onError : { console . log ( "********************** Request Failed >" ) console . log ( "errorText:" + errorText ) console . log ( "errorCode:" + errorCode ) } function sendRequest ( portalToken ) { var payload = { "access_token" : portalToken , "portal_url" : "https://www.arcgis.com" } ; headers . json = { "Content-Type" : "application/json" } ; send ( JSON . stringify ( payload , undefined , 2 ) ) ; } } 2. It turns out in the Udemy course they were using a custom library. I'm sure the just built something on top of XMLHttpRequest. For anyone else who is interested in using a promise-based approach, I ended up using this post as a guide to create my own custom network request function. It turned out great. Thanks again! Matt
... View more
03-23-2020
03:58 PM
|
1
|
0
|
32
|
POST
|
Hi Erwin, Perfect! Fiddler worked great for me. It turned out the Content-Type in the header was incorrect. I have 2 quick follow-up questions: 1. What is the preferred method for setting the Content-Type header? Below is what I initially tried, but it didn't change the header. NetworkRequest { id : req url : "https://somedomain/someEndpoint" method : "POST" responseType : "json" onReadyStateChanged : { console . log ( "readyState: " , readyState ) ; if ( readyState !== 4 ) return ; if ( status !== 200 ) return ; console . log ( "Response Received!" ) ; } onError : { console . log ( "********************** Request Failed >" ) console . log ( "errorText:" + errorText ) console . log ( "errorCode:" + errorCode ) } function sendRequest ( portalToken ) { var payload = { "access_token" : portalToken , "portal_url" : "https://www.arcgis.com" } ; headers . value ( 'Content-Type' , 'application/json' ) ; send ( JSON . stringify ( payload , undefined , 2 ) ) ; } } I ended up setting the header outside of the NetworkRequest, like this: req . headers [ "Content-Type" ] = "application/json" ; req . sendRequest ( securedPortal . credential . token ) ; That strikes me as odd. Is there a way to set the headers inside of the NetworkRequest? 2. I was watching this great free Udemy course on Qt and QML, and he used HttpRequest directly. That approach seems more intuitive to me. I tried using it in Qt Creator, and it wasn't recognized. Is it possible to use HttpRequest with AppStudio? Thanks, Matt
... View more
03-20-2020
04:20 PM
|
0
|
2
|
32
|
POST
|
Is it possible to view network traffic in AppStudio? I am running into an issue. I have a POST running in Postman. When I try to do the same thing in my .qml file, I get: errorText : Error transferring https : / / myserver / someendpoint - server replied : Internal Server Error errorCode : 401 The errorText and errorCode don't seem to match. 401 should be unauthorized not Internal Server Error. If this happened while I was developing a web app, I would just look at the network tab in the Chrome dev console to see exactly what was sent, and what the response was. Is there an equivalent with AppStudio? If not, is there a way to see more information about what the request? For example, I would like to see the payload and headers. Thanks! Matt
... View more
03-20-2020
12:47 PM
|
0
|
4
|
114
|
POST
|
OK. I thought I would check. Some how I got an email list from Qt and I wasn't clear on what they provide vs. what is available from AppStudio. Thanks.
... View more
02-26-2020
09:19 AM
|
0
|
0
|
19
|
POST
|
I've seen some info from Qt about the Qt Designer. Is that available when building an app using AppStudio and Qt Builder?
... View more
02-14-2020
11:36 AM
|
0
|
2
|
141
|
POST
|
How? Using what class? I tried using MapImage, but it did not recognize the extents of the image.
... View more
11-14-2019
01:35 PM
|
0
|
0
|
29
|
POST
|
OK. That feature isn't a big deal for me. I just tried it since it was already and there and wanted to make sure there wasn't some big change I should be aware of about switching from a scene to a map. Thanks again!
... View more
11-14-2019
12:29 PM
|
0
|
0
|
31
|
POST
|
Erwin Soekianto Thanks for the quick response! Lucas Danzinger Yes, that is perfect! I love how KmlGroundOverlay can be defined using very similar parameters to the MapImageLayer class from Javascript 3.x (e.g. xmin, ymin, xmax, ymax, spatial reference). Thanks! I have a quick follow up question, I noticed when I changed from a sceneView to a mapView the transparency slider stopped working (see below). Do you happen to know what that is about? import QtQuick 2.7 import QtQuick . Controls 2.3 import ArcGIS . AppFramework 1.0 import ArcGIS . AppFramework . Controls 1.0 import Esri . ArcGISRuntime 100.6 //import Esri.ArcGISExtras 1.1 App { id : app width : 400 height : 640 Rectangle { id : rootRectangle clip : true width : 800 height : 600 readonly property url dataPath : "" MapView { id : mapView anchors . fill : parent Map { BasemapImagery { } initialViewpoint : viewpoint ViewpointCenter { id : viewpoint Point { x : - 123.066227926904 y : 44.04736963555683 SpatialReference { wkid : 4326 } } targetScale : 15000 } // Create a KML Layer KmlLayer { id : kmlLayer // Create a KML Dataset KmlDataset { // Create a Ground Overlay by assigning an icon and geometry KmlGroundOverlay { id : groundOverlay rotation : - 3.046024799346924 KmlIcon { url : "C:/Users/mstay/ArcGIS/AppStudio/Apps/EditKmlGroundOverlay/1944.jpg" } Envelope { id : env xMin : - 123.066227926904 yMin : 44.04736963555683 xMax : - 123.0796942287304 yMax : 44.03878298600624 SpatialReference { wkid : 4326 } } } } } } } Rectangle { anchors . fill : slider radius : 5 } Slider { id : slider anchors { left : parent . left top : parent . top margins : 10 } from : 0 to : 1 value : 1 stepSize : 0.1 onValueChanged : { // modify the overlay's color/alpha value groundOverlay . color = Qt . rgba ( 0 , 0 , 0 , value ) ; } } } }
... View more
11-14-2019
11:24 AM
|
0
|
2
|
31
|
Online Status |
Offline
|
Date Last Visited |
a week ago
|