Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 743a751

Browse files
committed
- release version 1.1.0
1 parent 78e65b5 commit 743a751

19 files changed

Lines changed: 131 additions & 37 deletions

map4dsdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'map4dsdk'
3-
s.version = '1.0.0'
3+
s.version = '1.1.0'
44
s.summary = 'Map4D SDK'
55
s.homepage = 'http://map4d.vn'
66

sdk/map4dsdk.framework/Assets.car

0 Bytes
Binary file not shown.

sdk/map4dsdk.framework/Headers/MFCameraPosition.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
#import <CoreLocation/CoreLocation.h>
1111
#import <Foundation/Foundation.h>
1212
#import <UIKit/UIKit.h>
13-
@class MFMapView;
13+
1414
@interface MFCameraPosition: NSObject
1515

16-
- (instancetype) init: (MFMapView*) mapView;
17-
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (float) zoom;
18-
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (float) zoom duration: (long) duration;
19-
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (float) zoom tilt :(float) tilt ;
20-
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (float) zoom bearing: (float) bearing;
21-
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (float) zoom tilt :(float) tilt bearing: (float) bearing;
22-
@property(nonatomic, assign, getter = target) CLLocationCoordinate2D target;
23-
@property(nonatomic, assign, getter = zoom) float zoom;
24-
@property(nonatomic, assign, getter = bearing) float bearing;
25-
@property(nonatomic, assign, getter = tilt) float tilt;
26-
@property(nonatomic, assign, getter = duration) long duration;
16+
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (double) zoom;
17+
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (double) zoom duration: (long) duration;
18+
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (double) zoom tilt :(double) tilt ;
19+
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (double) zoom bearing: (float) bearing;
20+
- (id)initWithTarget:(CLLocationCoordinate2D) target zoom: (double) zoom tilt :(double) tilt bearing: (float) bearing;
21+
22+
@property(nonatomic) CLLocationCoordinate2D target;
23+
@property(nonatomic) double zoom;
24+
@property(nonatomic) float bearing;
25+
@property(nonatomic) double tilt;
26+
@property(nonatomic) long duration;
2727

2828
@end
2929

sdk/map4dsdk.framework/Headers/MFCircle.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ NS_ASSUME_NONNULL_BEGIN
1515
@property(nonatomic, assign) CGFloat fillOpacity;
1616
/** The fill color. Defaults to blueColor. */
1717
@property(nonatomic, strong) UIColor* _Nullable fillColor;
18+
/** Position on Earth of circle center. */
19+
@property(nonatomic, assign) CLLocationCoordinate2D position;
20+
/** Radius of the circle in meters; must be positive. */
21+
@property(nonatomic, assign) CLLocationDistance radius;
1822

19-
- (instancetype _Nonnull ) init: (CLLocationCoordinate2D) center radius: (CGFloat) radius;
23+
- (instancetype _Nonnull ) init NS_UNAVAILABLE;
2024

21-
- (instancetype _Nonnull ) init: (CLLocationCoordinate2D) center radius: (CGFloat) radius fillColor: (UIColor*) fillColor fillOpacity: (CGFloat) fillOpacity;
25+
- (instancetype _Nonnull ) init: (CLLocationCoordinate2D) position radius: (CLLocationDistance) radius;
26+
27+
- (instancetype _Nonnull ) init: (CLLocationCoordinate2D) position radius: (CLLocationDistance) radius fillColor: (UIColor*) fillColor fillOpacity: (CGFloat) fillOpacity;
2228

2329
@end
2430

sdk/map4dsdk.framework/Headers/MFMapView.h

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,30 @@
1414
@class MFProjection;
1515
@class MFCameraPosition;
1616

17-
@interface MFMapView : UIView
1817

18+
typedef NS_ENUM(NSUInteger, MFSwitchMode) {
19+
MFSwitchModeDefault,
20+
MFSwitchModeAuto2DTo3D,
21+
MFSwitchModeAuto3DTo2D,
22+
MFSwitchModeAuto,
23+
MFSwitchModeManual
24+
};
25+
26+
@interface MFMapView : UIView
1927

