@mappable-world/mappable-types 1.0.18183688 → 1.0.18255542
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ import { MMapCopyrightsPosition } from "../MMapCopyrights";
|
|
|
5
5
|
import { Config } from "../config";
|
|
6
6
|
import { MMapTheme } from "../ThemeContext";
|
|
7
7
|
import { overrideKeyReactify } from "../wrappers";
|
|
8
|
+
import { MMapControlsProps } from "../MMapControls";
|
|
8
9
|
/**
|
|
9
10
|
* Sets map center. In this case, the zoom of the map remains unchanged.
|
|
10
11
|
* ```javascript
|
|
@@ -192,6 +193,7 @@ declare const defaultProps: Readonly<{
|
|
|
192
193
|
readonly config: Config;
|
|
193
194
|
projection: Projection;
|
|
194
195
|
theme: "light";
|
|
196
|
+
distributionPosition: "bottom left";
|
|
195
197
|
}>;
|
|
196
198
|
type DefaultProps = typeof defaultProps;
|
|
197
199
|
/**
|
|
@@ -239,6 +241,7 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
|
|
|
239
241
|
readonly config: Config;
|
|
240
242
|
projection: Projection;
|
|
241
243
|
theme: "light";
|
|
244
|
+
distributionPosition: "bottom left";
|
|
242
245
|
}>;
|
|
243
246
|
static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<MMap, import("react").ForwardRefExoticComponent<{
|
|
244
247
|
className?: string | undefined;
|
|
@@ -259,6 +262,8 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
|
|
|
259
262
|
projection?: Projection | undefined;
|
|
260
263
|
worldOptions?: WorldOptions | undefined;
|
|
261
264
|
theme?: MMapTheme | undefined;
|
|
265
|
+
distribution?: boolean | undefined;
|
|
266
|
+
distributionPosition?: ("bottom right" | "bottom left" | "top left" | "top right" | ("top" | "bottom") | ("left" | "right") | "left top" | "left bottom" | "right top" | "right bottom") | undefined;
|
|
262
267
|
tiltRange?: TiltRange | undefined;
|
|
263
268
|
children?: import("react").ReactNode;
|
|
264
269
|
ref?: import("react").Ref<MMap> | undefined;
|
|
@@ -271,6 +276,9 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
|
|
|
271
276
|
private __abortVectorLoad?;
|
|
272
277
|
private _layers;
|
|
273
278
|
private _copyrights;
|
|
279
|
+
private _distributionContainer;
|
|
280
|
+
private _mapsApplicationButton?;
|
|
281
|
+
private _userMapsApplicationButtonsCount;
|
|
274
282
|
private _isDestroyed;
|
|
275
283
|
private _isVectorLoading;
|
|
276
284
|
constructor(rootContainer: HTMLElement, props: MMapProps, children?: MMapEntity<unknown>[]);
|
|
@@ -391,6 +399,9 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
|
|
|
391
399
|
private __onVectorInitFailed;
|
|
392
400
|
private __loadVectorEngine;
|
|
393
401
|
private __toggleCopyrights;
|
|
402
|
+
private __loadDistribution;
|
|
403
|
+
private __toggleDistribution;
|
|
404
|
+
private __toggleMapsApplicationButton;
|
|
394
405
|
private setTheme;
|
|
395
406
|
}
|
|
396
407
|
export { MMap };
|
|
@@ -26,6 +26,11 @@ export type MMapControlsProps = {
|
|
|
26
26
|
/** Controls orientation. */
|
|
27
27
|
orientation?: Orientation;
|
|
28
28
|
};
|
|
29
|
+
export declare function prepareProps(props: MMapControlsProps): [
|
|
30
|
+
ComputedVerticalPosition,
|
|
31
|
+
ComputedHorizontalPosition,
|
|
32
|
+
Orientation
|
|
33
|
+
] | null;
|
|
29
34
|
/**
|
|
30
35
|
* DOM container for grouping a number of controls to group and position them
|
|
31
36
|
* @example
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../controls-extra/MMapOpenMapsButton";
|