POST
|
I have to check if the geometry is zoomed to a particular resolution It should be visible to the user/ This code below works perfectly fine when maps rotating angle is 0. but when rotating angle is other than 0 , [self.mapView zoomToGeometry:[self.editLayerManager geometry] withPadding:[defaultScale floatValue] animated:YES]; doesn't zoom to exact geometry with padding. AGSMutableEnvelope *visibleAreaEnvelope = [self.mapView.visibleArea.envelope mutableCopy]; float zoomFactor = [levelScale doubleValue]/self.mapView.resolution; [visibleAreaEnvelope centerAtPoint:[self.editLayerManager zoomToGeometryCenter]]; [visibleAreaEnvelope expandByFactor:zoomFactor]; if (![visibleAreaEnvelope containsEnvelope:[self.editLayerManager geometryEnvelope]]) { [self.mapView zoomToGeometry:[self.editLayerManager geometry] withPadding:[defaultScale floatValue] animated:YES]; } } else { [self.mapView zoomToResolution:[levelScale doubleValue] withCenterPoint:[self.editLayerManager zoomToGeometryCenter] animated:YES]; }
... View more
04-28-2015
10:43 PM
|
0
|
1
|
311
|
POST
|
-(void)zoomToGeometry:(AGSGeometry*)geometry withPadding:(CGFloat)padding animated:(BOOL)animated; doesn't zoom to geometry when the map is rotated , it works fine when the map rotation angle is 0.
... View more
04-27-2015
09:06 PM
|
0
|
3
|
4298
|
POST
|
With future research I found that the request URL formed to get the tile data were inappropriate. Request template: http://maps1.wien.gv.at/basemap/bmaphidpi/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg /basemap/bmaphidpi/normal/google3857/8/88/134.jpeg (Request URL formed on Android) /basemap/default/bmaphidpi/google3857/2/2/1.jpeg (Request URL formed on Android) Also Tried to fix this by SubClassing AGSWMTSLayer , overriding -(void)requestTileForKey:(AGSTileKey*)key and -(NSURL*)urlForTileKey:(AGSTileKey*)key where I try to manipulate the URL to replicate the Android Url in turn returning success response , but still the tile data isn't visible. Any clue on why this happens ?
... View more
02-11-2015
03:09 AM
|
0
|
1
|
643
|
POST
|
I am having the same problem. I have created a property . Still I can only see the grids of the map,. When I check the requests (using wireshark) I see the url request isnt formed properly. (Compared with Android.) Can anyone help ?
... View more
02-09-2015
12:14 AM
|
0
|
0
|
358
|
POST
|
- (void)startWMTSLayerSetUp { NSString *wmtsUrl = [[[DataManager sharedInstance] getWMTSInfoUrl] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; if (!wmtsUrl) return; self.wmtsInfo = [[AGSWMTSInfo alloc] initWithURL:[NSURL URLWithString:wmtsUrl]]; self.wmtsInfo.delegate = self; } - (void)wmtsInfoDidLoad:(AGSWMTSInfo *)wmtsInfo { NSArray *layerInfos = [wmtsInfo layerInfos]; for (AGSWMTSLayerInfo *layerInfo in layerInfos) { self.wmtsLayer = [wmtsInfo wmtsLayerWithLayerInfo:layerInfos[0] andSpatialReference:self.mapView.spatialReference]; self.wmtsLayer.delegate = self; NSUInteger value = [layerInfos indexOfObjectIdenticalTo:layerInfo]; [self.mapView insertMapLayer:self.wmtsLayer withName:layerInfo.title atIndex:value]; } } Here is the url I use https://show.msgis.net/wmts/basemap-WMTSCapabilities.xml blank map grid view is shown. and delegates say that the layers are loaded . Same functionality works perfectly fine for this url http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
... View more
02-03-2015
02:49 AM
|
0
|
2
|
3706
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|