// Copyright 2010 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the use restrictions at http://help.arcgis.com/en/sdk/10.0/usageRestrictions.htm
//
#import <UIKit/UIKit.h>
#import "ArcGIS.h"
#define kBaseMapService @"http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
#define kGeometryBufferService @"http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer"
#define kesriSRUnit_SurveyMile 9035
#define kesriSRUnit_Meter 9001
#define kWebMercator 102100
@interface GeometryServiceSampleViewController : UIViewController < AGSGeometryServiceTaskDelegate, AGSMapViewDelegate > {
UINavigationBar *_navBar;
UIButton *_goBtn;
UIButton *_clearGraphicsBtn;
UIView *_statusView;
UILabel *_statusLabel; /* label that informs user to click points/number of pts clicked */
AGSMapView *_mapView;
AGSGraphicsLayer *_graphicsLayer;
NSMutableArray *_geometryArray; /* holds on to the buffered geometries until "clear" clicked */
NSInteger _numPoints; /* keeps track of the number of points the user has clicked */
NSMutableArray *_pushpins; /* holds on to the pushpins that mark where the user clicks */
AGSGeometryServiceTask *_gst; /* The Geometry Service Task we will use to execute operations */
}
@property (nonatomic, retain) IBOutlet UIButton *goBtn;
@property (nonatomic, retain) IBOutlet UIButton *clearGraphicsBtn;
@property (nonatomic, retain) IBOutlet UINavigationBar *navBar;
@property (nonatomic, retain) IBOutlet UIView *statusView;
@property (nonatomic, retain) IBOutlet UILabel *statusLabel;
@property (nonatomic, retain) IBOutlet AGSMapView *mapView;
@property (nonatomic, retain) AGSGraphicsLayer *graphicsLayer;
@property (nonatomic, retain) NSMutableArray *geometryArray;
@property (nonatomic, retain) NSMutableArray *pushpins;
@property (nonatomic, retain) AGSGeometryServiceTask *gst;
/* Called when the user clicks the "Go" button on the UINavigation Bar
* Kicks off the Geometry Service Task given the user has selected >= 1 point
*/
- (IBAction)goBtnClicked:(id)sender;
/* Clears all of the graphics from the view
*/
- (IBAction)clearGraphicsBtnClicked:(id)sender;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ArcGIS API for iOS 使您可使用 Objective C 构建多种应用程序(这些应用程序将运用 ArcGIS Server 提供的强大制图、地理编码、地理处理和自定义功能)并将它们部署到 Apple iPhone、iPod Touch 和 iPad 设备。API 包括可在 Xcode 集成开发环境 (IDE) 中使用的本地 Objective C 库、模板和实例。
资源推荐
资源详情
资源评论
收起资源包目录
GeometryServiceTaskDemo.zip (20个子文件)
GeometryServiceTaskDemo
esri.png 2KB
GeometryServiceSampleViewController.xib 31KB
pushpin.png 1KB
GpsDisplayHeading.png 2KB
GeometryServiceTaskDemo-Info.plist 917B
icon@2x.png 3KB
GeometryServiceTaskDemo_Prefix.pch 211B
GpsDisplay@2x.png 3KB
MainWindow.xib 10KB
GeometryServiceTaskDemo.xcodeproj
project.pbxproj 17KB
main.m 653B
GpsDisplay.png 1KB
.DS_Store 6KB
Classes
GeometryServiceSampleViewController.h 2KB
GeometryServiceSampleAppDelegate.m 995B
GeometryServiceSampleViewController.m 10KB
GeometryServiceSampleAppDelegate.h 813B
GpsDisplayHeading@2x.png 3KB
icon.png 2KB
esri@2x.png 5KB
共 20 条
- 1
资源评论
- dianfu20112013-05-16很好的例子 ,值得学习
逍遥墨君
- 粉丝: 26
- 资源: 632
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- java医院数据分析管理系统源码数据库 MySQL源码类型 WebForm
- 59e81b49-3120-4f21-a2b7-bc440de0bd88_0.jpeg
- 时间序列-白银-5秒数据
- c++练习题目:通讯录管理系统
- java仓库管理系统源码数据库 MySQL源码类型 WebForm
- 同济大学作业之-LPC分析(男声变女声)和PCM编码
- java超市订单管理系统源码数据库 MySQL源码类型 WebForm
- 记录windows安装nvm:nvm-setup-2024-11-16.exe.zip
- 同济大学数字信号处理实验(包含实验报告)
- Kettle 是Kettle E.T.T.L. Envirnonment只取首字母的缩写,这意味着它被设计用来帮助你实现你的
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功