POST
|
Hi guys, I need to handle different map layers with different spatial references. When I add a maplayer with different spacial reference (102100 bing map layer) to my mapview I get the error LAYER_LOADING_FAILED with error code (-4010 = spacial ref related error) So I'm thinking its because base layer spatial ref is different than 102100. How do I fix this ? I read in silverlight forum that you can removeAll layers in mapview & setExtent to null will make it possible to add a maplayer with a difference spatial ref. but its not seem to work in android. What should I do ? Any help is appreciated. mapView.removeAll();
mapView.setExtent(null);
mapView.addLayer(new BingMapsLayer("MY_API_KEY", BingMapsLayer.MapStyle.AERIAL_WITH_LABELS,true));
will give error for OnStatusChangedListener() thanks.
... View more
03-18-2013
08:45 AM
|
0
|
0
|
279
|
POST
|
What I've done is catch the zoom event [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(respondToZoom:) name:@"MapDidEndZooming" object:nil]; and reset the scale if it's too low - (void)respondToZoom:(NSNotification*)notification { self.scale = self.mapView.mapScale; if (self.scale < 500) { // zoom out AGSEnvelope *e = self.mapView.visibleArea.envelope; AGSPoint *pt = e.center; [self.mapView zoomToScale:500 withCenterPoint:pt animated:YES]; } } Thanks alot Rick. this seems to be working. I hope they will include an api in future to get rid of the stretchy effect as well 🙂 regards, Marx
... View more
11-25-2012
03:58 PM
|
0
|
0
|
267
|
POST
|
Hello, May I know if its possible to limit zoom on the map beyond certain levels ? I could not find a way referring to the api documentation. My problem is the basemap layer provides detail upto 11 levels (i cant control this one) & the sublayer I add on provides only upto 7 levels of detail. because of this I want to limit the zoom on sublayer by 7 levels. Please provide me instructions on how to achieve this or a workaround. I'm using sdk v2.3.2 I tried some of the undocumented api calls mentioned in some of the old forum threads but they dont seem to work with current sdk. Thanks & Regards, Marx
... View more
11-22-2012
08:17 PM
|
0
|
2
|
2241
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|