POST
|
Hi Nimesh, Thanks for you response. Okay i try to explain the problem in different cases. Case1: In normal condition when our server is up and running and on iPhone device wifi is available and internet is accessible, then application loads maps correctly and shows everything. Case 2: Now let suppose device's wifi is not available or we switch it off for testing then if we try to load the maps from device then event "-(void) mapViewAGSMapView *)mapView failedLoadingLayerForLayerViewUIView<AGSLayerView> *)layerView withErrorNSError *)error" calls correctly and we can tell user that wifi is not available. Case 3: Now let suppose device's wifi is available but somehow internet access is not available then if we try to load the maps from device then again event "-(void) mapViewAGSMapView *)mapView failedLoadingLayerForLayerViewUIView<AGSLayerView> *)layerView withErrorNSError *)error" calls correctly and we can tell user that internet is not available. Case 4: If we turn the server off or make it inaccesible then if we try to load the maps from device then again event "-(void) mapViewAGSMapView *)mapView failedLoadingLayerForLayerViewUIView<AGSLayerView> *)layerView withErrorNSError *)error" calls correctly and we can tell user server is not available. Case 5: Problem Case: If during server upgradation/maintenance or caching tiles at the server, In this case wifi is available, internet is working, server is also accessible, but server's map layers itself caching or upgrading so at that instance map layer are present at server but not correct, so at this instance if we try to load the maps from device then event "-(void) mapViewAGSMapView *)mapView failedLoadingLayerForLayerViewUIView<AGSLayerView> *)layerView withErrorNSError *)error" NEVER CALLS and application crashes. hope this guide to understand the problem. please let me know if you need more detail on it? Regards, Khurram Saleem
... View more
01-23-2012
01:17 AM
|
0
|
0
|
337
|
POST
|
No dear i didnt found any fix for this issue. It seems the issue is in ArcGIS library itself. Even no Esri support members attending this issue. Please let me know if you get anything on it or if i will get any update then i will let you know also. Regards, Khurram Saleem
... View more
01-19-2012
03:50 AM
|
0
|
0
|
337
|
POST
|
Hello, I am having a problem while loading map layer, problem is defined as below: We had deployed our own local server and exposed different map layers services. When there is some maintenance or updating is in progress at our local server. During that time if we run the iPhone application which accesses our local server then application crashes. Where as application should activate the "-(void) mapView:(AGSMapView *)mapView failedLoadingLayerForLayerView:(UIView<AGSLayerView> *)layerView withError:(NSError *)error" or "-(void) mapView:(AGSMapView *)mapView failedLoadingWithError:(NSError *)error" events. According to my understanding actually at server maintenance time when iPhone app tries to load the layer, at that time layer is not correct, so ArcGIS library thinks it to be correct and start doing its processing over that layer, so during that process some error occurs and app crashes. Once our servers are fully up and correct the same app runs perfect. Secondly i think the error delegates which i mentioned above fired only when server is not available at all, or service is not found, or service is inaccessible, or connection lost, or network not available. But in my case everything is available but map layer itself not correct at server side. So it not handled in ArcGIS library and app crashes. Can you please let me know is this is some known or unknown issue of ArcGIS library or i am missing something. I had seen this problem in old API as well as new 2.1 api as well.
... View more
01-03-2012
09:23 PM
|
0
|
4
|
621
|
POST
|
Hi Nimesh, Thanks a lot for your help. It worked and maps are now showing correctly overlapped. On server spatial reference are now kept same for all map layers. Regards, Khurram Saleem
... View more
01-02-2012
09:42 PM
|
0
|
0
|
614
|
POST
|
Thanks for your reply. Our Server team had contacted to ESRI directly, and they had told that on server some mobile content settings needs to be enable, which currently not enabled, i am not sure what that settings is. But now this is concluded that this problem is at server side. I will update you here as well what they do. So that all can have benefit of that. Thanks Khurram Saleem
... View more
12-29-2011
09:37 PM
|
0
|
0
|
614
|
POST
|
Thanks Nimesh for your response. I had checked and the spatial reference for base map layer is something very strange very long string, and other language layers has 28600. I will let our server team know that they need to correct spatial reference. Are you sure this is the problem due to which the maps are not showing correctly? Have you seen the services links i given you? is there any other mistake? Regards Khurram Saleem
... View more
12-29-2011
02:12 AM
|
0
|
0
|
614
|
POST
|
I am implementing these services developing IOS application using xcode. Below is the code i am using. self.mapView.layerDelegate = self; self.mapView.calloutDelegate = self; NSString *URLSatellite_BaseMap = [NSString stringWithFormat:URL_SATELLITE_MAP_BASE_LAYER]; NSString *URLStreet_Map_ARB = [NSString stringWithFormat:URL_STREET_ARABIC_LAYER]; NSString *URLStreet_Map_ENG = [NSString stringWithFormat:URL_STREET_ENGLISH_LAYER]; NSString *URLVector_BaseMap = [NSString stringWithFormat:URL_VECTOR_MAP_BASE_LAYER]; AGSTiledMapServiceLayer * tiledSatelite_BaseMap = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:[NSURL URLWithString:URLSatellite_BaseMap]]; AGSLayerView_Satellite_BaseMap = [mapView addMapLayer:tiledSatelite_BaseMap withName:SATELLITE_BASE_MAP_LAYER]; self.AGSLayerView_Satellite_BaseMap.drawDuringPanning = YES; self.AGSLayerView_Satellite_BaseMap.drawDuringZooming = YES; AGSTiledMapServiceLayer * tiledStreet_ENG = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:[NSURL URLWithString:URLStreet_Map_ENG]]; AGSLayerView_StreetMap_ENG = [mapView addMapLayer:tiledStreet_ENG withName:STREET_MAP_LAYER_ENG]; AGSTiledMapServiceLayer * tiledStreet_ARB = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:[NSURL URLWithString:URLStreet_Map_ARB]]; AGSLayerView_StreetMap_ARB = [mapView addMapLayer:tiledStreet_ARB withName:STREET_MAP_LAYER_ARB]; self.mapView.touchDelegate = self; AGSEnvelope *envelope; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { envelope = [AGSEnvelope envelopeWithXmin: INITIAL_X_MIN_IPAD ymin:INITIAL_Y_MIN_IPAD xmax:INITIAL_X_MAX_IPAD ymax:INITIAL_Y_MAX_IPAD spatialReference: [AGSSpatialReference spatialReferenceWithWKID:28600]]; } else { envelope = [AGSEnvelope envelopeWithXmin: INITIAL_X_MIN ymin:INITIAL_Y_MIN xmax:INITIAL_X_MAX ymax:INITIAL_Y_MAX spatialReference: [AGSSpatialReference spatialReferenceWithWKID:28600]]; } [self.mapView zoomToEnvelope:envelope animated:YES];
... View more
12-28-2011
03:14 AM
|
0
|
0
|
614
|
POST
|
Thanks for your response. Please find the services which are giving problem. 1. "http://89.211.33.57/ArcGIS/rest/services/StreetsA/MapServer" 2. "http://89.211.33.57/ArcGIS/rest/services/StreetsE/MapServer" 3. "http://89.211.33.57/ArcGIS/rest/services/SatelitteMap/MapServer" These services currently caching the images. number 3 is the base map layer and other 1 & 2 are different languages layers as i discussed in previous message. While testing i had seen another behavior. My iphone application shows maps correctly when i just replaced the above URL links with the esri services url as given. 1. "http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer" 2. "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" Maps are correctly showing as desired on iphone overlapped to each other. Its mean it could be the problem of how servers are established? Please let me know if there is something to do with servers settings? Or we can resolve this issue at iphone side, by using some strategy? Or i am implementing in wrong way?
... View more
12-28-2011
03:03 AM
|
0
|
0
|
614
|
POST
|
Hello, I am having a problem using map layers, below is my requirement: 1. I have two or more map layers to be shown overlapped to each other. 2. One map layer is the base layer which is fetched from server as tilled layer and added to map layer and it contains only satellite images of format JPEG. 3. Second layer which is street layers must be overlapped over base map layer of different languages e.g English, Arabic, french etc. 4. the different language street layers can be turned OFF and ON as per language selected by user. 5. So at any time atmost two layers must be visible one is base map layer and second is any language layer. 6. Language layers of course needs to be of PNG8, PNG32 with transparency enabled so that base map layer also visible. So now problem is this, as i noticed if base layer is of JPEG format then other layers of different formats e.g PNG then they are not visible. but such layers which has same format as base layers are overlapped properly and visible. Please reply me to resolve this problem or any other idea is also welcome. Regards, Khurram Saleem
... View more
12-26-2011
10:44 PM
|
0
|
9
|
1051
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|