2028
@property (nonatomic, strong, setter=setMapUrl:) NSString* _Nullable mapUrl;
21-
@property (nonatomic, strong, setter=setMinZoom:) NSNumber* _Nullable minZoom;
22-
@property (nonatomic, strong, setter=setMaxZoom:) NSNumber* _Nullable maxZoom;
2329

2430
// Delegate
2531
@property(nonatomic, weak, nullable) IBOutlet id<MFMapViewDelegate> delegate;
2632

2733
//Projection
2834
@property(nonatomic, readonly) MFProjection * _Nullable projection;
2935

36+
//SwitchMode
37+
@property(nonatomic) MFSwitchMode switchMode;
38+
3039
// Camera
31-
@property(nonatomic, copy, setter=setCamera:) MFCameraPosition * _Nullable camera;
40+
@property(nonatomic, copy) MFCameraPosition * _Nullable camera;
3241

3342
- (instancetype _Nonnull )initWithFrame: (CGRect)frame;
3443
// Enable My Location
@@ -39,12 +48,22 @@
3948

4049
- (void) enable3dMode: (bool) enabled;
4150

51+
// Get Mode
4252
- (bool) is3dMode;
4353

54+
- (void) setMinZoom: (double) minZoom maxZoom: (double) maxZoom;
55+
4456
/*
4557
* Clears all markup that has been added to the map, including markers, polylines and ground
4658
* overlays. This will not clear the visible location dot or reset the current mapType.
4759
*/
4860
- (void) clear;
4961

62+
/*
63+
* Set time display for map
64+
* Default curent time
65+
* return current time if date is NULL
66+
*/
67+
- (void) setTime: (nullable NSDate*) date;
68+
5069
@end

sdk/map4dsdk.framework/Headers/MFMapViewDelegate.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
@class MFObject;
1616
@class MFPolyline;
1717
@class MFPolygon;
18+
@class MFCircle;
1819

1920
@protocol MFMapViewDelegate<NSObject>
2021
@optional
21-
- (void)mapview: (MFMapView*) mapView didTapMarker: (MFMarker*) marker;
22+
- (BOOL)mapview: (MFMapView*) mapView didTapMarker: (MFMarker*) marker;
2223
- (void)mapview: (MFMapView*) mapView didTapPolyline: (MFPolyline*) polyline;
2324
- (void)mapview: (MFMapView*) mapView didTapPolygon: (MFPolygon*) polygon;
25+
- (void)mapview: (MFMapView*) mapView didTapCircle: (MFCircle*) circle;
2426
- (void)mapView: (MFMapView*) mapView willMove: (BOOL) gesture;
2527
- (void)mapView: (MFMapView*) mapView movingCameraPosition: (MFCameraPosition*) position;
2628
- (void)mapView: (MFMapView*) mapView didChangeCameraPosition:(MFCameraPosition*) position;
@@ -30,6 +32,9 @@
3032
- (void)mapView: (MFMapView*) mapView didTapObject: (MFObject*) object;
3133
- (void)mapView: (MFMapView*) mapView didTapMyLocation: (CLLocationCoordinate2D) location;
3234

35+
- (BOOL)didTapMyLocationButtonForMapView: (MFMapView*) mapView;
36+
- (UIView *) mapView: (MFMapView *) mapView markerInfoWindow: (MFMarker *) marker;
37+
3338
@end
3439

3540
#endif /* MFMapViewDelegate_h */

