POST
|
Thanks again Ryan for the speedy response I will see what I can do and if I am successful I will post my results, thanks again. See also: SPOT/Globalstar DataPush integration with GeoEvents Polling External Website for JSON via HTTPS
... View more
03-26-2015
08:57 AM
|
0
|
0
|
319
|
POST
|
Looking into how to setup AGP as a Calback URL for Spot Devices, would be over HTTPS, I am curious if this is possible and if anyone has done it? What do you think Ryan Elliott??
... View more
03-25-2015
09:51 AM
|
0
|
2
|
3008
|
POST
|
Been trying to connect to SPOT's api URL here (with the Feed_ID) and so far unsuccessful ..... getting no event what so ever and have all the geo defs setup fine, can we poll JSON through a HTTPS?? Do I need to create another connector and instead of just HTTP set it to HTTP Basic Auth?? https://api.findmespot.com/spot-main-web/consumer/rest-api/2.0/public/feed/FEED_ID_HERE/latest.xml
... View more
03-18-2015
09:23 AM
|
0
|
2
|
3922
|
POST
|
MVVM at first can be a pretty intimidating concept but what will ultimately end up happening is you'll be doing without thinking about it. Remember that MVVM is to separate the business logic from the view, when we look at the MapView it is a view, its to know of the viewmodel but not of the model, so you would not want to access parts of the model (i.e. Layers, Service Tables) via the view, but you would access them via the viewmodel. With that said I think that what your attempting above needs another look. Is it that you would like to set the an Overlays datacontext to the graphic??? It would be beneficial to see some more code too if that's possible. Antti had done a session with Branscombe on how to make the move over from the WPF to .NET, it is some work and I am still making the move but I have found that the esri video's can help, just look up runtime .net
... View more
03-17-2015
04:43 PM
|
0
|
1
|
539
|
POST
|
I believe the gallery now has the 10.3 updated tuts, they've also updated quite a bit when it comes to emails.
... View more
03-17-2015
04:31 PM
|
0
|
1
|
646
|
POST
|
Thanks guys, as always you have put me back on the right path.
... View more
01-09-2015
03:41 PM
|
0
|
0
|
964
|
POST
|
I was looking through some old projects and I have old code that may be useful, let me know how it goes
... View more
12-30-2014
03:59 PM
|
0
|
0
|
113
|
POST
|
Got it, of course you were right. I looked through the examples and found the key , you guys used _isMapReady Bool-- That did the trick. Thanks
... View more
12-30-2014
11:52 AM
|
0
|
2
|
964
|
POST
|
I had migrated a project over, things were fine were some time. Then one day .... had this same issue... restarted, cleaned, rebuilt, even re installed the sdk.... nothing worked. Then went back to it a couple of days later ..... and it was fine ..... not sure what happened but all is well now, I would not be surprised if I saw this error again. I'll let you know if I find the magic trick that I did
... View more
12-29-2014
10:30 AM
|
0
|
0
|
1170
|
POST
|
Yeah I think that I have found a workaround..... all was going well and actually started to do a lot of moving. so far found that the one of the best ways to interact with the Mapview is to just touch it in the codebehind..... goes against all of my MVVM (but who says you can't have some codebehind--use what works right:)_) Also have events tied within codebehind too. Now a big problem. In the old WPF Runtime, when users moved the mouse over their map it would fire on the feature layer mouse over event, do lookup on attributed info, then report what Township range the users cursor was in. Trying to replicate this behavior in the new Runtime and have this so far.... //Screen Position needed for hit testing and the current Map Screen Point var screenPosition = e.GetPosition(WrmsMapView); #region Get the Lat and Long of the map and update the UI var latLongPosition = GeometryEngine.Project(WrmsMapView.ScreenToLocation(screenPosition), SpatialReferences.Wgs84); MouseCoordinates.UpdateLatLongHud(latLongPosition as MapPoint); #endregion var legalHudRows = await LegalHudFeatureLayer.HitTestAsync(WrmsMapView, screenPosition); if (legalHudRows != null && legalHudRows.Length > 0) { try { var legalHudHitFeatures = await LegalHudFeatureLayer.FeatureTable.QueryAsync(legalHudRows); returnedLegalFeature = legalHudHitFeatures.FirstOrDefault(); MouseCoordinates.UpdateLegalHud(returnedLegalFeature); } catch (Exception) { MessageBox.Show( "There was an error whike attempting to get the Rows Collection Attributed information"); } } Problem is that the mouse move events seem to be firing too fast.... get an instant crash within my application and Visual Studio doesn't even catch the exception.... really scratching my head on this one.... must admit also pretty curious.... why not just have Events on Feature Layers, Graphics, etc.?? I understand having succinct code but I feel that the events that existed with the WPF Runtime were extremely useful while applying MVVM I have also taken the time to look over the Runtime Examples and the map tapped events will be great for a lot of things and perhaps I need to go back to the drawing board on this problem. Any suggestions ??
... View more
12-29-2014
09:44 AM
|
0
|
3
|
964
|
POST
|
Moved from Versioned to Non Versioned -- works perfect now
... View more
12-19-2014
03:53 PM
|
0
|
0
|
277
|
POST
|
Did alot around MVVM and using MVVM Lite. Liked how we could create a resource dictionary that would contain all of Layers. From there, I was using the Interaction.Triggers and then depended on the Relay Command Bindings. The problem is that Feature Services lack any mouse Handling events?? This makes it hard to subscribe to events within viewmodels??? I do see the hittestasync but scratching my head on how to go about getting the MapView touch/mouse events from the viewmodels. Any suggestions? antti kajanus
... View more
12-19-2014
03:52 PM
|
0
|
7
|
5535
|
POST
|
Here is the code for the Location, I have tried this on an Ipad 2 and also an Air 2 with the same Results-publishing to Android works fine though .... Save there is no Compass support on Android. I have removed the specific server as were not to make the Services Public Quite yet, Also Removing the s out of HTTPS: works?? the services have had the token removed and seem to work fine just using http? This is odd because in the other runtimes this will not work (iOS, Android and .Net)... hmmmm Thanks for the speedy response back import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Dialogs 1.2 import QtQuick.Window 2.0 import QtQuick.Layouts 1.1 import ArcGIS.Runtime 10.3 import ArcGIS.Runtime.Toolkit.Dialogs 1.0 import QtPositioning 5.3 import QtSensors 5.3 ApplicationWindow { id: appWindow width: 320 height: 480 title: "WrmsLite" Rectangle{ anchors.fill: parent property int hitFeatureId:0 property variant attrValue property real scaleFactor: 1 property bool settingsView: true states:[ State{ name:"Settings" when:settingsDisplay changes:[ PropertyChanges { target: settingsDisplay anchors.fill:parent}, PropertyChanges{ target:mainMap visible:false} ] } ] Rectangle{ id:settingsDisplay anchors.fill: parent color:"white" } GeodatabaseFeatureServiceTable{ id:incidentsFeatureService url:"https://SERVER/arcgis/rest/services/WRMS/Incidents/MapServer/0" } Map{ property Point locationPoint: Point{ property bool valid: false spatialReference: SpatialReference{ wkid: 4326 } } id:mainMap anchors.fill: parent ArcGISTiledMapServiceLayer{ id:basemap url:"http://Server/arcgis/rest/services/USA_Topo_Maps/MapServer" } ArcGISDynamicMapServiceLayer{ id:publicOwnership url:"https://Server/arcgis/rest/services/WebMercator/PublicOwnership/MapServer" opacity: 0.4 } ArcGISDynamicMapServiceLayer{ id:plss url: "https://Server/arcgis/rest/services/WebMercator/PLSS/MapServer" } ArcGISDynamicMapServiceLayer{ id:lightning24 url:"https://Server/arcgis/rest/services/WebMercator/Lightning24hours/MapServer" } //ArcGISDynamicMapServiceLayer{ // id:incidents // url:"https://Server/arcgis/rest/services/WRMS/Incidents/MapServer" //} FeatureLayer{ id:incidentsFeatureLayer featureTable: incidentsFeatureService } positionDisplay{ compass:Compass{ id:compass } positionSource: PositionSource{ id:positionSource onPositionChanged: { mainMap.locationPoint.valid = position.latitudeValid&&position.longitudeValid; mainMap.locationPoint.x = position.coordinate.longitude; mainMap.locationPoint.y = position.coordinate.latitude; locationPointChanged(); } } onError: { console.log("There was an error with the Positional Display... Not sure as to why") } } onMapReady:extent=oregonExtent onMouseClicked: { var features = incidentsFeatureLayer.findFeatures(mouse.x,mouse.y,0,1); for (var i=0;i<features.length;i++) { hitFeatureId =features[i]; getFields(features); identifyDialog.title = "ObjectID" + hitFeatureId;; identifyDialog.visible = true; } } } ServiceInfoTask{ } SimpleDialog { id: identifyDialog title: "Object ID: " + hitFeatureId height: (column.height * 1.3) * scaleFactor width: (column.width * 1.05) * scaleFactor Column { id: column spacing: 5 * scaleFactor anchors.centerIn: parent Repeater { model: fieldsModel Row { id: row spacing: (80 * scaleFactor) - nameLabel.width Label { id: nameLabel text: name + ": " font.pixelSize: 10 * scaleFactor } Label { text: value font.pixelSize: 10 * scaleFactor } } } } onRejected: { hitFeatureId = 0; } } Envelope{ id:oregonExtent xMin:-13884932.6524728 xMax:-12942012.5881222 yMin:5152699.92331632 yMax:5836354.32813466 spatialReference: SpatialReference{ wkid: 102100 } } ListModel{ id:fieldsModel } ListModel{ id:layers } ListModel{ id:basemapLayers } Rectangle{ id:topBar color: "black" height:parent.height/10 width:parent.width opacity: .75 Text{ id:latLonPostionalData visible:positionSource.active color:"white" anchors.left: parent.left anchors.leftMargin: 10 anchors.verticalCenter: parent } Button{ id:gpsButton iconSource: "qrc:/Resources/GpsIcon.png" width: parent.height - parent.height * .1 height: parent.height - parent.height * .1 anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 10 onClicked: { positionSource.active = true; compass.active = true; console.log("Hey you just clicked the button to turn the gps on" + qsTr(mainMap.positionDisplay.mode.toString())) } } } function getFields( featureLayer ) { fieldsModel.clear(); var fieldsCount = incidentsFeatureLayer.featureTable.fields.length; for ( var f = 0; f < fieldsCount; f++ ) { var fieldName = incidentsFeatureLayer.featureTable.fields[f].name; attrValue = incidentsFeatureLayer.featureTable.feature(hitFeatureId).attributeValue(fieldName); if ( fieldName !== "Shape" ) { var attrString = attrValue; fieldsModel.append({"name": fieldName, "value": attrString}); } } } function locationPointChanged(){ latLonPostionalData.text = "Lat: "+positionSource.position.coordinate.latitude+" Lon: "+positionSource.position.coordinate.longitude+" Alt: "+positionSource.position.coordinate.altitude; } } }
... View more
12-19-2014
03:42 PM
|
0
|
0
|
274
|
POST
|
Finally, though it took a couple of days.... (helps if you read the docs I guess....) got Runtime for Qt over on IOS..... problems is GPS location does not work.... centers in at 0,0 for wkid 4326. Also any layers that use https: will not display?? getting this error?? QObject::connect: Incompatible sender/receiver arguments QNetworkSessionPrivateImpl::usagePoliciesChanged(QNetworkSession::UsagePolicies) --> QNetworkSession::usagePoliciesChanged(QNetworkSession::UsagePolicies) hmmmm.... has me scratching my head and I must admit that I am still getting used to the cryptic error messages that Qt usually gives. Taking a swing at things I am wondering if these issues have something to do with the Info.plist???? Do I need to add some keys?? I did read in the docs that Qt does support Https over rest... which I am doing?? Any suggestions ?? I know things are in Beta but was hoping to generate some excitement for Ipads.
... View more
12-08-2014
03:00 PM
|
0
|
3
|
3456
|
POST
|
Versioned data was the problem, recreated everything to be non versioned and everything is working great!!!!! Thanks guys this one was really beating me up!
... View more
08-03-2014
11:00 AM
|
0
|
0
|
613
|
Title | Kudos | Posted |
---|---|---|
1 | 07-22-2015 05:51 PM | |
1 | 07-22-2015 05:30 PM | |
1 | 07-14-2014 07:12 PM | |
1 | 07-29-2014 10:47 AM | |
1 | 07-14-2014 05:19 PM |
Online Status |
Offline
|
Date Last Visited |
08-22-2023
01:48 PM
|