实例介绍
地图找房-高德地图显示数据点 - 按比例尺缩放显示数目---> (1.发起请求传给后台当前用户坐标。 2.让后台按用户位置将周边一定范围内(后台可调)的排序,返回。 3.前端请求到数据后,最近的电站数据在数组第一个,此时调用地图API的showAnnotations方法,显示用户位置和最近的房源大头针AnnotationView)--->XLsn0wKit--->(https://github.com/XLsn0w/XLsn0wKit_objc)
【实例截图】
【核心代码】
4744300845199798392.zip
├── Amap-Demo-甯傜骇-璇︽儏鍒囨崲(缂╂斁+鐐瑰嚮)
│ ├── AMapDemo
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ │ ├── ATM.imageset
│ │ │ │ ├── ATM@2x.png
│ │ │ │ ├── ATM@3x.png
│ │ │ │ └── Contents.json
│ │ │ ├── bus.imageset
│ │ │ │ ├── bus@2x.png
│ │ │ │ ├── bus@3x.png
│ │ │ │ └── Contents.json
│ │ │ ├── bus_orange.imageset
│ │ │ │ ├── bus_orange@2x.png
│ │ │ │ ├── bus_orange@3x.png
│ │ │ │ └── Contents.json
│ │ │ ├── Contents.json
│ │ │ ├── cycling.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── cycling@2x.png
│ │ │ │ └── cycling@3x.png
│ │ │ ├── cycling_orange.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── cycling_orange@2x.png
│ │ │ │ └── cycling_orange@3x.png
│ │ │ ├── driving.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── driving@2x.png
│ │ │ │ └── driving@3x.png
│ │ │ ├── driving_orange.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── driving_orange@2x.png
│ │ │ │ └── driving_orange@3x.png
│ │ │ ├── exchange.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── exchange@2x.png
│ │ │ │ └── exchange@3x.png
│ │ │ ├── food.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── food@2x.png
│ │ │ │ └── food@3x.png
│ │ │ ├── green_tf.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── green@2x.png
│ │ │ │ └── green@3x.png
│ │ │ ├── homelocation.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ └── homelocation@2x.png
│ │ │ ├── shoping.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── shoping@2x.png
│ │ │ │ └── shoping@3x.png
│ │ │ ├── supermarket.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── supermarket@2x.png
│ │ │ │ └── supermarket@3x.png
│ │ │ ├── walk.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── walk@2x.png
│ │ │ │ └── walk@3x.png
│ │ │ └── walk_orange.imageset
│ │ │ ├── Contents.json
│ │ │ ├── walk_orange@2x.png
│ │ │ └── walk_orange@3x.png
│ │ ├── Base.lproj
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ ├── community.png
│ │ ├── Controller
│ │ │ ├── ShowStationViewController.h
│ │ │ └── ShowStationViewController.m
│ │ ├── Info.plist
│ │ ├── main.m
│ │ ├── Model
│ │ │ ├── GDAnnotation.h
│ │ │ ├── GDAnnotation.m
│ │ │ └── MapFindViewModel.h
│ │ ├── PrefixHeader.pch
│ │ ├── View
│ │ │ ├── RectangleAnnotationView.h
│ │ │ ├── RectangleAnnotationView.m
│ │ │ ├── RoundAnnotationView.h
│ │ │ └── RoundAnnotationView.m
│ │ └── ViewModel
│ │ ├── StationDataViewModel.h
│ │ └── StationDataViewModel.m
│ ├── AMapDemo.xcodeproj
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcuserdata
│ │ │ └── ginlong.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ └── xcuserdata
│ │ └── ginlong.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
│ ├── AMapDemo.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ └── ginlong.xcuserdatad
│ │ ├── UserInterfaceState.xcuserstate
│ │ └── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ ├── Podfile
│ ├── Podfile.lock
│ └── Pods
│ ├── AMap3DMap
│ │ └── MAMapKit.framework
│ │ ├── AMap.bundle
│ │ │ ├── AMap3D.bundle
│ │ │ │ ├── 3dlandscape.xml
│ │ │ │ ├── 3dportrait.xml
│ │ │ │ ├── 3d_sky_day.data
│ │ │ │ ├── 3d_sky_night.data
│ │ │ │ ├── bktile.data
│ │ │ │ ├── bktile_n.data
│ │ │ │ ├── building.data
│ │ │ │ ├── config_1_1_1470722888.data
│ │ │ │ ├── config_2_1_1470363686.data
│ │ │ │ ├── dash_cd.data
│ │ │ │ ├── dash.data
│ │ │ │ ├── dash_tq.data
│ │ │ │ ├── icons_11_12_1488521704.data
│ │ │ │ ├── icons_1_12_1498048291.data
│ │ │ │ ├── icons_2_12_1498048312.data
│ │ │ │ ├── icons_26_10_1476066932.data
│ │ │ │ ├── icons_27_10_1475031813.data
│ │ │ │ ├── icons_3_12_1498048330.data
│ │ │ │ ├── icons_4_12_1488521409.data
│ │ │ │ ├── icons_50_10_1470645645.data
│ │ │ │ ├── icons_5_12_1488354051.data
│ │ │ │ ├── icons_6_12_1497253591.data
│ │ │ │ ├── icons_7_12_1497253551.data
│ │ │ │ ├── icons_8_12_1498048348.data
│ │ │ │ ├── icons_9_10_1476066932.data
│ │ │ │ ├── lineround.data
│ │ │ │ ├── roadarrow.data
│ │ │ │ ├── search_scenic_icon.data
│ │ │ │ ├── style_100_10_1497254453.data
│ │ │ │ ├── style_10_10_1472718686.data
│ │ │ │ ├── style_1_10_1498047646.data
│ │ │ │ ├── style_12_10_1467006104.data
│ │ │ │ ├── style_13_10_1497252546.data
│ │ │ │ ├── style_14_10_1497252572.data
│ │ │ │ ├── style_15_10_1497583771.data
│ │ │ │ ├── style_17_10_1488360312.data
│ │ │ │ ├── style_30_10_1498047712.data
│ │ │ │ ├── style_3_10_1497252336.data
│ │ │ │ ├── style_31_10_1498047749.data
│ │ │ │ ├── style_32_10_1498047781.data
│ │ │ │ ├── style_33_10_1498047815.data
│ │ │ │ ├── style_4_10_1498463093.data
│ │ │ │ ├── style_50_10_1470645645.data
│ │ │ │ ├── style_5_10_1498463124.data
│ │ │ │ ├── style_6_10_1497252523.data
│ │ │ │ ├── style_8_10_1497252659.data
│ │ │ │ ├── tbl.data
│ │ │ │ ├── tbl_l.data
│ │ │ │ ├── tbl_n.data
│ │ │ │ ├── tgl.data
│ │ │ │ ├── tgl_l.data
│ │ │ │ ├── tgl_n.data
│ │ │ │ ├── tmc_blind_amble.data
│ │ │ │ ├── tmc_blind_congestion.data
│ │ │ │ ├── tmc_blind_null.data
│ │ │ │ ├── tmc_blind_severe_congestion.data
│ │ │ │ ├── tmc_blind_smoothly.data
│ │ │ │ ├── tnl.data
│ │ │ │ ├── tnl_l.data
│ │ │ │ ├── tnl_n.data
│ │ │ │ ├── trl.data
│ │ │ │ ├── trl_l.data
│ │ │ │ ├── trl_n.data
│ │ │ │ ├── tyl.data
│ │ │ │ ├── tyl_l.data
│ │ │ │ ├── tyl_n.data
│ │ │ │ ├── VM3DRes
│ │ │ │ │ ├── cross_bg_day.png
│ │ │ │ │ ├── cross_bg_night.png
│ │ │ │ │ ├── cross_bg.png
│ │ │ │ │ ├── d_yellow_day.png
│ │ │ │ │ ├── d_yellow_night.png
│ │ │ │ │ ├── d_yellow.png
│ │ │ │ │ ├── grass_day.png
│ │ │ │ │ ├── grass_night.png
│ │ │ │ │ ├── roadbk_main_day.png
│ │ │ │ │ ├── roadbk_main_night.png
│ │ │ │ │ ├── roadbk_main.png
│ │ │ │ │ ├── road_bottom_day.png
│ │ │ │ │ ├── road_bottom_night.png
│ │ │ │ │ └── road_bottom.png
│ │ │ │ └── waterline.data
│ │ │ ├── Bundle3D.plist
│ │ │ ├── images
│ │ │ │ ├── arrow_line_inner.png
│ │ │ │ ├── calloutArrowMask@2x.png
│ │ │ │ ├── calloutArrowMask.png
│ │ │ │ ├── greenPin@2x.png
│ │ │ │ ├── greenPin@3x.png
│ │ │ │ ├── greenPin_lift@2x.png
│ │ │ │ ├── greenPin_lift@3x.png
│ │ │ │ ├── greenPin_lift.png
│ │ │ │ ├── greenPin.png
│ │ │ │ ├── lineDashTextureDot.png
│ │ │ │ ├── lineDashTexture.png
│ │ │ │ ├── lineDashTextureThin.png
│ │ │ │ ├── lineTexture.png
│ │ │ │ ├── lineTextureThin.png
│ │ │ │ ├── marker_blue@2x.png
│ │ │ │ ├── marker_blue.png
│ │ │ │ ├── offline_clear@2x.png
│ │ │ │ ├── offline_down@2x.png
│ │ │ │ ├── offline_shouqi_2@2x.png
│ │ │ │ ├── offline_shouqi@2x.png
│ │ │ │ ├── offline_sousuo@2x.png
│ │ │ │ ├── offline_zhankai_2@2x.png
│ │ │ │ ├── offline_zhankai@2x.png
│ │ │ │ ├── pin_shadow@2x.png
│ │ │ │ ├── pin_shadow@3x.png
│ │ │ │ ├── pin_shadow.png
│ │ │ │ ├── purplePin@2x.png
│ │ │ │ ├── purplePin@3x.png
│ │ │ │ ├── purplePin_lift@2x.png
│ │ │ │ ├── purplePin_lift@3x.png
│ │ │ │ ├── purplePin_lift.png
│ │ │ │ ├── purplePin.png
│ │ │ │ ├── redPin@2x.png
│ │ │ │ ├── redPin@3x.png
│ │ │ │ ├── redPin_lift@2x.png
│ │ │ │ ├── redPin_lift@3x.png
│ │ │ │ ├── redPin_lift.png
│ │ │ │ ├── redPin.png
│ │ │ │ ├── select_@2x.png
│ │ │ │ ├── select_@3x.png
│ │ │ │ ├── select_.png
│ │ │ │ ├── traffic_texture_blue.png
│ │ │ │ ├── traffic_texture_darkred.png
│ │ │ │ ├── traffic_texture_gray.png
│ │ │ │ ├── traffic_texture_green.png
│ │ │ │ ├── traffic_texture_red.png
│ │ │ │ └── traffic_texture_yellow.png
│ │ │ └── offline
│ │ │ └── offlinePackage.plist
│ │ ├── Headers
│ │ │ ├── MAAnimatedAnnotation.h
│ │ │ ├── MAAnnotation.h
│ │ │ ├── MAAnnotationMoveAnimation.h
│ │ │ ├── MAAnnotationView.h
│ │ │ ├── MACircle.h
│ │ │ ├── MACircleRenderer.h
│ │ │ ├── MAConfig.h
│ │ │ ├── MACustomCalloutView.h
│ │ │ ├── MAGeodesicPolyline.h
│ │ │ ├── MAGeometry.h
│ │ │ ├── MAGroundOverlay.h
│ │ │ ├── MAGroundOverlayRenderer.h
│ │ │ ├── MAHeatMapTileOverlay.h
│ │ │ ├── MAIndoorInfo.h
│ │ │ ├── MALineDrawType.h
│ │ │ ├── MAMapAccessibilityIdentifier.h
│ │ │ ├── MAMapKit.h
│ │ │ ├── MAMapStatus.h
│ │ │ ├── MAMapVersion.h
│ │ │ ├── MAMapView.h
│ │ │ ├── MAMultiColoredPolylineRenderer.h
│ │ │ ├── MAMultiPoint.h
│ │ │ ├── MAMultiPointOverlay.h
│ │ │ ├── MAMultiPointOverlayRenderer.h
│ │ │ ├── MAMultiPolyline.h
│ │ │ ├── MAMultiTexturePolylineRenderer.h
│ │ │ ├── MAOfflineCity.h
│ │ │ ├── MAOfflineItemCommonCity.h
│ │ │ ├── MAOfflineItem.h
│ │ │ ├── MAOfflineItemMunicipality.h
│ │ │ ├── MAOfflineItemNationWide.h
│ │ │ ├── MAOfflineMap.h
│ │ │ ├── MAOfflineMapViewController.h
│ │ │ ├── MAOfflineProvince.h
│ │ │ ├── MAOverlay.h
│ │ │ ├── MAOverlayPathRenderer.h
│ │ │ ├── MAOverlayRenderer.h
│ │ │ ├── MAPinAnnotationView.h
│ │ │ ├── MAPointAnnotation.h
│ │ │ ├── MAPolygon.h
│ │ │ ├── MAPolygonRenderer.h
│ │ │ ├── MAPolyline.h
│ │ │ ├── MAPolylineRenderer.h
│ │ │ ├── MAShape.h
│ │ │ ├── MATileOverlay.h
│ │ │ ├── MATileOverlayRenderer.h
│ │ │ ├── MATouchPoi.h
│ │ │ ├── MATraceLocation.h
│ │ │ ├── MATraceManager.h
│ │ │ ├── MAUserLocation.h
│ │ │ └── MAUserLocationRepresentation.h
│ │ ├── MAMapKit
│ │ └── version.txt
│ ├── AMapFoundation
│ │ └── AMapFoundationKit.framework
│ │ ├── AMapFoundationKit
│ │ ├── Headers
│ │ │ ├── AMapFoundationKit.h
│ │ │ ├── AMapFoundationVersion.h
│ │ │ ├── AMapServices.h
│ │ │ ├── AMapURLSearchConfig.h
│ │ │ ├── AMapURLSearch.h
│ │ │ ├── AMapURLSearchType.h
│ │ │ └── AMapUtility.h
│ │ ├── Modules
│ │ │ └── module.modulemap
│ │ └── version.txt
│ ├── AMapLocation
│ │ └── AMapLocationKit.framework
│ │ ├── AMapLocationKit
│ │ ├── Headers
│ │ │ ├── AMapGeoFenceError.h
│ │ │ ├── AMapGeoFenceManager.h
│ │ │ ├── AMapGeoFenceRegionObj.h
│ │ │ ├── AMapLocationCommonObj.h
│ │ │ ├── AMapLocationKit.h
│ │ │ ├── AMapLocationManager.h
│ │ │ ├── AMapLocationRegionObj.h
│ │ │ └── AMapLocationVersion.h
│ │ └── version.txt
│ ├── Headers
│ │ └── Public
│ │ ├── AMap3DMap
│ │ │ └── MAMapKit
│ │ │ ├── MAAnimatedAnnotation.h
│ │ │ ├── MAAnnotation.h
│ │ │ ├── MAAnnotationMoveAnimation.h
│ │ │ ├── MAAnnotationView.h
│ │ │ ├── MACircle.h
│ │ │ ├── MACircleRenderer.h
│ │ │ ├── MAConfig.h
│ │ │ ├── MACustomCalloutView.h
│ │ │ ├── MAGeodesicPolyline.h
│ │ │ ├── MAGeometry.h
│ │ │ ├── MAGroundOverlay.h
│ │ │ ├── MAGroundOverlayRenderer.h
│ │ │ ├── MAHeatMapTileOverlay.h
│ │ │ ├── MAIndoorInfo.h
│ │ │ ├── MALineDrawType.h
│ │ │ ├── MAMapAccessibilityIdentifier.h
│ │ │ ├── MAMapKit.h
│ │ │ ├── MAMapStatus.h
│ │ │ ├── MAMapVersion.h
│ │ │ ├── MAMapView.h
│ │ │ ├── MAMultiColoredPolylineRenderer.h
│ │ │ ├── MAMultiPoint.h
│ │ │ ├── MAMultiPointOverlay.h
│ │ │ ├── MAMultiPointOverlayRenderer.h
│ │ │ ├── MAMultiPolyline.h
│ │ │ ├── MAMultiTexturePolylineRenderer.h
│ │ │ ├── MAOfflineCity.h
│ │ │ ├── MAOfflineItemCommonCity.h
│ │ │ ├── MAOfflineItem.h
│ │ │ ├── MAOfflineItemMunicipality.h
│ │ │ ├── MAOfflineItemNationWide.h
│ │ │ ├── MAOfflineMap.h
│ │ │ ├── MAOfflineMapViewController.h
│ │ │ ├── MAOfflineProvince.h
│ │ │ ├── MAOverlay.h
│ │ │ ├── MAOverlayPathRenderer.h
│ │ │ ├── MAOverlayRenderer.h
│ │ │ ├── MAPinAnnotationView.h
│ │ │ ├── MAPointAnnotation.h
│ │ │ ├── MAPolygon.h
│ │ │ ├── MAPolygonRenderer.h
│ │ │ ├── MAPolyline.h
│ │ │ ├── MAPolylineRenderer.h
│ │ │ ├── MAShape.h
│ │ │ ├── MATileOverlay.h
│ │ │ ├── MATileOverlayRenderer.h
│ │ │ ├── MATouchPoi.h
│ │ │ ├── MATraceLocation.h
│ │ │ ├── MATraceManager.h
│ │ │ ├── MAUserLocation.h
│ │ │ └── MAUserLocationRepresentation.h
│ │ ├── AMapFoundation
│ │ │ └── AMapFoundationKit
│ │ │ ├── AMapFoundationKit.h
│ │ │ ├── AMapFoundationVersion.h
│ │ │ ├── AMapServices.h
│ │ │ ├── AMapURLSearchConfig.h
│ │ │ ├── AMapURLSearch.h
│ │ │ ├── AMapURLSearchType.h
│ │ │ └── AMapUtility.h
│ │ └── AMapLocation
│ │ └── AMapLocationKit
│ │ ├── AMapGeoFenceError.h
│ │ ├── AMapGeoFenceManager.h
│ │ ├── AMapGeoFenceRegionObj.h
│ │ ├── AMapLocationCommonObj.h
│ │ ├── AMapLocationKit.h
│ │ ├── AMapLocationManager.h
│ │ ├── AMapLocationRegionObj.h
│ │ └── AMapLocationVersion.h
│ ├── Local Podspecs
│ ├── Manifest.lock
│ ├── Pods.xcodeproj
│ │ ├── project.pbxproj
│ │ └── xcuserdata
│ │ └── ginlong.xcuserdatad
│ │ └── xcschemes
│ │ ├── Pods-AMapDemo.xcscheme
│ │ └── xcschememanagement.plist
│ └── Target Support Files
│ └── Pods-AMapDemo
│ ├── Pods-AMapDemo-acknowledgements.markdown
│ ├── Pods-AMapDemo-acknowledgements.plist
│ ├── Pods-AMapDemo.debug.xcconfig
│ ├── Pods-AMapDemo-dummy.m
│ ├── Pods-AMapDemo-frameworks.sh
│ ├── Pods-AMapDemo.release.xcconfig
│ └── Pods-AMapDemo-resources.sh
└── __MACOSX
└── Amap-Demo-甯傜骇-璇︽儏鍒囨崲(缂╂斁+鐐瑰嚮)
├── AMapDemo
│ ├── Base.lproj
│ ├── Controller
│ ├── Model
│ ├── View
│ └── ViewModel
├── AMapDemo.xcodeproj
└── Pods
76 directories, 355 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论