Type Alias ElevationProfileControlOptions
container?: string | HTMLDivElement;
containerClass?: string;
position?: "top" | "left" | "right" | "bottom";
showButton?: boolean;
size?: string;
visible?: boolean;
}
Type Declaration
Optionalcontainer?: string | HTMLDivElementDIV element to contain the control. Important: if provided, no styling is added by this control. Default: automatically created inside the map container
OptionalcontainerClass?: stringA CSS class to add to the container. This is especially relevant when the options
.containeris not provided. Important: if provided, no styling is added by this control and even placement will have to be managed by external CSS.Default:
""Optionalposition?: "top" | "left" | "right" | "bottom"Position of the elevation profile chart when shown.
Default:
"botton"OptionalshowButton?: booleanShow the control button. If can be handy to hide it, especially if the profile is displayed in a custom container and that its visiblity is managed by logic external to this control.
Default:
trueOptionalsize?: stringSize of the profile as a CSS rule. This
sizewill be thewidthif the.positionis "left" or "right", and will be theheightif the.positionis "top" or "bottom".Default:
"30%"Optionalvisible?: booleanIf
true, the elevation profile control will be visible as soon as it's ready. Iffalse, a click on the control button (or a programmatic call to.showProfile()) will be neccesary to show the profile.Default:
false
Elevation profile control options