|
POST
|
Hi Kamal. For each layer you specify in the AGSGenerateGeodatabaseParameters object that you pass to generateJobWithParameters(), you can specify an AGSGenerateLayerOption object. That object has a useGeometry property that you can set to false.
... View more
03-27-2017
07:38 AM
|
0
|
3
|
1754
|
|
BLOG
|
That's superb! Thanks for posting this and congrats to the assistant. Great job!
... View more
03-02-2017
01:31 PM
|
2
|
0
|
11655
|
|
POST
|
Thanks for posting that, Ryan Olson. For reference, here's a Gist with the Swift code: Runtime Line Intersection Points · GitHub The Gist also discusses a potential edge-case worth being aware of, depending on how your input data is generated.
... View more
01-05-2017
09:51 AM
|
1
|
1
|
1575
|
|
POST
|
In Runtime v100, the Loadable Pattern is key. There's a great section in the Guide that talks about Loadable Resources: Loadable pattern for asynchronous resources—ArcGIS Runtime SDK for iOS | ArcGIS for Developers So let's say you have a layer, you can check that it's loaded or failed to load with code like this (Swift 3 syntax): layer.load() { error in
guard error == nil else {
// The layer failed to load
print("Error loading the layer \(error?.localizedDescription)")
return
}
// Now the layer has loaded and we can do something here.
print("Layer \(layer.name) loaded OK!")
}
A really neat aspect of this is that you can call ".load()" multiple times with multiple handlers and they'll all get called when the resource loads. In addition, if the resource has already loaded, the handler will just get called immediately. That's all described in more detail at the above link.
... View more
11-22-2016
01:54 PM
|
1
|
0
|
680
|
|
POST
|
You probably need to share the layer with everyone.
... View more
07-08-2016
06:43 AM
|
1
|
0
|
1888
|
|
POST
|
Hey Priti, Glad it worked. Not sure where the process failed, so here's the whole thing, step-by-step: Creating a blank hosted tiled layer Let me know how that goes. Cheers, Nick.
... View more
07-07-2016
10:54 AM
|
0
|
2
|
1888
|
|
POST
|
Hi Sven, You should set the AGSQuery.outFields property to include the fields you want to access on the returned features. So before you call queryResultsWithParameters, do something like: q.outFields = @[@"StorviltID"]; Let me know if that doesn't work. Cheers, Nick.
... View more
07-07-2016
07:40 AM
|
1
|
0
|
708
|
|
POST
|
Try this: http://services.arcgis.com/OfH668nDRN7tbJh0/arcgis/rest/services/No_data_tiles/MapServer I created this by signing in at developers.arcgis.com and creating a new layer at https://developers.arcgis.com/layers/#/new/ I created an empty point Feature Service with a single field and published that. Then I clicked the "Open in ArcGIS Online" button to see the new Feature Service's item page, and from there clicked "Publish" a new Tile Layer. From there in the Manage Tiles panel I picked the `:147,914,382 scale to create just 20 or so tiles at a cost of about 0.06 credits total. That generated the tile service link above. You can make use of that for a bit, but I recommend you create your own because I could easily delete that in a cleanup. Sounds like you won't need it for long. Do test that it works as you expect though - in my testing it seems to work, but I might have misunderstood what you want. Hope that helps! Nick.
... View more
06-24-2016
01:24 PM
|
2
|
1
|
1888
|
|
POST
|
After some direct messaging back and forth we found a few issues: The MapView was using Map Services rather than Feature Services for the layers in question. mapView:didClick will not return features for a Map Service, so the query is indeed required. Rather than using a query, an AGSIdentifyTask was more appropriate. The code had some strange leftover SpatialReference stuff in there. Tidying that up helped. There was no need for the Sketch Layer. Making those changes and tightening up the search envelope resolved the issues.
... View more
04-28-2016
09:17 AM
|
0
|
0
|
1639
|
|
POST
|
Hi, A .geodatabase file must come either from an online feature service (from ArcGIS Online or from ArcGIS Server 10) or side-loaded from ArcGIS for Desktop's Create Runtime Content tool. Even an "empty" .geodatabase file (one that contains no data) must have a schema with a well defined set of tables already created, so you don't create an offline .geodatabase by hand. For more information and to understand the various workflows, I highly recommend checking out these two videos from the 2015 Developer Summit. Part I and Part II of Building Offline Apps with the ArcGIS Runtime SDK. For documentation, see "Allow offline editing" here to learn how to enable support for sync in an ArcGIS Online Feature Service and see here for creating a .geodatabase file to side-load onto your device. You can see if your Feature Service has Sync enabled by looking at the REST endpoint. A sync-enabled feature service will have 3 specific REST endpoints listed at the bottom of the service's HTML page: "Create Replica", "Synchronize Replica" and "Unregister Replica". https://gis.nexgenam.com/ArcGIS/rest/services/SLP/MapServer does not have these listed and so is not enabled for sync. Note, also, it needs to be a Feature Service, not a Map Service. Your ArcGIS Server Admin might be able to publish a matching Feature Service with Sync Enabled for you for the above service if that's what you want. Lastly, your code does not look like iOS code. Did you mean to post this in the .Net space? Regardless, all the above remains true. Hope this helps, Nick.
... View more
04-12-2016
09:58 AM
|
1
|
0
|
653
|
|
POST
|
Ok. Here's what I would do. AGSGeometryEngine will be your friend here. Just go through the graphics parameter (although that delegate method was deprecated and you should use the features equivalent if you're using the 10.2.x SDK) to find the entry for the layer you're interested in, then go over the features returned for that layer and use AGSGeometryEngine.distanceFromGeometry:toGeometry to pick the closest geometry to the map point where the user tapped. Note that since your layer is on the map, the results will come back in the didClickAtPoint delegate call in the features parameter, as mentioned by Shimin Cai above. You do not need to query the remote layer again since your data is already on the map on the device. Querying again might be doing what you want but it's an extra network request.
... View more
04-11-2016
02:30 PM
|
0
|
0
|
1639
|
|
POST
|
Hey Brian, Here's what I was able to dig up for you: You will be able to change the color at beta 2 although a transparent one will probably not work because of the way OpenGL renders. Do you have a specific use-case? The Runtime uses a CAEGLView the context is kept private. Again, what's the use case you're looking at? The map can indeed have no basemap. I'd be interested to learn a little more about what you're trying to do that you want the transparency and the OpenGL context. Hope this helps. Nick.
... View more
03-18-2016
11:00 AM
|
0
|
0
|
1422
|
|
POST
|
Actually, gdbFeature.table.tableName doesn't have to be the same as the layer name. Instead, try this: -(void)mapView:(AGSMapView *)mapView didClickAtPoint:(CGPoint)screen mapPoint:(AGSPoint *)mappoint features:(NSDictionary *)features { for (NSString *layerName in features.allKeys) { AGSLayer *layer = [mapView mapLayerForName:layerName]; for (id<AGSFeature> feature in features[layerName]) { NSLog(@"Feature %@ belongs to layer %@ (named '%@').", feature, layer, layerName); } } } You get the layer from the map based off the layer name that's passed in its the features dictionary. If you want, you can then detect that this is an AGSFeatureTableLayer and get the table. As you mentioned, the same table can drive multiple layers, but each layer can only have one source table. Hope this helps, Nick.
... View more
02-18-2016
11:21 AM
|
1
|
0
|
1218
|
|
POST
|
Hi, You could take a look at the Sketch Graphics Layer (and its reference documentation). For text, you would probably want to look at AGSTextSymbol, AGSGraphic, and AGSPoint. See also this Sketch Layer Sample on GitHub. And although this sample is for the OS X SDK, the principles are much the same. That page also includes a link to this download page for the Samples app (look in the app under "Building Maps --> Sketch Layer"). Hope that gives you some answers. Cheers, Nick.
... View more
01-20-2016
06:40 AM
|
0
|
0
|
1154
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-05-2025 10:52 AM | |
| 1 | 11-04-2025 08:55 AM | |
| 1 | 11-04-2025 08:38 AM | |
| 1 | 11-01-2025 03:25 PM | |
| 1 | 10-29-2025 10:28 AM |