//
// GMSMapView.h
// Google Maps SDK for iOS
//
// Copyright 2012 Google Inc.
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://developers.google.com/maps/terms
//
#import <CoreLocation/CoreLocation.h>
#import <UIKit/UIKit.h>
#import <GoogleMaps/GMSMapLayer.h>
#import <GoogleMaps/GMSUISettings.h>
@class GMSCameraPosition;
@class GMSCameraUpdate;
@class GMSCoordinateBounds;
@class GMSIndoorDisplay;
@class GMSMapLayer;
@class GMSMapView;
@class GMSMarker;
@class GMSOverlay;
@class GMSProjection;
/** Delegate for events on GMSMapView. */
@protocol GMSMapViewDelegate <NSObject>
@optional
/**
* Called before the camera on the map changes, either due to a gesture,
* animation (e.g., by a user tapping on the "My Location" button) or by being
* updated explicitly via the camera or a zero-length animation on layer.
*
* @param gesture If YES, this is occuring due to a user gesture.
*/
- (void)mapView:(GMSMapView *)mapView willMove:(BOOL)gesture;
/**
* Called repeatedly during any animations or gestures on the map (or once, if
* the camera is explicitly set). This may not be called for all intermediate
* camera positions. It is always called for the final position of an animation
* or gesture.
*/
- (void)mapView:(GMSMapView *)mapView
didChangeCameraPosition:(GMSCameraPosition *)position;
/**
* Called when the map becomes idle, after any outstanding gestures or
* animations have completed (or after the camera has been explicitly set).
*/
- (void)mapView:(GMSMapView *)mapView
idleAtCameraPosition:(GMSCameraPosition *)position;
/**
* Called after a tap gesture at a particular coordinate, but only if a marker
* was not tapped. This is called before deselecting any currently selected
* marker (the implicit action for tapping on the map).
*/
- (void)mapView:(GMSMapView *)mapView
didTapAtCoordinate:(CLLocationCoordinate2D)coordinate;
/**
* Called after a long-press gesture at a particular coordinate.
*
* @param mapView The map view that was pressed.
* @param coordinate The location that was pressed.
*/
- (void)mapView:(GMSMapView *)mapView
didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate;
/**
* Called after a marker has been tapped.
*
* @param mapView The map view that was pressed.
* @param marker The marker that was pressed.
* @return YES if this delegate handled the tap event, which prevents the map
* from performing its default selection behavior, and NO if the map
* should continue with its default selection behavior.
*/
- (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker;
/**
* Called after a marker's info window has been tapped.
*/
- (void)mapView:(GMSMapView *)mapView
didTapInfoWindowOfMarker:(GMSMarker *)marker;
/**
* Called after an overlay has been tapped.
* This method is not called for taps on markers.
*
* @param mapView The map view that was pressed.
* @param overlay The overlay that was pressed.
*/
- (void)mapView:(GMSMapView *)mapView didTapOverlay:(GMSOverlay *)overlay;
/**
* Called when a marker is about to become selected, and provides an optional
* custom info window to use for that marker if this method returns a UIView.
* If you change this view after this method is called, those changes will not
* necessarily be reflected in the rendered version.
*
* The returned UIView must not have bounds greater than 500 points on either
* dimension. As there is only one info window shown at any time, the returned
* view may be reused between other info windows.
*
* Removing the marker from the map or changing the map's selected marker during
* this call results in undefined behavior.
*
* @return The custom info window for the specified marker, or nil for default
*/
- (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker;
/**
* Called when dragging has been initiated on a marker.
*/
- (void)mapView:(GMSMapView *)mapView didBeginDraggingMarker:(GMSMarker *)marker;
/**
* Called after dragging of a marker ended.
*/
- (void)mapView:(GMSMapView *)mapView didEndDraggingMarker:(GMSMarker *)marker;
/**
* Called while a marker is dragged.
*/
- (void)mapView:(GMSMapView *)mapView didDragMarker:(GMSMarker *)marker;
@end
/**
* Display types for GMSMapView.
*/
typedef enum {
/** Basic maps. The default. */
kGMSTypeNormal = 1,
/** Satellite maps with no labels. */
kGMSTypeSatellite,
/** Terrain maps. */
kGMSTypeTerrain,
/** Satellite maps with a transparent label overview. */
kGMSTypeHybrid,
/** No maps, no labels. Display of traffic data is not supported. */
kGMSTypeNone,
} GMSMapViewType;
/**
* This is the main class of the Google Maps SDK for iOS and is the entry point
* for all methods related to the map.
*
* The map should be instantiated via the convenience constructor
* [GMSMapView mapWithFrame:camera:]. It may also be created with the default
* [[GMSMapView alloc] initWithFrame:] method (wherein its camera will be set to
* a default location).
*
* GMSMapView can only be read and modified from the main thread, similar to all
* UIKit objects. Calling these methods from another thread will result in an
* exception or undefined behavior.
*/
@interface GMSMapView : UIView
/** GMSMapView delegate. */
@property(nonatomic, weak) id<GMSMapViewDelegate> delegate;
/**
* Controls the camera, which defines how the map is oriented. Modification of
* this property is instantaneous.
*/
@property(nonatomic, strong) GMSCameraPosition *camera;
/**
* Returns a GMSProjection object that you can use to convert between screen
* coordinates and latitude/longitude coordinates.
*
* This is a snapshot of the current projection, and will not automatically
* update when the camera moves. It represents either the projection of the last
* drawn GMSMapView frame, or; where the camera has been explicitly set or the
* map just created, the upcoming frame. It will never be nil.
*/
@property(nonatomic, readonly) GMSProjection *projection;
/**
* Controls whether the My Location dot and accuracy circle is enabled.
* Defaults to NO.
*/
@property(nonatomic, assign, getter=isMyLocationEnabled) BOOL myLocationEnabled;
/**
* If My Location is enabled, reveals where the user location dot is being
* drawn. If it is disabled, or it is enabled but no location data is available,
* this will be nil. This property is observable using KVO.
*/
@property(nonatomic, strong, readonly) CLLocation *myLocation;
/**
* The marker that is selected. Setting this property selects a particular
* marker, showing an info window on it. If this property is non-nil, setting
* it to nil deselects the marker, hiding the info window. This property is
* observable using KVO.
*/
@property(nonatomic, strong) GMSMarker *selectedMarker;
/**
* Controls whether the map is drawing traffic data, if available. This is
* subject to the availability of traffic data. Defaults to NO.
*/
@property(nonatomic, assign, getter=isTrafficEnabled) BOOL trafficEnabled;
/**
* Controls the type of map tiles that should be displayed. Defaults to
* kGMSTypeNormal.
*/
@property(nonatomic, assign) GMSMapViewType mapType;
/**
* Minimum zoom (the farthest the camera may be zoomed out). Defaults to
* kGMSMinZoomLevel. Modified with -setMinZoom:maxZoom:.
*/
@property(nonatomic, assign, readonly) float minZoom;
/**
* Maximum zoom (the closest the camera may be to the Earth). Defaults to
* kGMSMaxZoomLevel. Modified with -setMinZoom:maxZoom:.
*/
@property(nonatomic, assign, readonly) float maxZoom;
/**
* If set, 3D buildings will be shown where available. Defaults to YES.
*
* This may be useful when adding a custom tile layer to the map, in order to
* make it clearer at high zoom levels. Changing this value will cause all
* tiles to be briefly invalidated.
*/
@property(nonatomic, assign, getter=isBuildingsEnabled) BOOL buildingsEnabled;
/**
* Set
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
google map SDK (280个子文件)
CHANGELOG 14KB
Current 1B
GoogleMaps.framework 23B
GoogleMaps 49.43MB
GoogleMaps 27B
README.GoogleMapsSDKDemos 952B
SDKDemos.gyp 2KB
GMSMapView.h 11KB
GMSPanoramaView.h 8KB
GMSGeometryUtils.h 5KB
GMSMarker.h 5KB
GMSCameraPosition.h 4KB
GMSMapLayer.h 4KB
GMSTileLayer.h 3KB
GMSUISettings.h 3KB
GMSCameraUpdate.h 3KB
GMSCoordinateBounds.h 3KB
GMSProjection.h 3KB
GMSPanoramaCamera.h 2KB
GMSGroundOverlay.h 2KB
GMSGeocoder.h 2KB
GMSIndoorDisplay.h 2KB
GMSOverlay.h 2KB
GMSMapView+Animation.h 2KB
GMSServices.h 2KB
GMSMutablePath.h 2KB
GoogleMaps.h 2KB
GMSPanoramaService.h 2KB
GMSURLTileLayer.h 2KB
GMSPath.h 2KB
GMSCircle.h 1KB
GMSPolygon.h 1KB
GMSMarkerLayer.h 1KB
GMSPanoramaLayer.h 1KB
GMSPolyline.h 1KB
GMSMapView+Overlays.h 1KB
GMSOrientation.h 1020B
GMSSyncTileLayer.h 844B
GMSPanorama.h 840B
GMSIndoorBuilding.h 822B
GMSPanoramaCameraUpdate.h 814B
GMSIndoorLevel.h 716B
GMSPanoramaLink.h 608B
SDKDemoAppDelegate.h 523B
GMSCALayer.h 507B
SDKDemoMasterViewController.h 275B
Samples.h 256B
SDKDemoAPIKey.h 227B
AnimatedCurrentLocationViewController.h 200B
IndoorMuseumNavigationViewController.h 184B
CustomIndoorViewController.h 177B
MarkerEventsViewController.h 144B
MarkerLayerViewController.h 142B
GeocoderViewController.h 140B
PolygonsViewController.h 139B
GestureControlViewController.h 90B
FixedPanoramaViewController.h 89B
GroundOverlayViewController.h 89B
CustomMarkersViewController.h 89B
VisibleRegionViewController.h 89B
TrafficMapViewController.h 86B
MyLocationViewController.h 86B
FitBoundsViewController.h 85B
PolylinesViewController.h 85B
TileLayerViewController.h 85B
DoubleMapViewController.h 85B
BasicMapViewController.h 84B
PanoramaViewController.h 84B
MapTypesViewController.h 84B
MapLayerViewController.h 84B
MapZoomViewController.h 83B
MarkersViewController.h 83B
IndoorViewController.h 82B
CameraViewController.h 82B
Headers 24B
newark_nj_1922.jpg 140KB
museum-exhibits.json 476B
PolygonsViewController.m 11KB
Samples.m 5KB
SDKDemoMasterViewController.m 5KB
CustomIndoorViewController.m 5KB
IndoorMuseumNavigationViewController.m 4KB
MarkerLayerViewController.m 4KB
CustomMarkersViewController.m 4KB
SDKDemoAppDelegate.m 4KB
AnimatedCurrentLocationViewController.m 3KB
FitBoundsViewController.m 3KB
MapLayerViewController.m 3KB
DoubleMapViewController.m 2KB
VisibleRegionViewController.m 2KB
MapZoomViewController.m 2KB
MarkerEventsViewController.m 2KB
TileLayerViewController.m 2KB
MapTypesViewController.m 2KB
GestureControlViewController.m 2KB
PolylinesViewController.m 2KB
CameraViewController.m 2KB
MyLocationViewController.m 2KB
MarkersViewController.m 2KB
GroundOverlayViewController.m 2KB
共 280 条
- 1
- 2
- 3
Miss_LittleSunshine
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页