你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
问题
话题
文章
下载
帮助
登录
注册
ArcGIS Runtime SDK for iOS
arcgis iOS 如何在callout willShowForFeature 方法里显示所有的数据
默认情况下:api只提供了三个字段显示气泡
callout.title
callout.detail
callout.image
但是如果我的本地geodatabase里返回十几个字段,如何在点击的时候,在气泡全部显示完整,如图:
我找不到对应的方法,麻烦指导一下,谢谢了
2 个回复
马克玲
赞同来自:
detail里可以显示全部的属性字段呀,举个例子:
- (BOOL)callout:(AGSCallout *)callout willShowForFeature:(id<AGSFeature>)feature layer:(AGSLayer<AGSHitTestable> *)layer mapPoint:(AGSPoint *)mapPoint{
AGSGraphic* graphic = (AGSGraphic*)feature;
callout.title = [graphic attributeAsStringForKey:@"NAME"];
callout.detail = [NSString stringWithFormat:@"'90: %@, '99: %@", [graphic attributeAsStringForKey:@"POP1990"], [graphic attributeAsStringForKey:@"POP1999"]];
return YES;
}
张宝才
-
ArcGIS fans
赞同来自:
需要自定义视图来显示
self.callout.customView = 你自己创建的视图
要回复问题请先
登录
或
注册
发起人
笨笨和蛋蛋
相关问题
如何优雅的使用ArcGIS知乎?
建设ArcGIS知乎平台的目和意义?
作为Desktop用户对数据的获取比较乏力,可能缺了哪些知识?
ArcGIS知乎社区改进意见征集
有谁知道哪里可以免费获取各省市地图数据呢,包括详细的shape文件数据
苹果系统下可以使用arcgis 吗?
请问ArcGIS适合在局域网内用javaweb做二次开发吗?
arcgis版本兼容性
请问大神们,怎么用ArcGIS做城镇间经济联系强度的图?
在Visual studio 2015 中使用 Arcgis API for JavaScript v3.16 如何实现代码智能提示?
ArcGIS如何求栅格图像的“质心”
问题状态
最新活动:
2017-11-24 11:14
浏览:
1879
关注:
3
人
—— 扫技术支持中心微信服务号!
—— 让GIS知乎问答随时随地!
2 个回复
马克玲
赞同来自:
- (BOOL)callout:(AGSCallout *)callout willShowForFeature:(id<AGSFeature>)feature layer:(AGSLayer<AGSHitTestable> *)layer mapPoint:(AGSPoint *)mapPoint{
AGSGraphic* graphic = (AGSGraphic*)feature;
callout.title = [graphic attributeAsStringForKey:@"NAME"];
callout.detail = [NSString stringWithFormat:@"'90: %@, '99: %@", [graphic attributeAsStringForKey:@"POP1990"], [graphic attributeAsStringForKey:@"POP1999"]];
return YES;
}
张宝才 - ArcGIS fans
赞同来自:
self.callout.customView = 你自己创建的视图
要回复问题请先登录或注册
发起人
相关问题
问题状态
—— 扫技术支持中心微信服务号!
—— 让GIS知乎问答随时随地!