react-native-map4d-map-dtqg 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +133 -41
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +60 -60
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/java/com/reactnativemap4dmap/ImageUtils.java +87 -87
- package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +298 -298
- package/android/src/main/java/com/reactnativemap4dmap/Map4dMapPackage.java +35 -35
- package/android/src/main/java/com/reactnativemap4dmap/Map4dMapViewManager.java +31 -31
- package/android/src/main/java/com/reactnativemap4dmap/RMFBuilding.java +167 -167
- package/android/src/main/java/com/reactnativemap4dmap/RMFBuildingManager.java +121 -121
- package/android/src/main/java/com/reactnativemap4dmap/RMFCircle.java +105 -105
- package/android/src/main/java/com/reactnativemap4dmap/RMFCircleManager.java +121 -121
- package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRenderer.java +502 -502
- package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRendererManager.java +143 -143
- package/android/src/main/java/com/reactnativemap4dmap/RMFFeature.java +17 -17
- package/android/src/main/java/com/reactnativemap4dmap/RMFMapView.java +1172 -1172
- package/android/src/main/java/com/reactnativemap4dmap/RMFMapViewManager.java +231 -226
- package/android/src/main/java/com/reactnativemap4dmap/RMFMarker.java +412 -412
- package/android/src/main/java/com/reactnativemap4dmap/RMFMarkerManager.java +211 -211
- package/android/src/main/java/com/reactnativemap4dmap/RMFPOI.java +222 -222
- package/android/src/main/java/com/reactnativemap4dmap/RMFPOIManager.java +119 -119
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolygon.java +172 -172
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolygonManager.java +147 -147
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolyline.java +146 -146
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolylineManager.java +137 -137
- package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlay.java +95 -95
- package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlayManager.java +64 -64
- package/android/src/main/java/com/reactnativemap4dmap/SizeReportingShadowNode.java +31 -31
- package/android/src/main/java/com/reactnativemap4dmap/ViewAttacherGroup.java +31 -31
- package/android/src/main/java/com/reactnativemap4dmap/ViewChangesTracker.java +70 -70
- package/android/src/main/java/vn/map4d/map/annotations/RMFBitmapDescriptor.java +9 -9
- package/ios/Map4dMap.h +7 -7
- package/ios/Map4dMap.m +14 -14
- package/ios/Map4dMapViewManager.m +34 -34
- package/ios/RCTConvert+Map4dMap.h +33 -33
- package/ios/RCTConvert+Map4dMap.m +112 -112
- package/ios/RMFCircle.h +37 -37
- package/ios/RMFCircle.m +100 -100
- package/ios/RMFCircleManager.h +18 -18
- package/ios/RMFCircleManager.m +155 -155
- package/ios/RMFCircleMap4d.h +23 -23
- package/ios/RMFCircleMap4d.m +13 -13
- package/ios/RMFCoordinate.h +22 -22
- package/ios/RMFCoordinate.m +13 -13
- package/ios/RMFDirectionsMarkerOptions.h +24 -24
- package/ios/RMFDirectionsMarkerOptions.m +23 -23
- package/ios/RMFDirectionsRenderer.h +47 -47
- package/ios/RMFDirectionsRenderer.m +182 -182
- package/ios/RMFDirectionsRendererManager.h +17 -17
- package/ios/RMFDirectionsRendererManager.m +84 -84
- package/ios/RMFDirectionsRendererMap4d.h +21 -21
- package/ios/RMFDirectionsRendererMap4d.m +12 -12
- package/ios/RMFDummyView.h +6 -6
- package/ios/RMFDummyView.m +12 -12
- package/ios/RMFEventResponse.h +39 -39
- package/ios/RMFEventResponse.m +98 -98
- package/ios/RMFIcon.h +24 -24
- package/ios/RMFIcon.m +35 -35
- package/ios/RMFMapView.h +84 -84
- package/ios/RMFMapView.m +376 -376
- package/ios/RMFMapViewManager.h +17 -17
- package/ios/RMFMapViewManager.m +508 -493
- package/ios/RMFMarker.h +57 -57
- package/ios/RMFMarker.m +267 -267
- package/ios/RMFMarkerManager.h +17 -17
- package/ios/RMFMarkerManager.m +156 -156
- package/ios/RMFMarkerMap4d.h +19 -19
- package/ios/RMFMarkerMap4d.m +13 -13
- package/ios/RMFPOI.h +38 -38
- package/ios/RMFPOI.m +123 -123
- package/ios/RMFPOIManager.h +18 -18
- package/ios/RMFPOIManager.m +168 -168
- package/ios/RMFPOIMap4d.h +22 -22
- package/ios/RMFPOIMap4d.m +12 -12
- package/ios/RMFPolygon.h +41 -41
- package/ios/RMFPolygon.m +106 -106
- package/ios/RMFPolygonManager.h +18 -18
- package/ios/RMFPolygonManager.m +141 -141
- package/ios/RMFPolygonMap4d.h +23 -23
- package/ios/RMFPolygonMap4d.m +15 -15
- package/ios/RMFPolyline.h +38 -38
- package/ios/RMFPolyline.m +101 -101
- package/ios/RMFPolylineManager.h +18 -18
- package/ios/RMFPolylineManager.m +139 -139
- package/ios/RMFPolylineMap4d.h +22 -22
- package/ios/RMFPolylineMap4d.m +15 -15
- package/ios/building/RMFBuilding.h +41 -41
- package/ios/building/RMFBuilding.m +104 -104
- package/ios/building/RMFBuildingManager.h +19 -19
- package/ios/building/RMFBuildingManager.m +133 -133
- package/ios/building/RMFBuildingMap4d.h +23 -23
- package/ios/building/RMFBuildingMap4d.m +15 -15
- package/ios/overlays/RMFTileOverlay.h +36 -36
- package/ios/overlays/RMFTileOverlay.m +64 -64
- package/ios/overlays/RMFTileOverlayManager.h +17 -17
- package/ios/overlays/RMFTileOverlayManager.m +27 -27
- package/lib/commonjs/components/MFBanDoSo.js +109 -0
- package/lib/commonjs/components/MFBanDoSo.js.map +1 -0
- package/lib/commonjs/components/MFBuilding.js +26 -26
- package/lib/commonjs/components/MFBuilding.js.map +1 -1
- package/lib/commonjs/components/MFCircle.js +20 -20
- package/lib/commonjs/components/MFCircle.js.map +1 -1
- package/lib/commonjs/components/MFDirectionsRenderer.js +32 -32
- package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
- package/lib/commonjs/components/MFMapView.js +152 -71
- package/lib/commonjs/components/MFMapView.js.map +1 -1
- package/lib/commonjs/components/MFMarker.js +35 -35
- package/lib/commonjs/components/MFMarker.js.map +1 -1
- package/lib/commonjs/components/MFPOI.js +20 -20
- package/lib/commonjs/components/MFPOI.js.map +1 -1
- package/lib/commonjs/components/MFPolygon.js +22 -22
- package/lib/commonjs/components/MFPolygon.js.map +1 -1
- package/lib/commonjs/components/MFPolyline.js +18 -18
- package/lib/commonjs/components/MFPolyline.js.map +1 -1
- package/lib/commonjs/components/MFTileOverlay.js +9 -9
- package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
- package/lib/commonjs/components/Map4dMapView.js.map +1 -1
- package/lib/commonjs/components/extends/AreaFocusManager.js +205 -0
- package/lib/commonjs/components/extends/AreaFocusManager.js.map +1 -0
- package/lib/commonjs/components/extends/AreaFocuser.js +73 -0
- package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -0
- package/lib/commonjs/components/extends/BoundHelper.js +36 -0
- package/lib/commonjs/components/extends/BoundHelper.js.map +1 -0
- package/lib/commonjs/components/extends/area/AreaFocusAreas.js +167 -0
- package/lib/commonjs/components/extends/area/AreaFocusAreas.js.map +1 -0
- package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js +164 -0
- package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js.map +1 -0
- package/lib/commonjs/components/extends/area/AreaFocusSession.js +100 -0
- package/lib/commonjs/components/extends/area/AreaFocusSession.js.map +1 -0
- package/lib/commonjs/components/extends/area/AreaFocusTypes.js +40 -0
- package/lib/commonjs/components/extends/area/AreaFocusTypes.js.map +1 -0
- package/lib/commonjs/components/internal/DefaultRoadmapStyle.js +2288 -0
- package/lib/commonjs/components/internal/DefaultRoadmapStyle.js.map +1 -0
- package/lib/commonjs/components/internal/GeojsonStyleUtils.js +139 -0
- package/lib/commonjs/components/internal/GeojsonStyleUtils.js.map +1 -0
- package/lib/commonjs/index.js +16 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/components/MFBanDoSo.js +92 -0
- package/lib/module/components/MFBanDoSo.js.map +1 -0
- package/lib/module/components/MFBuilding.js +26 -26
- package/lib/module/components/MFBuilding.js.map +1 -1
- package/lib/module/components/MFCircle.js +20 -20
- package/lib/module/components/MFCircle.js.map +1 -1
- package/lib/module/components/MFDirectionsRenderer.js +32 -32
- package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
- package/lib/module/components/MFMapView.js +149 -71
- package/lib/module/components/MFMapView.js.map +1 -1
- package/lib/module/components/MFMarker.js +35 -35
- package/lib/module/components/MFMarker.js.map +1 -1
- package/lib/module/components/MFPOI.js +20 -20
- package/lib/module/components/MFPOI.js.map +1 -1
- package/lib/module/components/MFPolygon.js +22 -22
- package/lib/module/components/MFPolygon.js.map +1 -1
- package/lib/module/components/MFPolyline.js +18 -18
- package/lib/module/components/MFPolyline.js.map +1 -1
- package/lib/module/components/MFTileOverlay.js +9 -9
- package/lib/module/components/MFTileOverlay.js.map +1 -1
- package/lib/module/components/Map4dMapView.js.map +1 -1
- package/lib/module/components/extends/AreaFocusManager.js +193 -0
- package/lib/module/components/extends/AreaFocusManager.js.map +1 -0
- package/lib/module/components/extends/AreaFocuser.js +64 -0
- package/lib/module/components/extends/AreaFocuser.js.map +1 -0
- package/lib/module/components/extends/BoundHelper.js +29 -0
- package/lib/module/components/extends/BoundHelper.js.map +1 -0
- package/lib/module/components/extends/area/AreaFocusAreas.js +156 -0
- package/lib/module/components/extends/area/AreaFocusAreas.js.map +1 -0
- package/lib/module/components/extends/area/AreaFocusGeometryUtils.js +153 -0
- package/lib/module/components/extends/area/AreaFocusGeometryUtils.js.map +1 -0
- package/lib/module/components/extends/area/AreaFocusSession.js +93 -0
- package/lib/module/components/extends/area/AreaFocusSession.js.map +1 -0
- package/lib/module/components/extends/area/AreaFocusTypes.js +33 -0
- package/lib/module/components/extends/area/AreaFocusTypes.js.map +1 -0
- package/lib/module/components/internal/DefaultRoadmapStyle.js +2281 -0
- package/lib/module/components/internal/DefaultRoadmapStyle.js.map +1 -0
- package/lib/module/components/internal/GeojsonStyleUtils.js +130 -0
- package/lib/module/components/internal/GeojsonStyleUtils.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/components/Map4dMapView.d.ts +7 -7
- package/package.json +152 -152
- package/react-native-map4d-map.podspec +20 -20
- package/src/components/MFBanDoSo.js +124 -0
- package/src/components/MFBuilding.js +187 -187
- package/src/components/MFCircle.js +173 -173
- package/src/components/MFDirectionsRenderer.js +237 -237
- package/src/components/MFMapView.js +464 -373
- package/src/components/MFMarker.js +246 -246
- package/src/components/MFPOI.js +184 -184
- package/src/components/MFPolygon.js +186 -186
- package/src/components/MFPolyline.js +172 -172
- package/src/components/MFTileOverlay.js +45 -45
- package/src/components/Map4dMapView.tsx +26 -26
- package/src/components/extends/AreaFocusManager.js +196 -0
- package/src/components/extends/AreaFocuser.js +62 -0
- package/src/components/extends/BoundHelper.js +32 -0
- package/src/components/extends/area/AreaFocusAreas.js +164 -0
- package/src/components/extends/area/AreaFocusGeometryUtils.js +164 -0
- package/src/components/extends/area/AreaFocusSession.js +100 -0
- package/src/components/extends/area/AreaFocusTypes.js +36 -0
- package/src/components/internal/DefaultRoadmapStyle.js +3365 -0
- package/src/components/internal/GeojsonStyleUtils.js +143 -0
- package/src/index.js +25 -21
package/ios/RMFDummyView.m
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
#import <Foundation/Foundation.h>
|
|
3
|
-
#import "RMFDummyView.h"
|
|
4
|
-
|
|
5
|
-
@implementation RMFDummyView
|
|
6
|
-
- (instancetype)initWithView:(UIView*)view
|
|
7
|
-
{
|
|
8
|
-
if ((self = [super init])) {
|
|
9
|
-
self.view = view;
|
|
10
|
-
}
|
|
11
|
-
return self;
|
|
12
|
-
}
|
|
1
|
+
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
#import "RMFDummyView.h"
|
|
4
|
+
|
|
5
|
+
@implementation RMFDummyView
|
|
6
|
+
- (instancetype)initWithView:(UIView*)view
|
|
7
|
+
{
|
|
8
|
+
if ((self = [super init])) {
|
|
9
|
+
self.view = view;
|
|
10
|
+
}
|
|
11
|
+
return self;
|
|
12
|
+
}
|
|
13
13
|
@end
|
package/ios/RMFEventResponse.h
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RMFEventResponse.h
|
|
3
|
-
// Map4dMap
|
|
4
|
-
//
|
|
5
|
-
// Created by Huy Dang on 7/8/20.
|
|
6
|
-
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef MFEventResponse_h
|
|
10
|
-
#define MFEventResponse_h
|
|
11
|
-
|
|
12
|
-
#import <CoreLocation/CoreLocation.h>
|
|
13
|
-
|
|
14
|
-
@class RMFMarker;
|
|
15
|
-
@class RMFCircle;
|
|
16
|
-
@class RMFPOI;
|
|
17
|
-
@class RMFPolyline;
|
|
18
|
-
@class RMFPolygon;
|
|
19
|
-
|
|
20
|
-
@class MFPOI;
|
|
21
|
-
@class MFProjection;
|
|
22
|
-
@class MFCameraPosition;
|
|
23
|
-
@class MFCoordinateBounds;
|
|
24
|
-
|
|
25
|
-
FOUNDATION_EXPORT NSString *const kRMFLatLngCoordinateResponseKey;
|
|
26
|
-
FOUNDATION_EXPORT NSString *const kRMFPointCoordinateResponseKey;
|
|
27
|
-
|
|
28
|
-
@interface RMFEventResponse : NSObject
|
|
29
|
-
|
|
30
|
-
+ (NSDictionary*)fromCoordinate:(CLLocationCoordinate2D)coordinate;
|
|
31
|
-
+ (NSDictionary*)fromCoordinate:(CLLocationCoordinate2D)location pixel:(CGPoint)pixel;
|
|
32
|
-
+ (NSDictionary*)fromCameraPosition:(MFCameraPosition*) position;
|
|
33
|
-
+ (NSDictionary*)fromCoordinateBounds:(MFCoordinateBounds*)bounds;
|
|
34
|
-
+ (NSDictionary*)fromCGPoint:(CGPoint) point;
|
|
35
|
-
+ (NSDictionary*)fromCLLocation:(CLLocation*) location;
|
|
36
|
-
|
|
37
|
-
@end
|
|
38
|
-
|
|
39
|
-
#endif /* RMFEventResponse_h */
|
|
1
|
+
//
|
|
2
|
+
// RMFEventResponse.h
|
|
3
|
+
// Map4dMap
|
|
4
|
+
//
|
|
5
|
+
// Created by Huy Dang on 7/8/20.
|
|
6
|
+
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef MFEventResponse_h
|
|
10
|
+
#define MFEventResponse_h
|
|
11
|
+
|
|
12
|
+
#import <CoreLocation/CoreLocation.h>
|
|
13
|
+
|
|
14
|
+
@class RMFMarker;
|
|
15
|
+
@class RMFCircle;
|
|
16
|
+
@class RMFPOI;
|
|
17
|
+
@class RMFPolyline;
|
|
18
|
+
@class RMFPolygon;
|
|
19
|
+
|
|
20
|
+
@class MFPOI;
|
|
21
|
+
@class MFProjection;
|
|
22
|
+
@class MFCameraPosition;
|
|
23
|
+
@class MFCoordinateBounds;
|
|
24
|
+
|
|
25
|
+
FOUNDATION_EXPORT NSString *const kRMFLatLngCoordinateResponseKey;
|
|
26
|
+
FOUNDATION_EXPORT NSString *const kRMFPointCoordinateResponseKey;
|
|
27
|
+
|
|
28
|
+
@interface RMFEventResponse : NSObject
|
|
29
|
+
|
|
30
|
+
+ (NSDictionary*)fromCoordinate:(CLLocationCoordinate2D)coordinate;
|
|
31
|
+
+ (NSDictionary*)fromCoordinate:(CLLocationCoordinate2D)location pixel:(CGPoint)pixel;
|
|
32
|
+
+ (NSDictionary*)fromCameraPosition:(MFCameraPosition*) position;
|
|
33
|
+
+ (NSDictionary*)fromCoordinateBounds:(MFCoordinateBounds*)bounds;
|
|
34
|
+
+ (NSDictionary*)fromCGPoint:(CGPoint) point;
|
|
35
|
+
+ (NSDictionary*)fromCLLocation:(CLLocation*) location;
|
|
36
|
+
|
|
37
|
+
@end
|
|
38
|
+
|
|
39
|
+
#endif /* RMFEventResponse_h */
|
package/ios/RMFEventResponse.m
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RMFEventResponse.m
|
|
3
|
-
// Map4dMap
|
|
4
|
-
//
|
|
5
|
-
// Created by Huy Dang on 7/8/20.
|
|
6
|
-
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "RMFEventResponse.h"
|
|
10
|
-
#import "RMFMarker.h"
|
|
11
|
-
#import "RMFCircle.h"
|
|
12
|
-
#import "RMFPolyline.h"
|
|
13
|
-
#import "RMFPolygon.h"
|
|
14
|
-
#import "RMFPOI.h"
|
|
15
|
-
|
|
16
|
-
NSString *const kRMFLatLngCoordinateResponseKey = @"location";
|
|
17
|
-
NSString *const kRMFPointCoordinateResponseKey = @"pixel";
|
|
18
|
-
|
|
19
|
-
@implementation RMFEventResponse
|
|
20
|
-
|
|
21
|
-
+ (NSString*) hexStringFromColor:(UIColor*) color {
|
|
22
|
-
if (color != nil) {
|
|
23
|
-
CGFloat r, g, b, a;
|
|
24
|
-
[color getRed:&r green:&g blue:&b alpha:&a];
|
|
25
|
-
return [NSString stringWithFormat:@"#%02lX%02lX%02lX%02lX", lroundf(r * 255), lroundf(g * 255), lroundf(b * 255), lroundf(a * 255)];
|
|
26
|
-
}
|
|
27
|
-
return @"";
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
+ (NSDictionary*)fromCoordinate:(CLLocationCoordinate2D)coordinate {
|
|
31
|
-
return (@{
|
|
32
|
-
@"latitude": @(coordinate.latitude),
|
|
33
|
-
@"longitude": @(coordinate.longitude),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
+ (NSDictionary*)fromCameraPosition:(MFCameraPosition*) position {
|
|
38
|
-
if (position == nil) {
|
|
39
|
-
return (@{});
|
|
40
|
-
}
|
|
41
|
-
return (@{
|
|
42
|
-
@"center": @{
|
|
43
|
-
@"latitude": @(position.target.latitude),
|
|
44
|
-
@"longitude": @(position.target.longitude)
|
|
45
|
-
},
|
|
46
|
-
@"zoom": @(position.zoom),
|
|
47
|
-
@"bearing": @(position.bearing),
|
|
48
|
-
@"tilt": @(position.tilt)
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
+ (NSDictionary*)fromCoordinateBounds:(MFCoordinateBounds*)bounds {
|
|
53
|
-
if (bounds == nil) {
|
|
54
|
-
return @{};
|
|
55
|
-
}
|
|
56
|
-
return @{
|
|
57
|
-
@"northEast": @{
|
|
58
|
-
@"latitude": @(bounds.northEast.latitude),
|
|
59
|
-
@"longitude": @(bounds.northEast.longitude)
|
|
60
|
-
},
|
|
61
|
-
@"southWest": @{
|
|
62
|
-
@"latitude": @(bounds.southWest.latitude),
|
|
63
|
-
@"longitude": @(bounds.southWest.longitude)
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
+ (NSDictionary*)fromCGPoint:(CGPoint) point {
|
|
69
|
-
return (@{ @"x": @(point.x), @"y": @(point.y) });
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
+ (NSDictionary*)fromCLLocation:(CLLocation *)location {
|
|
73
|
-
if (location == nil) {
|
|
74
|
-
return (@{});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return (@{
|
|
78
|
-
@"coordinate": @{
|
|
79
|
-
@"latitude": @(location.coordinate.latitude),
|
|
80
|
-
@"longitude": @(location.coordinate.longitude)
|
|
81
|
-
},
|
|
82
|
-
@"altitude": @(location.altitude),
|
|
83
|
-
@"timestamp": @(location.timestamp.timeIntervalSinceReferenceDate * 1000),
|
|
84
|
-
@"accuracy": @(location.horizontalAccuracy),
|
|
85
|
-
@"altitudeAccuracy": @(location.verticalAccuracy),
|
|
86
|
-
@"speed": @(location.speed),
|
|
87
|
-
@"heading": @(location.course),
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
+ (NSDictionary *)fromCoordinate:(CLLocationCoordinate2D)location pixel:(CGPoint)pixel {
|
|
92
|
-
return @{
|
|
93
|
-
kRMFLatLngCoordinateResponseKey: [RMFEventResponse fromCoordinate:location],
|
|
94
|
-
kRMFPointCoordinateResponseKey: [RMFEventResponse fromCGPoint:pixel]
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// RMFEventResponse.m
|
|
3
|
+
// Map4dMap
|
|
4
|
+
//
|
|
5
|
+
// Created by Huy Dang on 7/8/20.
|
|
6
|
+
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "RMFEventResponse.h"
|
|
10
|
+
#import "RMFMarker.h"
|
|
11
|
+
#import "RMFCircle.h"
|
|
12
|
+
#import "RMFPolyline.h"
|
|
13
|
+
#import "RMFPolygon.h"
|
|
14
|
+
#import "RMFPOI.h"
|
|
15
|
+
|
|
16
|
+
NSString *const kRMFLatLngCoordinateResponseKey = @"location";
|
|
17
|
+
NSString *const kRMFPointCoordinateResponseKey = @"pixel";
|
|
18
|
+
|
|
19
|
+
@implementation RMFEventResponse
|
|
20
|
+
|
|
21
|
+
+ (NSString*) hexStringFromColor:(UIColor*) color {
|
|
22
|
+
if (color != nil) {
|
|
23
|
+
CGFloat r, g, b, a;
|
|
24
|
+
[color getRed:&r green:&g blue:&b alpha:&a];
|
|
25
|
+
return [NSString stringWithFormat:@"#%02lX%02lX%02lX%02lX", lroundf(r * 255), lroundf(g * 255), lroundf(b * 255), lroundf(a * 255)];
|
|
26
|
+
}
|
|
27
|
+
return @"";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
+ (NSDictionary*)fromCoordinate:(CLLocationCoordinate2D)coordinate {
|
|
31
|
+
return (@{
|
|
32
|
+
@"latitude": @(coordinate.latitude),
|
|
33
|
+
@"longitude": @(coordinate.longitude),
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
+ (NSDictionary*)fromCameraPosition:(MFCameraPosition*) position {
|
|
38
|
+
if (position == nil) {
|
|
39
|
+
return (@{});
|
|
40
|
+
}
|
|
41
|
+
return (@{
|
|
42
|
+
@"center": @{
|
|
43
|
+
@"latitude": @(position.target.latitude),
|
|
44
|
+
@"longitude": @(position.target.longitude)
|
|
45
|
+
},
|
|
46
|
+
@"zoom": @(position.zoom),
|
|
47
|
+
@"bearing": @(position.bearing),
|
|
48
|
+
@"tilt": @(position.tilt)
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
+ (NSDictionary*)fromCoordinateBounds:(MFCoordinateBounds*)bounds {
|
|
53
|
+
if (bounds == nil) {
|
|
54
|
+
return @{};
|
|
55
|
+
}
|
|
56
|
+
return @{
|
|
57
|
+
@"northEast": @{
|
|
58
|
+
@"latitude": @(bounds.northEast.latitude),
|
|
59
|
+
@"longitude": @(bounds.northEast.longitude)
|
|
60
|
+
},
|
|
61
|
+
@"southWest": @{
|
|
62
|
+
@"latitude": @(bounds.southWest.latitude),
|
|
63
|
+
@"longitude": @(bounds.southWest.longitude)
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
+ (NSDictionary*)fromCGPoint:(CGPoint) point {
|
|
69
|
+
return (@{ @"x": @(point.x), @"y": @(point.y) });
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
+ (NSDictionary*)fromCLLocation:(CLLocation *)location {
|
|
73
|
+
if (location == nil) {
|
|
74
|
+
return (@{});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return (@{
|
|
78
|
+
@"coordinate": @{
|
|
79
|
+
@"latitude": @(location.coordinate.latitude),
|
|
80
|
+
@"longitude": @(location.coordinate.longitude)
|
|
81
|
+
},
|
|
82
|
+
@"altitude": @(location.altitude),
|
|
83
|
+
@"timestamp": @(location.timestamp.timeIntervalSinceReferenceDate * 1000),
|
|
84
|
+
@"accuracy": @(location.horizontalAccuracy),
|
|
85
|
+
@"altitudeAccuracy": @(location.verticalAccuracy),
|
|
86
|
+
@"speed": @(location.speed),
|
|
87
|
+
@"heading": @(location.course),
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
+ (NSDictionary *)fromCoordinate:(CLLocationCoordinate2D)location pixel:(CGPoint)pixel {
|
|
92
|
+
return @{
|
|
93
|
+
kRMFLatLngCoordinateResponseKey: [RMFEventResponse fromCoordinate:location],
|
|
94
|
+
kRMFPointCoordinateResponseKey: [RMFEventResponse fromCGPoint:pixel]
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@end
|
package/ios/RMFIcon.h
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RMFIcon.h
|
|
3
|
-
// Map4dMap
|
|
4
|
-
//
|
|
5
|
-
// Created by Huy Dang on 7/13/20.
|
|
6
|
-
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef RMFIcon_h
|
|
10
|
-
#define RMFIcon_h
|
|
11
|
-
|
|
12
|
-
@interface RMFIcon : NSObject
|
|
13
|
-
|
|
14
|
-
@property (nonatomic, copy, nullable) NSString *uri;
|
|
15
|
-
@property (nonatomic, assign, nullable) NSNumber *width;
|
|
16
|
-
@property (nonatomic, assign, nullable) NSNumber *height;
|
|
17
|
-
|
|
18
|
-
@property (nonatomic, copy, nullable) UIImage* image;
|
|
19
|
-
|
|
20
|
-
- (instancetype _Nonnull) init;
|
|
21
|
-
|
|
22
|
-
@end
|
|
23
|
-
|
|
24
|
-
#endif /* RMFIcon_h */
|
|
1
|
+
//
|
|
2
|
+
// RMFIcon.h
|
|
3
|
+
// Map4dMap
|
|
4
|
+
//
|
|
5
|
+
// Created by Huy Dang on 7/13/20.
|
|
6
|
+
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef RMFIcon_h
|
|
10
|
+
#define RMFIcon_h
|
|
11
|
+
|
|
12
|
+
@interface RMFIcon : NSObject
|
|
13
|
+
|
|
14
|
+
@property (nonatomic, copy, nullable) NSString *uri;
|
|
15
|
+
@property (nonatomic, assign, nullable) NSNumber *width;
|
|
16
|
+
@property (nonatomic, assign, nullable) NSNumber *height;
|
|
17
|
+
|
|
18
|
+
@property (nonatomic, copy, nullable) UIImage* image;
|
|
19
|
+
|
|
20
|
+
- (instancetype _Nonnull) init;
|
|
21
|
+
|
|
22
|
+
@end
|
|
23
|
+
|
|
24
|
+
#endif /* RMFIcon_h */
|
package/ios/RMFIcon.m
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RMFIcon.m
|
|
3
|
-
// Map4dMap
|
|
4
|
-
//
|
|
5
|
-
// Created by Huy Dang on 7/13/20.
|
|
6
|
-
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "RMFIcon.h"
|
|
10
|
-
#import <Foundation/Foundation.h>
|
|
11
|
-
|
|
12
|
-
@implementation RMFIcon
|
|
13
|
-
|
|
14
|
-
- (instancetype _Nonnull) init {
|
|
15
|
-
self = [super init];
|
|
16
|
-
self.uri = nil;
|
|
17
|
-
self.width = nil;
|
|
18
|
-
self.height = nil;
|
|
19
|
-
self.image = nil;
|
|
20
|
-
return self;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
- (void)setImage:(UIImage *)image {
|
|
24
|
-
if ((image.size.width == [_width intValue] && image.size.height == [_height intValue]) || (_width == nil || _height == nil)) {
|
|
25
|
-
_image = image;
|
|
26
|
-
} else {
|
|
27
|
-
CGSize newSize = CGSizeMake([_width intValue], [_height intValue]);
|
|
28
|
-
UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0);
|
|
29
|
-
[image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
|
|
30
|
-
_image = UIGraphicsGetImageFromCurrentImageContext();
|
|
31
|
-
UIGraphicsEndImageContext();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// RMFIcon.m
|
|
3
|
+
// Map4dMap
|
|
4
|
+
//
|
|
5
|
+
// Created by Huy Dang on 7/13/20.
|
|
6
|
+
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "RMFIcon.h"
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
@implementation RMFIcon
|
|
13
|
+
|
|
14
|
+
- (instancetype _Nonnull) init {
|
|
15
|
+
self = [super init];
|
|
16
|
+
self.uri = nil;
|
|
17
|
+
self.width = nil;
|
|
18
|
+
self.height = nil;
|
|
19
|
+
self.image = nil;
|
|
20
|
+
return self;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
- (void)setImage:(UIImage *)image {
|
|
24
|
+
if ((image.size.width == [_width intValue] && image.size.height == [_height intValue]) || (_width == nil || _height == nil)) {
|
|
25
|
+
_image = image;
|
|
26
|
+
} else {
|
|
27
|
+
CGSize newSize = CGSizeMake([_width intValue], [_height intValue]);
|
|
28
|
+
UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0);
|
|
29
|
+
[image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
|
|
30
|
+
_image = UIGraphicsGetImageFromCurrentImageContext();
|
|
31
|
+
UIGraphicsEndImageContext();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@end
|
package/ios/RMFMapView.h
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RMFMapView.h
|
|
3
|
-
// Map4dMap
|
|
4
|
-
//
|
|
5
|
-
// Created by Huy Dang on 4/27/20.
|
|
6
|
-
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef RMFMapView_h
|
|
10
|
-
#define RMFMapView_h
|
|
11
|
-
|
|
12
|
-
#import <UIKit/UIKit.h>
|
|
13
|
-
#import <Map4dMap/Map4dMap.h>
|
|
14
|
-
#import <React/RCTComponent.h>
|
|
15
|
-
|
|
16
|
-
@interface RMFMapView : MFMapView
|
|
17
|
-
|
|
18
|
-
@property (nonatomic, copy) RCTBubblingEventBlock onMapReady;
|
|
19
|
-
//@property (nonatomic, copy) RCTBubblingEventBlock onMapLoaded;
|
|
20
|
-
//@property (nonatomic, copy) RCTBubblingEventBlock onKmlReady;
|
|
21
|
-
@property (nonatomic, copy) RCTBubblingEventBlock onPress;
|
|
22
|
-
//@property (nonatomic, copy) RCTBubblingEventBlock onLongPress;
|
|
23
|
-
//@property (nonatomic, copy) RCTBubblingEventBlock onPanDrag;
|
|
24
|
-
//@property (nonatomic, copy) RCTBubblingEventBlock onUserLocationChange;
|
|
25
|
-
//@property (nonatomic, copy) RCTBubblingEventBlock onMarkerPress;
|
|
26
|
-
//@property (nonatomic, copy) RCTBubblingEventBlock onChange;
|
|
27
|
-
@property (nonatomic, copy) RCTBubblingEventBlock onPoiPress;
|
|
28
|
-
@property (nonatomic, copy) RCTBubblingEventBlock onBuildingPress;
|
|
29
|
-
@property (nonatomic, copy) RCTBubblingEventBlock onPlacePress;
|
|
30
|
-
@property (nonatomic, copy) RCTBubblingEventBlock onDataSourceFeaturePress;
|
|
31
|
-
//@property (nonatomic, copy) RCTDirectEventBlock onRegionChange;
|
|
32
|
-
//@property (nonatomic, copy) RCTDirectEventBlock onRegionChangeComplete;
|
|
33
|
-
//@property (nonatomic, copy) RCTDirectEventBlock onIndoorLevelActivated;
|
|
34
|
-
//@property (nonatomic, copy) RCTDirectEventBlock onIndoorBuildingFocused;
|
|
35
|
-
@property (nonatomic, copy) RCTDirectEventBlock onCameraMove;
|
|
36
|
-
@property (nonatomic, copy) RCTDirectEventBlock onCameraMoveStart;
|
|
37
|
-
@property (nonatomic, copy) RCTDirectEventBlock onCameraIdle;
|
|
38
|
-
@property (nonatomic, copy) RCTDirectEventBlock onMyLocationButtonPress;
|
|
39
|
-
|
|
40
|
-
//@property (nonatomic, assign) MKCoordinateRegion initialRegion;
|
|
41
|
-
//@property (nonatomic, assign) MKCoordinateRegion region;
|
|
42
|
-
@property (nonatomic, assign) NSString* mapIdProp;
|
|
43
|
-
@property (nonatomic, assign) MFCameraPosition *cameraProp; // Because the base class already has a "camera" prop.
|
|
44
|
-
@property (nonatomic, assign) NSString* mapTypeProp;
|
|
45
|
-
//@property (nonatomic, assign) GMSCameraPosition *initialCamera;
|
|
46
|
-
//@property (nonatomic, assign) NSString *customMapStyleString;
|
|
47
|
-
//@property (nonatomic, assign) UIEdgeInsets mapPadding;
|
|
48
|
-
//@property (nonatomic, assign) NSString *paddingAdjustmentBehaviorString;
|
|
49
|
-
|
|
50
|
-
@property (nonatomic, assign) BOOL showsBuildings;
|
|
51
|
-
@property (nonatomic, assign) BOOL showsPOIs;
|
|
52
|
-
//@property (nonatomic, assign) BOOL showsTraffic;
|
|
53
|
-
//@property (nonatomic, assign) BOOL showsCompass;
|
|
54
|
-
|
|
55
|
-
@property (nonatomic, assign) BOOL zoomGesturesEnabled;
|
|
56
|
-
@property (nonatomic, assign) BOOL scrollGesturesEnabled;
|
|
57
|
-
@property (nonatomic, assign) BOOL rotateGesturesEnabled;
|
|
58
|
-
@property (nonatomic, assign) BOOL tiltGesturesEnabled;
|
|
59
|
-
|
|
60
|
-
@property (nonatomic, assign) BOOL showsMyLocation;
|
|
61
|
-
@property (nonatomic, assign) BOOL showsMyLocationButton;
|
|
62
|
-
//@property (nonatomic, assign) BOOL showsIndoors;
|
|
63
|
-
//@property (nonatomic, assign) BOOL showsIndoorLevelPicker;
|
|
64
|
-
//@property (nonatomic, assign) NSString *kmlSrc;
|
|
65
|
-
|
|
66
|
-
@property(nonatomic, readonly) CGPoint lastTapPixel;
|
|
67
|
-
@property(nonatomic, readonly) CGPoint lastPanPixel;
|
|
68
|
-
@property(nonatomic, readonly) CGPoint lastLongPressPixel;
|
|
69
|
-
|
|
70
|
-
- (void)willMove: (BOOL) gesture;
|
|
71
|
-
- (void)movingCameraPosition: (MFCameraPosition*) position;
|
|
72
|
-
- (void)didChangeCameraPosition: (MFCameraPosition*) position;
|
|
73
|
-
- (void)idleAtCameraPosition: (MFCameraPosition *) position;
|
|
74
|
-
|
|
75
|
-
- (void)didTapAtCoordinate:(CLLocationCoordinate2D)coordinate;
|
|
76
|
-
- (void)didTapPOIWithPlaceID:(NSString *)placeID name:(NSString *)name location:(CLLocationCoordinate2D)location;
|
|
77
|
-
- (void)didTapBuildingWithBuildingID:(NSString *)buildingID name:(NSString *)name location:(CLLocationCoordinate2D)location;
|
|
78
|
-
- (void)didTapPlaceWithName:(NSString*)name location:(CLLocationCoordinate2D)location;
|
|
79
|
-
- (void)didTapDataSourceFeature:(MFDataSourceFeature *)feature location:(CLLocationCoordinate2D)location;
|
|
80
|
-
- (BOOL)didTapMyLocationButton;
|
|
81
|
-
|
|
82
|
-
@end
|
|
83
|
-
|
|
84
|
-
#endif /* RMFMapView_h */
|
|
1
|
+
//
|
|
2
|
+
// RMFMapView.h
|
|
3
|
+
// Map4dMap
|
|
4
|
+
//
|
|
5
|
+
// Created by Huy Dang on 4/27/20.
|
|
6
|
+
// Copyright © 2020 IOTLink. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef RMFMapView_h
|
|
10
|
+
#define RMFMapView_h
|
|
11
|
+
|
|
12
|
+
#import <UIKit/UIKit.h>
|
|
13
|
+
#import <Map4dMap/Map4dMap.h>
|
|
14
|
+
#import <React/RCTComponent.h>
|
|
15
|
+
|
|
16
|
+
@interface RMFMapView : MFMapView
|
|
17
|
+
|
|
18
|
+
@property (nonatomic, copy) RCTBubblingEventBlock onMapReady;
|
|
19
|
+
//@property (nonatomic, copy) RCTBubblingEventBlock onMapLoaded;
|
|
20
|
+
//@property (nonatomic, copy) RCTBubblingEventBlock onKmlReady;
|
|
21
|
+
@property (nonatomic, copy) RCTBubblingEventBlock onPress;
|
|
22
|
+
//@property (nonatomic, copy) RCTBubblingEventBlock onLongPress;
|
|
23
|
+
//@property (nonatomic, copy) RCTBubblingEventBlock onPanDrag;
|
|
24
|
+
//@property (nonatomic, copy) RCTBubblingEventBlock onUserLocationChange;
|
|
25
|
+
//@property (nonatomic, copy) RCTBubblingEventBlock onMarkerPress;
|
|
26
|
+
//@property (nonatomic, copy) RCTBubblingEventBlock onChange;
|
|
27
|
+
@property (nonatomic, copy) RCTBubblingEventBlock onPoiPress;
|
|
28
|
+
@property (nonatomic, copy) RCTBubblingEventBlock onBuildingPress;
|
|
29
|
+
@property (nonatomic, copy) RCTBubblingEventBlock onPlacePress;
|
|
30
|
+
@property (nonatomic, copy) RCTBubblingEventBlock onDataSourceFeaturePress;
|
|
31
|
+
//@property (nonatomic, copy) RCTDirectEventBlock onRegionChange;
|
|
32
|
+
//@property (nonatomic, copy) RCTDirectEventBlock onRegionChangeComplete;
|
|
33
|
+
//@property (nonatomic, copy) RCTDirectEventBlock onIndoorLevelActivated;
|
|
34
|
+
//@property (nonatomic, copy) RCTDirectEventBlock onIndoorBuildingFocused;
|
|
35
|
+
@property (nonatomic, copy) RCTDirectEventBlock onCameraMove;
|
|
36
|
+
@property (nonatomic, copy) RCTDirectEventBlock onCameraMoveStart;
|
|
37
|
+
@property (nonatomic, copy) RCTDirectEventBlock onCameraIdle;
|
|
38
|
+
@property (nonatomic, copy) RCTDirectEventBlock onMyLocationButtonPress;
|
|
39
|
+
|
|
40
|
+
//@property (nonatomic, assign) MKCoordinateRegion initialRegion;
|
|
41
|
+
//@property (nonatomic, assign) MKCoordinateRegion region;
|
|
42
|
+
@property (nonatomic, assign) NSString* mapIdProp;
|
|
43
|
+
@property (nonatomic, assign) MFCameraPosition *cameraProp; // Because the base class already has a "camera" prop.
|
|
44
|
+
@property (nonatomic, assign) NSString* mapTypeProp;
|
|
45
|
+
//@property (nonatomic, assign) GMSCameraPosition *initialCamera;
|
|
46
|
+
//@property (nonatomic, assign) NSString *customMapStyleString;
|
|
47
|
+
//@property (nonatomic, assign) UIEdgeInsets mapPadding;
|
|
48
|
+
//@property (nonatomic, assign) NSString *paddingAdjustmentBehaviorString;
|
|
49
|
+
|
|
50
|
+
@property (nonatomic, assign) BOOL showsBuildings;
|
|
51
|
+
@property (nonatomic, assign) BOOL showsPOIs;
|
|
52
|
+
//@property (nonatomic, assign) BOOL showsTraffic;
|
|
53
|
+
//@property (nonatomic, assign) BOOL showsCompass;
|
|
54
|
+
|
|
55
|
+
@property (nonatomic, assign) BOOL zoomGesturesEnabled;
|
|
56
|
+
@property (nonatomic, assign) BOOL scrollGesturesEnabled;
|
|
57
|
+
@property (nonatomic, assign) BOOL rotateGesturesEnabled;
|
|
58
|
+
@property (nonatomic, assign) BOOL tiltGesturesEnabled;
|
|
59
|
+
|
|
60
|
+
@property (nonatomic, assign) BOOL showsMyLocation;
|
|
61
|
+
@property (nonatomic, assign) BOOL showsMyLocationButton;
|
|
62
|
+
//@property (nonatomic, assign) BOOL showsIndoors;
|
|
63
|
+
//@property (nonatomic, assign) BOOL showsIndoorLevelPicker;
|
|
64
|
+
//@property (nonatomic, assign) NSString *kmlSrc;
|
|
65
|
+
|
|
66
|
+
@property(nonatomic, readonly) CGPoint lastTapPixel;
|
|
67
|
+
@property(nonatomic, readonly) CGPoint lastPanPixel;
|
|
68
|
+
@property(nonatomic, readonly) CGPoint lastLongPressPixel;
|
|
69
|
+
|
|
70
|
+
- (void)willMove: (BOOL) gesture;
|
|
71
|
+
- (void)movingCameraPosition: (MFCameraPosition*) position;
|
|
72
|
+
- (void)didChangeCameraPosition: (MFCameraPosition*) position;
|
|
73
|
+
- (void)idleAtCameraPosition: (MFCameraPosition *) position;
|
|
74
|
+
|
|
75
|
+
- (void)didTapAtCoordinate:(CLLocationCoordinate2D)coordinate;
|
|
76
|
+
- (void)didTapPOIWithPlaceID:(NSString *)placeID name:(NSString *)name location:(CLLocationCoordinate2D)location;
|
|
77
|
+
- (void)didTapBuildingWithBuildingID:(NSString *)buildingID name:(NSString *)name location:(CLLocationCoordinate2D)location;
|
|
78
|
+
- (void)didTapPlaceWithName:(NSString*)name location:(CLLocationCoordinate2D)location;
|
|
79
|
+
- (void)didTapDataSourceFeature:(MFDataSourceFeature *)feature location:(CLLocationCoordinate2D)location;
|
|
80
|
+
- (BOOL)didTapMyLocationButton;
|
|
81
|
+
|
|
82
|
+
@end
|
|
83
|
+
|
|
84
|
+
#endif /* RMFMapView_h */
|