POST
|
This must be a difficult subject. Here's where I am. I can get a UIAlertView to appear when the network or Internet is disconnected.:D My problem is when the Internet access is reestablished, the webmap will not refresh or reload.:( John
... View more
09-27-2012
11:39 AM
|
0
|
0
|
225
|
POST
|
This is the code I use to check for Internet access.
- (int)checkForInternetConnection: (Reachability*) curReach {
Reachability *reachability = [Reachability reachabilityForInternetConnection];
NetworkStatus internetStatus = [reachability currentReachabilityStatus];
NSLog(@"Reachability changed: %u", internetStatus);
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"No Internet Connection!"
message:@"This feature requires an Internet connection via WiFi or cellular network to work properly."
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alertView show];
[alertView release];
}
John
... View more
09-26-2012
10:43 AM
|
0
|
0
|
225
|
POST
|
Thanks for the reply. I'm looking to web maps instead. the .tpk I created is a very large file and the project will not fall under the 20MB limit set by Apple App Store submittal. John
... View more
09-26-2012
09:49 AM
|
0
|
0
|
397
|
POST
|
Hello all, Does anyone know where I can find a sample project where a ViewController is monitoring access to the Internet? I have three mapViews (different ViewControllers) and I wish to alert user as to no Internet access. All the examples I've found just check for the status of "Reachability". I have implemented such examples within my project but once network or Internet access is cut off, the app does not act as the "cut off" has happened. A restart is necessary. Thanks for any help with this, John
... View more
09-26-2012
09:36 AM
|
0
|
3
|
568
|
POST
|
Hello, When I create a web map with the Bing Hybrid as a basemap, the aerials don't appear in App. Here's my web map. http://bit.ly/NeRZTL I setup a Bing Maps Key and used the code below.
NSString* bingMapsKey = @"AiI5gp5EuZFwTC7zxNpRrhDDUfwoUfhwOUsesai81b5AhV-zR2t0WYufu1SQcz6L";
AGSBingMapLayer* bingMapLayer = [[AGSBingMapLayer alloc] initWithAppID:bingMapsKey style:AGSBingMapLayerStyleAerialWithLabels];
[self.mapView addMapLayer:bingMapLayer withName:@"Base Map"];
NSLog(@"%@",bingMapLayer);
I'm not sure what I'm missing. Thanks, John
... View more
09-06-2012
11:27 AM
|
0
|
0
|
461
|
POST
|
My apologizes. I have a project that has a web map that allows a call out and popup with attributes on a touch of a "parcel" layer. Now, the client wishes this map to be totally on the App. This will allow field personnel to view the map without network access. I have ArcGIS 10.1 and I have created the .tpk files necessary. The layers load and display onto map fine. Next, I need to allow a call out for a particular parcel. I tried to copy the code from the web map version and found it doesn't work. I assume I'm using the wrong methods. I've been looking at the OnlineOffline Sample and can't find my solution. I've attached the TileMapViewController.h/.m files. I'm not sure what I'm missing. Thank you, John
... View more
09-06-2012
06:00 AM
|
0
|
0
|
397
|
POST
|
Hello Everyone, How do I accomplish this? I've done it using a WebMap but not with a tile package. I'm thinking it's somewhere in the code below. -(void)mapView:(AGSMapView *)mapView didClickCalloutAccessoryButtonForGraphic:(AGSGraphic *)graphic{ self.activeFeatureLayer = (AGSFeatureLayer*) graphic.layer; AGSPopupInfo *info = [AGSPopupInfo popupInfoForGraphic:graphic]; NSLog(@"%@",graphic.layer.name); //Show popup for the graphic because the user tapped on the callout accessory button info.title = @"Parcel Information"; //if (![graphic.layer.name isEqualToString:@"Kochville_Township_Aerials"]){ //ADDED THIS LINE FROM THE "Related Record Editing Sample" //self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithPopupInfo:info graphic:graphic usingNavigationControllerStack:NO] autorelease]; //COMMENTED MY CODE self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithWebMap:self.webmap forFeature:graphic usingNavigationControllerStack:NO] autorelease]; self.popupVC.delegate = self; self.popupVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; //If iPad, use a modal presentation style if([[UIDevice currentDevice] isIPad]) self.popupVC.modalPresentationStyle = UIModalPresentationFormSheet; [self presentModalViewController:self.popupVC animated:YES]; //} } more directly at self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithWebMap:self.webmap forFeature:graphic usingNavigationControllerStack:NO] autorelease]; Any help with this will be greatly appreciated. Thanks, John
... View more
08-31-2012
12:46 PM
|
0
|
4
|
2127
|
POST
|
Thanks for the reply. It sounds like what I'm looking for. Do you know of any examples using AGSWebMap::openIntoMapView:withAlternateBaseMap: and AGSWebMap::openIntoMapView:withAlternateBaseMap:resetMapView:? John
... View more
07-11-2012
12:57 PM
|
0
|
0
|
354
|
POST
|
Hello Everyone, I was wondering how to change the map type by clicking a navigation toolbar button. I'm thinking of creating another web map with Aerial as a base map. Then, on click of button reloading the map with new aerial web map. Is there an easier method? Any help with this is greatly appreciated. John
... View more
07-10-2012
08:07 AM
|
0
|
3
|
2294
|
POST
|
Well, that did it! It works flawlessly. I customize my popup attributes list and it works. Now the task, integrating the sample into my work. What, in your experience, would be the quickest and easily? John
... View more
07-02-2012
09:29 AM
|
0
|
0
|
494
|
POST
|
Unfortunately, when I use your code, I get nothing in the popup box. John
... View more
06-28-2012
10:24 AM
|
0
|
0
|
494
|
POST
|
When I used the following code
self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithWebMap:self.webmap forFeature:graphic usingNavigationControllerStack:NO] autorelease];
and enable popups for the layer in my webmap, the field data does not show up. [ATTACH=CONFIG]15570[/ATTACH] John
... View more
06-28-2012
07:25 AM
|
0
|
0
|
494
|
POST
|
Thank you again. My webmap is http://bit.ly/N3gBJ7 I'm not sure how to post my iOS app. John
... View more
06-27-2012
10:40 AM
|
0
|
0
|
449
|
POST
|
Thanks for the reply and the answer on the popup title. How would you display particular field information? The layer has several fields and I only wish to display a few. John
... View more
06-27-2012
10:37 AM
|
0
|
0
|
494
|
POST
|
I checked and yes, popups are enabled on my webmap. Should they be disabled? John
... View more
06-27-2012
10:25 AM
|
0
|
0
|
449
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|