/* * BMKPolygon.h * BMapKit * * Copyright 2011 Baidu Inc. All rights reserved. * */ #import #import "BMKMultiPoint.h" #import "BMKOverlay.h" /// 此类用于定义一个多边形区域 @interface BMKPolygon : BMKMultiPoint /** *根据多个点生成多边形 *@param points 直角坐标点数组,这些点将被拷贝到生成的多边形对象中 *@param count 点的个数 *@return 新生成的多边形对象 */ + (BMKPolygon *)polygonWithPoints:(BMKMapPoint *)points count:(NSUInteger)count; /** *根据多个点生成多边形 *@param coords 经纬度坐标点数组,这些点将被拷贝到生成的多边形对象中 *@param count 点的个数 *@return 新生成的多边形对象 */ + (BMKPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; /** *重新设置多边形顶点 *@param points 指定的直角坐标点数组 *@param count 坐标点的个数 *@return 是否设置成功 */ - (BOOL)setPolygonWithPoints:(BMKMapPoint *)points count:(NSInteger) count; /** *重新设置多边形顶点 *@param coords 指定的经纬度坐标点数组 *@param count 坐标点的个数 *@return 是否设置成功 */ - (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count; @end