XCode:Arcgis API:在表视图中显示多个图层的多种要素类型
我试图在多个图层中列出多种要素类型,就像 ESRI 的 ArcGIS for iPhone 应用程序所做的那样(针对不同的要求)。每个层都需要形成表视图的不同部分,并且该层内的所有要素类型都将是该部分的元素。
我已经尝试实现这一目标大约一个月了,但没有成功。 :(
虽然这与 ESRI 示例中的 FeatureLayerEditingSample 类似,但仅显示一层 [http://www.arcgis.com/home/item.html?id=2ddb261648074b9aabb22240b6975918]
我不确定如何传递整个动态层(在地图视图中初始化)到一个新的表视图控制器,然后显示所有图层(以及每一层)。
我们可以在哪里找到这个或任何相关教程的源代码参考吗?
这是我的第一个 iOS 项目,我非常感谢任何帮助, 非常感谢, 巴斯卡兰
I am trying to list multiple feature types in multiple layers like how ESRI's ArcGIS application for iPhone does (for different requirements). Each layer would need to form a different section of the table view and all the feature types within that layer would be the elements of that section.
I have been trying to achieve this for about a month now, with no success. :(
Though this is similar to the FeatureLayerEditingSample in ESRI's samples, that displays only one Layer [http://www.arcgis.com/home/item.html?id=2ddb261648074b9aabb22240b6975918]
I am unsure how to pass the whole dynamic layer (initialized in a map view) to a new table view controller and then display all layers (and the feature types in each layer).
Is there somewhere we can find the source code reference for this or any related tutorials?
This is my first iOS project and I really appreciate any help in this,
Thanks a ton,
Baskaran
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
直接在应用程序中使用 shapefile 很困难。您应该将 shapefile-s 转换为 kml,然后在您的应用程序中使用它们。将它们用作 KML(按类别分组等)会更容易。
KML 是一种 XML 结构(因此很容易与 NSXmlParser 一起使用)。
您可以使用 shp2kml 转换文件(您可以在此处获取)
Using shapefile directly in your app is difficult. You should convert your shapefile-s to kml and after that use them in your app. It will be way easier to use them as KML (grouping in categories, etc.).
KML is an XML structure (so it's easy to use with NSXmlParser).
You can convert your files with shp2kml (you can get it here)