POST
|
Got it. Thanks! I sent you an invite to my group. I was able to upload the .zip file.
... View more
10-05-2020
09:45 AM
|
0
|
1
|
737
|
POST
|
Sorry...thought I could upload a zip file of my project to AGOL but it doesn't allow that.
... View more
10-05-2020
07:41 AM
|
0
|
3
|
738
|
POST
|
I added a zip file of my app in the group in case you want to look at that. It has to be something in my app. Thanks for your time!
... View more
10-02-2020
01:56 PM
|
0
|
5
|
738
|
POST
|
I have tried that and it still is in the upper left. It stays there even if I zoom way out. Do you think it matters what version of the ArcGIS Runtime SDK I have installed? Currently I'm at 100.8.
... View more
10-02-2020
08:36 AM
|
0
|
8
|
738
|
POST
|
Very strange. I copied your code above including the service you point to and I still get the same thing. I can share my data so you can try on your end. I sent you an invite to the group where my mobile map package is. Thanks!
... View more
10-01-2020
03:05 PM
|
0
|
10
|
738
|
POST
|
Thanks for your reply! I copied your code exactly and my callout is still in the upper left.
... View more
10-01-2020
12:04 PM
|
0
|
12
|
1008
|
POST
|
Map{ id: map MobileMapPackage { id: mmpk path: filePath + inputdata Component.onCompleted: { mmpk.load(); } onLoadStatusChanged: { if (loadStatus === Enums.LoadStatusLoaded) { mapView.map = mmpk.maps[0]; mapView.map.minScale = 15000; mapView.map.maxScale = 1000; var identLayerList = mmpk.maps[0].operationalLayers; featureLayer = identLayerList.get(app.idOfPOI); var identLayerName = featureLayer.name; var featureTable = featureLayer.featureTable; console.log("Identify Layer name is " + identLayerName); mapView.setViewpointScale(initialScale); locationDisplay.start(); } } } }
... View more
09-30-2020
11:50 AM
|
0
|
14
|
1007
|
POST
|
Thanks for the reply. I do not have any errors in my console. The only thing different with our code is that I am using a mmpk instead of pointing to a service. I thought maybe it had something to do with spatial reference since my POI layer (which is the geoElements layer) is in a different coordinate system than the basemap and the data frame. I projected that layer to the same coord system but it still puts the callout in the upper left.
... View more
09-30-2020
11:40 AM
|
0
|
16
|
1007
|
POST
|
Hi James, Yes, the parent is the MapView object in my code. I did change that line to mapView.calloutData but it does the same thing. Any other ideas? Thanks!
... View more
09-29-2020
01:19 PM
|
0
|
18
|
1007
|
POST
|
I've followed a couple Callout samples when creating my own but I can't get the location of the callout to display where I clicked or the xy coordinate of the feature I am selecting. Every time the callout displays in the upper left of the screen like below: Callouts appear to be pretty straightforward so I'm not sure why I can't get mine to work. (I am using a mmpk) property Point clickedPoint
calloutData { } Callout { id: callout calloutData: parent.calloutData accessoryButtonHidden: true leaderPosition: leaderPositionEnum.Automatic } onMouseClicked: { clickedPoint = mouse.mapPoint; var tolerance = 5, returnPopupsOnly = false, maximumResults = 1; mapView.identifyLayerWithMaxResults(featureLayer, mouse.x, mouse.y, tolerance, returnPopupsOnly, maximumResults); } onIdentifyLayerStatusChanged: { if (identifyLayerStatus === Enums.TaskStatusCompleted) { featureLayer.clearSelection(); const elem = identifyLayerResult.geoElements[0]; const count = identifyLayerResult.geoElements.length; featureLayer.selectFeatures(elem); var featureName = elem.attributes.attributeValue("Name"); var xcoord = elem.attributes.attributeValue("POINT_X"); var ycoord = elem.attributes.attributeValue("POINT_Y"); mapView.calloutData.geoElement = elem; mapView.calloutData.detail = featureName; mapView.calloutData.location = clickedPoint; callout.showCallout(); } }
... View more
09-29-2020
12:00 PM
|
1
|
22
|
2185
|
POST
|
So you didn't do anything with the info folder? Is that folder not to be replaced? Your modified version worked. Thank you!!
... View more
09-25-2020
01:58 PM
|
0
|
1
|
1180
|
POST
|
I used the same zip app and settings you did except the "Number of CPU threads" was 2 / 2. Other than that it was identical.
... View more
09-25-2020
08:26 AM
|
0
|
7
|
1180
|
Title | Kudos | Posted |
---|---|---|
1 | 09-29-2020 12:00 PM | |
1 | 09-21-2020 06:52 PM |
Online Status |
Offline
|
Date Last Visited |
08-18-2023
12:31 AM
|