【问题标题】:iOS + ArcGIS SDK. `AGSPictureMarkerSymbol*` shows on simulator, but doesn't on deviceiOS + ArcGIS SDK。 `AGSPictureMarkerSymbol*` 在模拟器上显示,但不在设备上
【发布时间】:2013-10-01 00:58:27
【问题描述】:

我可以在 iOS 6.1 模拟器上显示 AGSPictureMarkerSymbol*,但是在使用设备(iPhone 4、iOS 6.1)进行调试时,即使代码是“读取”并且没有出现警告或异常,标记只是没有t 出现。代码如下:

AGSPictureMarkerSymbol* locker = [[AGSPictureMarkerSymbol alloc] initWithImageNamed:@"locker.png"];  
AGSPoint* point = [[AGSPoint alloc] initWithX:coord.x y:coord.y spatialReference:self.mapView.spatialReference];
[self.lockersLayer addGraphic:[[AGSGraphic alloc] initWithGeometry:point symbol:locker attributes:nil infoTemplateDelegate:nil]];

作为参考,这个self.lockersLayer 也有很多AGSTextSymbol*,它们显示得很好。

谢谢。

【问题讨论】:

    标签: iphone ios ios-simulator arcgis


    【解决方案1】:

    问题出在locker.png 文件上。不知道到底是什么问题,但是在将其更改为另一张图像后,它开始出现在设备上。

    【讨论】:

      猜你喜欢
      • 2013-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-03
      • 1970-01-01
      • 1970-01-01
      • 2015-05-12
      相关资源
      最近更新 更多