POST
|
For anyone who's interested, I found the answer here: http://msdn.microsoft.com/en-us/library/bb259689.aspx would be interested to hear what you implement. I assume you'll use the above information to then iterate through AGSTiled service requests to get the tiles you want. I'm thinking a similar use of this would be to implement the "take map offline" that you now see in Google Maps (for Android).
... View more
07-09-2012
10:10 AM
|
0
|
0
|
299
|
POST
|
Downloaded the beta and we are off to the races. I like that the 'Check for Updates' option says that there is an update available (the older 1750 version). Where it says this is 'portable', does that mean if you do the install to a USB-stick instead of the typical C:\Program Files\ then it is 'portable'?
... View more
06-28-2012
11:52 AM
|
0
|
0
|
1252
|
POST
|
See attached, I've removed the layers in the arrays to make this more reasonable.
... View more
05-21-2012
06:43 PM
|
0
|
0
|
96
|
POST
|
First I'll do this:
#define kBaseMapMapServiceURL @"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
...
- (void)viewDidLoad {
[super viewDidLoad];
//assign the layer delegate.
self.mapView.layerDelegate = self;
//add the base map.
NSURL *mapUrl = [NSURL URLWithString:kBaseMapMapServiceURL];
self.baseMapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl];
[self.mapView addMapLayer:self.baseMapLayer withName:@"Base Map"]
self.mapView.wrapAround = YES;
}
that works without issue. then I add my tiled service like so:
#define kBaseMapMapServiceURL @"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
...
- (void)viewDidLoad {
[super viewDidLoad];
//assign the layer delegate.
self.mapView.layerDelegate = self;
//add the base map.
NSURL *mapUrl = [NSURL URLWithString:kBaseMapMapServiceURL];
self.baseMapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl];
[self.mapView addMapLayer:self.baseMapLayer withName:@"Base Map"]
NSURL *mapUrl3 = [NSURL URLWithString:{myServiceURL}];
AGSTiledMapServiceLayer *Lyr3 = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl3];
[self.mapView addMapLayer:Lyr3 withName:@"MyService"];
self.mapView.wrapAround = YES;
}
this no longer wraps around. I have also tried making my service the basemap service and same issue.
... View more
05-21-2012
09:41 AM
|
0
|
0
|
489
|
POST
|
When wrap around is not working, verify that. I'm looking for? I can see that the mapView property for wrapAround goes to false once I add my tiled layer. I see the Spatial reference and full envelope though are the same with or without my tiled layer, e.g.: mapView->_fullEnvelope: AGSEnvelope: xmin = -20037507.067162, ymin = -19971868.880409, xmax = 20037507.067162, ymax = 19971868.880409, spatial reference: [AGSSpatialReference: wkid = 102100, wkt = null]
... View more
05-18-2012
02:55 PM
|
0
|
0
|
489
|
POST
|
1. Yes 2. Yes Though how are these constraints verified in the SDK? e.g. I can see from the service that the Spatial Reference value is: 102100 (3857), is that the value checked by the SDK? As well, I have no problem with this service in the other SDK's like JavaScript when using wrapAround.
... View more
05-18-2012
12:21 PM
|
0
|
0
|
489
|
POST
|
Yes, I've thrown together a basic viewer that just adds the World Street Map as a baseMap with mapView.wrapAround = YES. That works, then I start adding a FeatureLayer, DynamicMapServiceLayer, and a TiledMapServiceLayer, commenting each on/off to test the wrapAround. The FeatureLayer and DynamicServiceLayer are no problem, but once I comment out those and add the TiledMapServiceLayer then the map no longer pans around the Date Line.
... View more
05-18-2012
09:51 AM
|
0
|
0
|
489
|
POST
|
Hey, I've got a tiled map service that is Web Mercator (WKID 102100), I have no problem using it in the other client API's (e.g. JavaScript) with wrapAround however when I add it to a iOS mapView the wrap around no longer works. any recommended means of debugging this? Thanks
... View more
05-17-2012
11:57 AM
|
0
|
11
|
2358
|
POST
|
getting the URL to the thumbnail image for each baseMapGallery item, it looks like it's a mix of hard-coding and dynamic content to build the URL. For example, I could build {portal_url}+"/sharing/rest/content/items"+{itemId}+"/info/"+{thumbnailFileName} which would build as an example: http://www.arcgis.com/sharing/content/items/aab054ab883c4a4094c72e949566ad40/info/thumbnail/tempTerrain_with_labels_ne_usa.png Is there something that helps me not have to hard-code some of the URL?
... View more
05-16-2012
03:12 PM
|
0
|
0
|
158
|
POST
|
Let me add some details to my request. What we have implemented as a security mechanism in front of our services is modeled after OAuth2, and for the OAuth 2.0 API you can pass through your tokens/username/password has header values or URI params, we limit it to header values. Is this type of security planned for the ESRI api's? Another thought is if it would be possible to have the ESRI api make a request to a URI that is nothing more than 'http://localhost', then for me to intercept that and make the call myself with the Oauth security.
... View more
05-16-2012
02:19 PM
|
0
|
1
|
702
|
POST
|
Along the lines of this thread, if I have a featureLayer that has a predefined max-scale from the service and I want to override that, I could set self.featureLayer.maxScale = 144447.638572; correct? If so, doesn't seem to work.
... View more
05-10-2012
03:29 PM
|
0
|
0
|
619
|
POST
|
How about identifying all visible layers? I'm guessing you can get which layers are currently visible from each of the (Dynamic/Tiled)MapServiceLayers and use that array for the identifyParams.layerIds? **edit nevermind, I found it. If we don't define layerIds and use layerOption = AGSIdentifyParametersLayerOptionVisible that should get what I need, though I'll have to get creative on iterating through all operational layers
... View more
05-10-2012
12:50 PM
|
0
|
0
|
681
|
POST
|
Nimesh, Thanks again, everything has been clear and helpful. I was almost expecting an answer like you had since my map was not originally a web map. I assume with this process I have to inspect each baseMap returned from ArcGIS Online and handle them appropriately as the Bing maps and the OpenStreetMap won't have URL's like the TiledMapServices.
... View more
05-10-2012
10:52 AM
|
0
|
0
|
562
|
POST
|
Using the resetMapView:NO it still resets the map view extent, as well the map item isn't inserted as a base map, but instead as an operational layer on top of all the other operational layers.
-(IBAction)baseMapToggle:(id)sender
{
AGSPortalItem *item = [self.baseMapItems objectAtIndex:6];
AGSWebMap* webMap = [[AGSWebMap alloc] initWithPortalItem:item];
webMap.delegate = self;
}
- (void) webMapDidLoad:(AGSWebMap*) webMap {
//webmap data was retrieved successfully
[webMap openIntoMapView:self.mapView withAlternateBaseMap:[webMap baseMap] resetMapView:NO];
} my previous means of cycling the base map is similar to other forum posts [self.mapView removeMapLayerWithName:@"Base Map"];
[self.mapView insertMapLayer:self.baseMapLayer withName:@"Base Map" atIndex:0];
... View more
05-09-2012
04:23 PM
|
0
|
0
|
562
|
POST
|
Thanks, that got it all. I'm sure once I'm done with my questions you'll have all the documentation you need to update the API reference.. 🙂 How is the Portal Sample coming along? looks like it will cover most of my questions. Once I have the portalItems, how do I add them as 'base maps' / layers to my map? If I take one portalItem as an example, like the Imagery service, is there the URI information to create a AGSTiledMapSericeLayer or do we use a web map and add that into the mapView?
... View more
05-09-2012
12:06 PM
|
0
|
0
|
562
|
Title | Kudos | Posted |
---|---|---|
1 | 04-11-2012 02:42 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|