|
POST
|
To be clear, the properties are available in all the runtime sdks. The name of the `Map` class just happens to be `AGSMap` in the cocoa native iOS sdk.
... View more
03-08-2019
10:15 AM
|
0
|
0
|
560
|
|
POST
|
Map (AGSMap for iOS) has properties for min/max scale
... View more
03-08-2019
10:12 AM
|
0
|
0
|
560
|
|
POST
|
Two properties make an error unique - the domain and the code. Domains will commonly map to a specific error code enumeration. For the domain "com.esri.arcgis.runtime.error" which equals `AGSErrorDomain`, the codes you look at are in the enumeration `AGSErrorCode`. Within that enumeration, the code 2 is: `AGSErrorCodeCommonInvalidArgument = 2`. So you have an Invalid Argument somewhere. In xcode, set a breakpoint on c++ exceptions. Then when that error occurs you can look at the callstack and see what you may be doing. I would also make sure to address all the warnings in your project. It may be that you are putting a string in an array that takes a `AGSField` or something like that. If that doesn't help, please consider providing us some code that reproduces the issue so that we can help diagnose what is going wrong. Thanks
... View more
02-12-2019
12:29 PM
|
1
|
1
|
967
|
|
POST
|
You can add labels to shapefile data. We do not have a comprehensive api for creating the label definition through properties, however one can be created with json like so: let map = AGSMap(basemapType: .lightGrayCanvas, latitude: 0, longitude: 0, levelOfDetail: 0)
let shp1 = AGSShapefileFeatureTable(fileURL: URL.TestDataURL("Shapefile/FromArcMap/CapitalsFromAM.shp"))
let fl1 = AGSFeatureLayer(featureTable: shp1)
map.operationalLayers.add(fl1)
let jsonStr = """
{"labelPlacement":"esriServerPointLabelPlacementAboveRight","where":null,"labelExpression":"[CITY_NAME]","useCodedValues":true,"symbol":{"type":"esriTS","color":[255,0,0,255],"backgroundColor":null,"borderLineColor":null,"borderLineSize":null,"verticalAlignment":"bottom","horizontalAlignment":"center","rightToLeft":false,"angle":0,"xoffset":0,"yoffset":0,"kerning":true,"haloColor":[255,255,255,255],"haloSize":2,"font":{"family":"Arial","size":10,"style":"normal","weight":"normal","decoration":"none"}},"minScale":0,"maxScale":0}
"""
guard let jsonData = jsonStr.data(using: .utf8) else{
return
}
let jsonObject = try JSONSerialization.jsonObject(with: jsonData, options: [])
let labelDefinition = try AGSLabelDefinition.fromJSON(jsonObject)
fl1.labelsEnabled = true
fl1.labelDefinitions.add(labelDefinition)
mapView.map = map That code will give label the `CITY_NAME` field for each point in the shapefile. It will be a red (255,0,0,255) text symbol with a white halo.
... View more
12-04-2018
09:10 AM
|
1
|
2
|
1128
|
|
POST
|
Sorry. What application is populating the EditDate field?
... View more
12-03-2018
09:56 AM
|
0
|
1
|
1763
|
|
POST
|
AFAIK the backend services support more precise dates. I'm wondering if it was just however the data was initially collected, the app that the data was initially collected in. I'm not sure how the data was entered, and with what interface. My guess is that is the source of the problem. You might want to ask on the forum associated with that app/interface.
... View more
12-03-2018
09:21 AM
|
0
|
3
|
1763
|
|
POST
|
The ArcGIS Runtime SDK for iOS supports down to millisecond. It seems that it's possible however the data was stored is where the date was truncated.
... View more
12-03-2018
08:05 AM
|
1
|
5
|
1763
|
|
POST
|
Is there a stack trace? If you type "bt" in the console when it crashes, does it give you a stack trace? thanks
... View more
10-10-2017
10:55 AM
|
0
|
2
|
1149
|
|
POST
|
Unfortunately we've been experiencing the same thing. It's a bug that apple is aware of and seemingly getting a lot of people wanting it fixed: iOS 11 Simulator unusable slow | Apple Developer Forums
... View more
09-13-2017
02:42 PM
|
1
|
1
|
1454
|
|
POST
|
With 10.2.5 I cannot think of how this would be achieved.
... View more
09-05-2017
09:24 AM
|
0
|
0
|
1030
|
|
POST
|
Hi there, Please try this: // to set headers for every remote resource globally AGSRequestConfiguration.global().userHeaders = ["my key" : "my value"] // // OR // // to set it for just one resource let lyr : AGSArcGISTiledLayer! = nil lyr.requestConfiguration = AGSRequestConfiguration.global().copy() as? AGSRequestConfiguration lyr.requestConfiguration?.userHeaders = ["my key" : "my value"]
... View more
08-30-2017
08:27 AM
|
0
|
2
|
1030
|
|
POST
|
try to add a KVO observer on the "navigating" property: /** Specifies whether a pan or zoom animation is in progress. @since 100 */ @property (nonatomic, assign, readonly, getter=isNavigating) BOOL navigating;
... View more
08-09-2017
03:45 PM
|
0
|
0
|
923
|
|
POST
|
Even if you don't specify a spatial reference, your map has to operate under one. So once your map is loaded, it has a spatial reference. Measuring distance on a map is not something you'd really want to use map scale for. Map scale will give you a basic planar distance, which depending on the spatial reference is going to be inaccurate at certain locations on the globe. If you want to measure between features, points on a map, etc., it's best to use the AGSGeometryEngine (ArcGIS Runtime SDK for iOS: AGSGeometryEngine Class Reference ). If you want to see this in action with an out of the box component, please see our measure toolbar component. It's very easy to add to your app: arcgis-runtime-toolkit-ios/Documentation/MeasureToolbar at master · Esri/arcgis-runtime-toolkit-ios · GitHub Ryan
... View more
08-08-2017
09:48 AM
|
1
|
1
|
1936
|
|
POST
|
Also - as an FYI - we have a Scalebar control for the MapView in our Toolkit. It's very easy to use, we have sample code showing how to use it: arcgis-runtime-toolkit-ios/Documentation/Scalebar at master · Esri/arcgis-runtime-toolkit-ios · GitHub
... View more
08-07-2017
05:21 PM
|
0
|
0
|
1936
|
|
POST
|
Map-scale is not in any unit. It's a ratio of the distance on the actual earth to distance on the device screen (map). So if the scale is 10,000. Then 10,000 inches on the earth is 1 inch on the screen (map). At the same time, if your scale is 10,000 then 10,000 feet on earth is the same as 1 foot on the screen (map). The units don't matter, it's the ratio. Typically we talk about inches with scale, probably because of a few different factors, like (1) it's easier to think about length on a screen/map in a small unit such as inches, and (2) easier to do actual conversion of map resolution (map-units per screen point) to map-scale because screen points are typically measured in dots-per-inch. So Map-scale has no unit. But your map's spatial reference has a unit, which you can read about here: ArcGIS Runtime SDK for iOS: AGSSpatialReference Class Reference This means that when you observe coordinates for your map, they are in the unit of your spatial reference.
... View more
08-07-2017
12:28 PM
|
1
|
3
|
1936
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2025 11:36 AM | |
| 1 | 01-13-2025 02:52 PM | |
| 1 | 12-04-2018 09:10 AM | |
| 1 | 07-08-2021 07:45 AM | |
| 1 | 06-14-2021 08:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-10-2025
01:36 PM
|