首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MapBox MBTiles层问题

MapBox MBTiles层问题
EN

Stack Overflow用户
提问于 2014-08-05 21:45:20
回答 1查看 193关注 0票数 0

我对MapBox非常陌生,我能够使用sqlite管理器从MBTile Sqlite文件中检索值,就像下面的Mapbox方法一样。

代码语言:javascript
复制
- (void)singleTapOnMap:(RMMapView *)mapVi at:(CGPoint)point1 {
   [mapVi removeAllAnnotations];

   RMMapboxSource *source = (RMMapboxSource *)mapVi.tileSource;

   if ([source conformsToProtocol:@protocol(RMInteractiveSource)] && [source supportsInteractivity])
   {
       NSLog(@"formetted1 op=%@ and 2=%@",formattedOutput,formattedOutput2);

       if (formattedOutput && [formattedOutput length])
       {            
           [mapView selectAnnotation:annotation animated:YES];
       }        
       NSLog(@"You tapped at %f, %f", [mapVi pixelToCoordinate:point1].latitude, [mapVi pixelToCoordinate:point1].longitude);     
   }
}

我怎么能做到这一点。请帮帮我

致敬(&S)

EN

回答 1

Stack Overflow用户

发布于 2014-09-16 17:46:29

您需要使用以下公式将纬度和经度转换为平铺行/列。

将以下链接用于公式http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Tile_servers

然后在SQLlite的帮助下对其进行映射。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25140366

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档