@@ -469,7 +469,23 @@ declare namespace BMap {
469469 * 是否开启底图可点功能
470470 */
471471 enableMapClick ?: boolean ;
472+ /**
473+ * 指定输入输出的坐标类型,`BMAP_COORD_GCJ02`为`gcj02`坐标,`BMAP_COORD_BD09`为`bd09`坐标,默认为`BMAP_COORD_BD09`。
474+ * 指定完成后API将以指定的坐标类型处理您传入的坐标
475+ * @link https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference_3_0.html
476+ */
477+ coordsType ?: CoordsType ; //'bd09ll' | 'bd09mc' | 'gcj02' | 'wgs84';
472478 }
479+ /**
480+ * 此常量用于指定输入输出的坐标类型。
481+ * - `BMAP_COORD_GCJ02` 为`gcj02`坐标。
482+ * - `BMAP_COORD_BD09` 为`bd09`坐标。
483+ * - `BMAP_COORD_WGS84` 为`wgs84`坐标。
484+ * - `BMAP_COORD_EPSG3857` 为`epsg3857`坐标。
485+ * - `BMAP_COORD_GCJ02MERCATOR` 为`gcj02mercator`坐标。
486+ * - `BMAP_COORD_MERCATOR` 为`mercator`坐标。
487+ */
488+ type CoordsType = string ;
473489 /**
474490 * 此类代表视野,不可实例化,通过对象字面量形式表示。
475491 */
@@ -525,3 +541,26 @@ declare namespace BMap {
525541 type MapStyleV2 = { styleJson : MapStyleItem [ ] } | { styleId : string } ;
526542}
527543declare const BMAP_API_VERSION : BMap . APIVersion ;
544+
545+ /**
546+ * 此常量用于指定输入输出的坐标类型。
547+ * - `BMAP_COORD_GCJ02` 为`gcj02`坐标。
548+ * - `BMAP_COORD_BD09` 为`bd09`坐标。
549+ * - `BMAP_COORD_WGS84` 为`wgs84`坐标。
550+ * - `BMAP_COORD_EPSG3857` 为`epsg3857`坐标。
551+ * - `BMAP_COORD_GCJ02MERCATOR` 为`gcj02mercator`坐标。
552+ * - `BMAP_COORD_MERCATOR` 为`mercator`坐标。
553+ */
554+
555+ /** `BMAP_COORD_GCJ02` 为`gcj02`坐标。 */
556+ declare const BMAP_COORD_GCJ02 : BMap . CoordsType ;
557+ /** `BMAP_COORD_BD09` 为`bd09`坐标。 */
558+ declare const BMAP_COORD_BD09 : BMap . CoordsType ;
559+ /** `BMAP_COORD_WGS84` 为`wgs84`坐标。 */
560+ declare const BMAP_COORD_WGS84 : BMap . CoordsType ;
561+ /** `BMAP_COORD_EPSG3857` 为`epsg3857`坐标。 */
562+ declare const BMAP_COORD_EPSG3857 : BMap . CoordsType ;
563+ /** `BMAP_COORD_GCJ02MERCATOR` 为`gcj02mercator`坐标。 */
564+ declare const BMAP_COORD_GCJ02MERCATOR : BMap . CoordsType ;
565+ /** `BMAP_COORD_MERCATOR` 为`mercator`坐标。 */
566+ declare const BMAP_COORD_MERCATOR : BMap . CoordsType ;
0 commit comments