Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been experimenting with the My First iOS app example, trying to get it to display a Bing map layer I created on However, the layer doesn't display. In the sample app's code, when it says:

NSURL *mapUrl = [NSURL URLWithString:@""];
 AGSTiledMapServiceLayer *tiledLyr = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl];
 [self.mapView addMapLayer:tiledLyr withName:@"Tiled Layer"];

what am I supposed to replace the mapUrl from? The link created through the share function on doesn't work, since it links directly to a map viewer displaying the map. I'd like to get the map directly to put into my sample iOS app.

share|improve this question

It appears to me that your problem is more with the licensing that finding the correct REST endpoint: , particularly the bit about ArcGIS Web Mapping.

share|improve this answer
I understand, but what URL do I use as the endpoint anyways? I'm just created a map with, what address do I use? – Apophenia Overload Nov 4 '10 at 7:23
None if you have Bing on your map. – GuillaumeC Nov 4 '10 at 7:33
Practically, if you want to get this map on your app: , you will need to add the layers at the bottom of the page. The layering is done client side when all layers are pulled from the server. – GuillaumeC Nov 4 '10 at 7:34
Okay, so this is the map I've created:… what exactly would I have to do with the sample app in order to display it? Do I have to instantiate it with both of the layers it's made of? And then do I have to get it to display the coordinates at the zoom level I've gotten it to in the map viewer? If so, then what's the point of even using to make a map? – Apophenia Overload Nov 4 '10 at 8:36
The point is, as I understand it, what you just did: provide a link to your map. And also, open it in one click in ArcGIS Online Explorer and ArcMap. I don't think there is a way to pass it as a parameter to one of the web APIs. – GuillaumeC Nov 4 '10 at 12:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.