Using your own data in the free App

572
4
08-27-2010 08:32 AM
BrianKrzys
New Contributor III
Has anybody had success displaying their own data in the free iOS app?  I'm able to successfully setup a mobile web map via ArcGIS Server per instructions at the links below, but nothing comes up on the iPad when connecting to the server ... no errors, just no available maps are found.  I'm wondering if the published data needs to be in a certain projection, maybe a particular type of service, maybe ArcGIS Server needs to be restarted once the maps are published?  Note too that the bottom link is the most complete if anybody else wants to go through this process.

Thanks, Brian.

http://blog.davebouwman.com/add-your-own-map-services-to-arcgis-ios-apps

http://geo.geek.nz/development/publishing-your-own-maps-to-arcgis-server-10-for-use-on-arcgis-for-io...

http://help.arcgis.com/en/arcgismobile/10.0/apis/iphone/AppGuide/Maps.pdf
0 Kudos
4 Replies
CraigMesimer
Esri Contributor
Hi Brian,

I've had some success with getting local ArcGIS Server map services up and running and specifically using the last link you referenced.  There are some specific things that need to be done for this to work properly.  If you are working through the JSON procedure for mashing up your services, the services must be ArcGIS 10 map services and you must use GCS coordinates for the extent.  Otherwise, any fully qualified URL hosting ArcGIS 10 services should work.  You should be able to connect to any non-external services through a VPN connection or by using wifi instead of the 3G connection.

Hope this helps.
Craig
0 Kudos
BrianKrzys
New Contributor III
Hi Craig,

Thanks for the note ... we're running the services as ArcGIS 10 map services published on an Amazon EC2 instance built from an ESRI base AMI, also specifying the extents in GCS per the notes so I think everything is OK.  We've got access to ESRI premium support so what I'll do is go ahead and raise this as an incident and see where it goes.  Will post back whatever we learn, as I suspect there is something we're missing along the way

Thanks, Brian.
0 Kudos
krishnasankaran
New Contributor
Solution: Just add hostname without "http:// " in the front and no "content" at the end of the URL.
Eg:

Right way : 
example.com/arcgis/mobile

Not right:
http://example.com/arcgis/mobile/content
0 Kudos
BrianKrzys
New Contributor III
Finally got this working, post from Krishna (thanks) was for sure one of the keys.  Other things that seemed like they might have helped and/or been necessary along the way:

- Map service was not enabled for JavaScript support, this was resolved on the server side
- Working with a dynamic map service that can re-project itself over a given basemap
- As noted, do NOT use a fully qualified path to the service, i.e. NO http:// business
- In one of the final not working tests had an extra > bracket at the end of the URL in the JSON code, no errors, just nothing worked

Anyhow, when working this is fast and very cool.  Should say too that for some reason the thumbnail on the service doesn't show up, but this is more of a detail.

Brian.
0 Kudos