vue-tianditu2
Version:
106 lines (105 loc) • 3.45 kB
TypeScript
import { PropType } from 'vue';
import { DefineEmits, DefineProps } from '../../../utils/types';
export declare const NATIVE_PROPS: {
/** 设置格网图层的网格大小,单位是像素。default:256 */
tileSize: {
type: NumberConstructor;
default: number;
};
/** 显示格网图层的最小层级。default:0 */
minZoom: {
type: NumberConstructor;
default: number;
};
/** 显示格网图层的最大层级。default:18 */
maxZoom: {
type: NumberConstructor;
default: number;
};
/** 设置格网图层的透明度。default:1 */
opacity: {
type: NumberConstructor;
default: number;
};
/** 设置格网图层边线的颜色、宽度、线样式。default:{width:1, style:'solid', color:'#999'} */
outlineSize: {
type: PropType<T.GridlineLayerOptions["outlineSize"]>;
default: () => {
width: number;
style: string;
color: string;
};
};
/** 设置格网图层文字的样式,图层文字表现网格的行号、列号、层级。default:{display:false, fontSize:'14', fontWeight:true, color:'black'} */
textSize: {
type: PropType<T.GridlineLayerOptions["textSize"]>;
default: () => {
display: boolean;
fontSize: string;
fontWeight: boolean;
color: string;
};
};
};
export declare const EXTRA_PROPS: {
/** 图层的叠放顺序 */
zIndex: {
type: NumberConstructor;
};
};
export declare const NATIVE_EVENTS: Pick<T.TileLayerEvents, "load" | "loading">;
export declare const EXTRA_EVENTS: {
init: (e: T.GridlineLayer) => boolean;
};
export declare const PROPS: {
/** 图层的叠放顺序 */
zIndex: {
type: NumberConstructor;
};
/** 设置格网图层的网格大小,单位是像素。default:256 */
tileSize: {
type: NumberConstructor;
default: number;
};
/** 显示格网图层的最小层级。default:0 */
minZoom: {
type: NumberConstructor;
default: number;
};
/** 显示格网图层的最大层级。default:18 */
maxZoom: {
type: NumberConstructor;
default: number;
};
/** 设置格网图层的透明度。default:1 */
opacity: {
type: NumberConstructor;
default: number;
};
/** 设置格网图层边线的颜色、宽度、线样式。default:{width:1, style:'solid', color:'#999'} */
outlineSize: {
type: PropType<T.GridlineLayerOptions["outlineSize"]>;
default: () => {
width: number;
style: string;
color: string;
};
};
/** 设置格网图层文字的样式,图层文字表现网格的行号、列号、层级。default:{display:false, fontSize:'14', fontWeight:true, color:'black'} */
textSize: {
type: PropType<T.GridlineLayerOptions["textSize"]>;
default: () => {
display: boolean;
fontSize: string;
fontWeight: boolean;
color: string;
};
};
};
export declare const EVENTS: {
init: (e: T.GridlineLayer) => boolean;
load: (e: Pick<T.TileLayerEvent, "type" | "target">) => void;
loading: (e: Pick<T.TileLayerEvent, "type" | "target">) => void;
};
export type Props = DefineProps<typeof PROPS>;
export type Emit = DefineEmits<typeof EVENTS>;