sdk/map4dsdk.framework/Headers/MFMarker.h

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,35 @@
1313
@interface MFMarker: MFOverlay
1414
@property(nonatomic) CLLocationCoordinate2D position;
1515
@property(nonatomic) CGPoint groundAnchor;
16-
@property(nonatomic, strong, setter=setIconView:) UIView *iconView;
16+
@property(nonatomic, strong, setter=setIconView:) UIView * _Nullable iconView;
1717
@property(nonatomic) double elevation;
18-
@property(nonatomic, strong) UIImage *icon;
18+
@property(nonatomic, strong) UIImage * _Nullable icon;
1919
@property(nonatomic, assign, setter=setVisible:) bool isVisible;
20+
21+
/**
22+
* Title, a short description of the overlay. Some overlays, such as markers, will display the title
23+
* on the map. The title is also the default accessibility text.
24+
*/
25+
@property(nonatomic, strong, nullable) NSString *title;
26+
27+
/** Snippet text, shown beneath the title in the info window when selected. */
28+
@property(nonatomic, copy, nullable) NSString *snippet;
29+
30+
/**
31+
* The info window anchor specifies the point in the icon image at which to anchor the info window,
32+
* which will be displayed directly above this point. This point is specified within the same space
33+
* as groundAnchor.
34+
*/
35+
@property(nonatomic, assign) CGPoint infoWindowAnchor;
36+
37+
/**
38+
* Higher |zIndex| value overlays will be drawn on top of lower |zIndex| value tile layers and
39+
* overlays. Equal values result in undefined draw ordering. Markers are an exception that
40+
* regardless of |zIndex|, they will always be drawn above tile layers and other non-marker
41+
* overlays; they are effectively considered to be in a separate z-index group compared to other
42+
* overlays.
43+
*/
44+
@property(nonatomic, assign) float zIndex;
2045
@end
2146

2247
#endif /* MFMarker_h */

sdk/map4dsdk.framework/Headers/MFMutablePath.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414

1515
@interface MFMutablePath: MFPath
1616

17+
@property (readonly, getter=getCount) NSUInteger count;
1718
- (void)addCoordinate:(CLLocationCoordinate2D)coord;
1819
- (void)addLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude;
20+
- (CLLocationCoordinate2D)objectAtIndex:(NSUInteger)idx;
1921
- (void)insertCoordinate:(CLLocationCoordinate2D)coord atIndex:(NSUInteger)index;
2022
- (void)replaceCoordinateAtIndex:(NSUInteger)index withCoordinate:(CLLocationCoordinate2D)coord;
2123
- (void)removeCoordinateAtIndex:(NSUInteger)index;

sdk/map4dsdk.framework/Headers/MFObject.h

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,25 @@
1010
#import <CoreLocation/CoreLocation.h>
1111
#import <Foundation/Foundation.h>
1212
#import <UIKit/UIKit.h>
13-
13+
@class MFCameraPosition;
14+
@class MFModel;
1415
@interface MFObject: NSObject
15-
@property(nonatomic, strong) NSString* Id;
16-
@property(nonatomic, strong) NSString* name;
17-
@property(nonatomic) CLLocationCoordinate2D position;
18-
@property(nonatomic) float elevation;
16+
@property(nonatomic, strong) NSString* _Nullable Id;
17+
@property(nonatomic, strong) NSString* _Nullable name;
18+
@property(nonatomic, strong, nullable) NSMutableArray* places;
19+
@property(nonatomic) double scale;
20+
@property(nonatomic) double bearing;
21+
@property(nonatomic) CLLocationCoordinate2D coordinate;
22+
@property(nonatomic) double elevation;
23+
@property(nonatomic) double heightScale;
24+
@property(nonatomic, strong) MFCameraPosition* _Nullable camera;
25+
@property(nonatomic, strong) MFModel* _Nullable model;
26+
@property(nonatomic, strong, nullable) NSMutableArray* types;
27+
@property(nonatomic) bool isVerified;
28+
@property(nonatomic) double minZoom;
29+
@property(nonatomic) double maxZoom;
30+
@property(nonatomic) NSDate* _Nullable startDate;
31+
@property(nonatomic) NSDate* _Nullable endDate;
1932
@end
2033

2134
#endif /* MFObject_h */

sdk/map4dsdk.framework/Headers/MFOverlay.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@class MFMapView;
1515

1616
@interface MFOverlay: NSObject
17-
@property(nonatomic, weak) MFMapView *map;
17+
@property(nonatomic, weak) MFMapView * _Nullable map;
1818
@property(nonatomic, readonly, getter=getId) long Id;
1919
- (long) getId;
2020
@end

0 commit comments

Comments
 (0)