@progress/kendo-react-map 6.1.1 → 7.0.0-develop.2
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.
- package/LICENSE.md +1 -1
- package/{dist/es/Map.d.ts → Map.d.ts} +4 -1
- package/{dist/npm/MapContext.d.ts → MapContext.d.ts} +4 -0
- package/{dist/es/MapProps.d.ts → MapProps.d.ts} +4 -0
- package/{dist/es/common → common}/events.d.ts +4 -0
- package/common/map-types.d.ts +5 -0
- package/{dist/es/components → components}/BubbleLayer.d.ts +4 -0
- package/{dist/es/components → components}/BubbleLayerTooltip.d.ts +4 -0
- package/components/Layers.d.ts +13 -0
- package/{dist/es/components → components}/MarkerLayer.d.ts +4 -0
- package/{dist/es/components → components}/MarkerLayerTooltip.d.ts +4 -0
- package/{dist/npm/components → components}/ShapeLayer.d.ts +4 -0
- package/{dist/npm/components → components}/ShapeLayerTooltip.d.ts +4 -0
- package/components/TileLayer.d.ts +13 -0
- package/{dist/npm/components → components}/base/CollectionConfigurationComponent.d.ts +4 -0
- package/{dist/es/components → components}/base/ConfigurationComponent.d.ts +4 -0
- package/components/index.d.ts +13 -0
- package/dist/cdn/js/kendo-react-map.js +5 -1
- package/events/base-event.d.ts +18 -0
- package/{dist/npm/events → events}/before-reset-event.d.ts +4 -0
- package/{dist/npm/events → events}/dom-event.d.ts +4 -1
- package/{dist/npm/events → events}/map-click-event.d.ts +4 -0
- package/events/map-event-builder.d.ts +10 -0
- package/{dist/npm/events → events}/marker-activate-event.d.ts +4 -0
- package/{dist/npm/events → events}/marker-click-event.d.ts +4 -0
- package/{dist/npm/events → events}/marker-created-event.d.ts +4 -0
- package/{dist/es/events → events}/pan-end-event.d.ts +4 -0
- package/{dist/es/events → events}/pan-event.d.ts +4 -0
- package/{dist/es/events → events}/preventable-event.d.ts +4 -0
- package/{dist/es/events → events}/reset-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-click-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-created-event.d.ts +4 -0
- package/{dist/es/events → events}/shape-feature-created-event.d.ts +4 -0
- package/{dist/es/events → events}/shape-mouse-enter-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-mouse-leave-event.d.ts +4 -0
- package/{dist/es/events → events}/zoom-end-event.d.ts +4 -0
- package/{dist/npm/events → events}/zoom-start-event.d.ts +4 -0
- package/index.d.ts +13 -0
- package/index.js +5 -0
- package/index.mjs +803 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +29 -40
- package/store/reducer.d.ts +14 -0
- package/{dist/npm/store → store}/store.d.ts +4 -0
- package/{dist/npm/tooltip → tooltip}/BubbleTooltipContext.d.ts +5 -1
- package/{dist/npm/tooltip → tooltip}/MapTooltip.d.ts +6 -2
- package/{dist/npm/tooltip → tooltip}/MarkerTooltipContext.d.ts +5 -1
- package/{dist/es/tooltip → tooltip}/Popup.d.ts +5 -1
- package/tooltip/ShapeTooltipContext.d.ts +22 -0
- package/tooltip/index.d.ts +9 -0
- package/utils/index.d.ts +13 -0
- package/about.md +0 -3
- package/dist/es/Map.js +0 -469
- package/dist/es/MapContext.d.ts +0 -15
- package/dist/es/MapContext.js +0 -6
- package/dist/es/MapProps.js +0 -1
- package/dist/es/common/events.js +0 -16
- package/dist/es/common/map-types.d.ts +0 -1
- package/dist/es/common/map-types.js +0 -2
- package/dist/es/components/BubbleLayer.js +0 -25
- package/dist/es/components/BubbleLayerTooltip.js +0 -17
- package/dist/es/components/Layers.d.ts +0 -9
- package/dist/es/components/Layers.js +0 -21
- package/dist/es/components/MarkerLayer.js +0 -25
- package/dist/es/components/MarkerLayerTooltip.js +0 -17
- package/dist/es/components/ShapeLayer.d.ts +0 -10
- package/dist/es/components/ShapeLayer.js +0 -25
- package/dist/es/components/ShapeLayerTooltip.d.ts +0 -15
- package/dist/es/components/ShapeLayerTooltip.js +0 -17
- package/dist/es/components/TileLayer.d.ts +0 -9
- package/dist/es/components/TileLayer.js +0 -18
- package/dist/es/components/base/CollectionConfigurationComponent.d.ts +0 -19
- package/dist/es/components/base/CollectionConfigurationComponent.js +0 -63
- package/dist/es/components/base/ConfigurationComponent.js +0 -86
- package/dist/es/components/main.d.ts +0 -9
- package/dist/es/components/main.js +0 -9
- package/dist/es/defaults.d.ts +0 -1
- package/dist/es/defaults.js +0 -15
- package/dist/es/events/base-event.d.ts +0 -14
- package/dist/es/events/base-event.js +0 -13
- package/dist/es/events/before-reset-event.d.ts +0 -12
- package/dist/es/events/before-reset-event.js +0 -30
- package/dist/es/events/dom-event.d.ts +0 -23
- package/dist/es/events/dom-event.js +0 -21
- package/dist/es/events/map-click-event.d.ts +0 -20
- package/dist/es/events/map-click-event.js +0 -33
- package/dist/es/events/map-event-builder.d.ts +0 -6
- package/dist/es/events/map-event-builder.js +0 -27
- package/dist/es/events/marker-activate-event.d.ts +0 -20
- package/dist/es/events/marker-activate-event.js +0 -33
- package/dist/es/events/marker-click-event.d.ts +0 -20
- package/dist/es/events/marker-click-event.js +0 -33
- package/dist/es/events/marker-created-event.d.ts +0 -22
- package/dist/es/events/marker-created-event.js +0 -35
- package/dist/es/events/pan-end-event.js +0 -34
- package/dist/es/events/pan-event.js +0 -34
- package/dist/es/events/preventable-event.js +0 -46
- package/dist/es/events/reset-event.js +0 -32
- package/dist/es/events/shape-click-event.d.ts +0 -25
- package/dist/es/events/shape-click-event.js +0 -34
- package/dist/es/events/shape-created-event.d.ts +0 -29
- package/dist/es/events/shape-created-event.js +0 -38
- package/dist/es/events/shape-feature-created-event.js +0 -35
- package/dist/es/events/shape-mouse-enter-event.js +0 -37
- package/dist/es/events/shape-mouse-leave-event.d.ts +0 -28
- package/dist/es/events/shape-mouse-leave-event.js +0 -37
- package/dist/es/events/zoom-end-event.js +0 -32
- package/dist/es/events/zoom-start-event.d.ts +0 -18
- package/dist/es/events/zoom-start-event.js +0 -34
- package/dist/es/main.d.ts +0 -9
- package/dist/es/main.js +0 -8
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/store/reducer.d.ts +0 -10
- package/dist/es/store/reducer.js +0 -84
- package/dist/es/store/store.d.ts +0 -22
- package/dist/es/store/store.js +0 -22
- package/dist/es/tooltip/BubbleTooltipContext.d.ts +0 -22
- package/dist/es/tooltip/BubbleTooltipContext.js +0 -1
- package/dist/es/tooltip/MapTooltip.d.ts +0 -37
- package/dist/es/tooltip/MapTooltip.js +0 -123
- package/dist/es/tooltip/MarkerTooltipContext.d.ts +0 -22
- package/dist/es/tooltip/MarkerTooltipContext.js +0 -1
- package/dist/es/tooltip/Popup.js +0 -76
- package/dist/es/tooltip/ShapeTooltipContext.d.ts +0 -18
- package/dist/es/tooltip/ShapeTooltipContext.js +0 -1
- package/dist/es/tooltip/main.d.ts +0 -5
- package/dist/es/tooltip/main.js +0 -2
- package/dist/es/utils/main.d.ts +0 -10
- package/dist/es/utils/main.js +0 -28
- package/dist/npm/Map.d.ts +0 -189
- package/dist/npm/Map.js +0 -472
- package/dist/npm/MapContext.js +0 -9
- package/dist/npm/MapProps.d.ts +0 -100
- package/dist/npm/MapProps.js +0 -2
- package/dist/npm/common/events.d.ts +0 -15
- package/dist/npm/common/events.js +0 -34
- package/dist/npm/common/map-types.d.ts +0 -1
- package/dist/npm/common/map-types.js +0 -7
- package/dist/npm/components/BubbleLayer.d.ts +0 -10
- package/dist/npm/components/BubbleLayer.js +0 -28
- package/dist/npm/components/BubbleLayerTooltip.d.ts +0 -15
- package/dist/npm/components/BubbleLayerTooltip.js +0 -20
- package/dist/npm/components/Layers.d.ts +0 -9
- package/dist/npm/components/Layers.js +0 -24
- package/dist/npm/components/MarkerLayer.d.ts +0 -10
- package/dist/npm/components/MarkerLayer.js +0 -28
- package/dist/npm/components/MarkerLayerTooltip.d.ts +0 -15
- package/dist/npm/components/MarkerLayerTooltip.js +0 -20
- package/dist/npm/components/ShapeLayer.js +0 -28
- package/dist/npm/components/ShapeLayerTooltip.js +0 -20
- package/dist/npm/components/TileLayer.d.ts +0 -9
- package/dist/npm/components/TileLayer.js +0 -21
- package/dist/npm/components/base/CollectionConfigurationComponent.js +0 -65
- package/dist/npm/components/base/ConfigurationComponent.d.ts +0 -24
- package/dist/npm/components/base/ConfigurationComponent.js +0 -88
- package/dist/npm/components/main.d.ts +0 -9
- package/dist/npm/components/main.js +0 -19
- package/dist/npm/defaults.d.ts +0 -1
- package/dist/npm/defaults.js +0 -17
- package/dist/npm/events/base-event.d.ts +0 -14
- package/dist/npm/events/base-event.js +0 -16
- package/dist/npm/events/before-reset-event.js +0 -33
- package/dist/npm/events/dom-event.js +0 -24
- package/dist/npm/events/map-click-event.js +0 -36
- package/dist/npm/events/map-event-builder.d.ts +0 -6
- package/dist/npm/events/map-event-builder.js +0 -30
- package/dist/npm/events/marker-activate-event.js +0 -36
- package/dist/npm/events/marker-click-event.js +0 -36
- package/dist/npm/events/marker-created-event.js +0 -38
- package/dist/npm/events/pan-end-event.d.ts +0 -24
- package/dist/npm/events/pan-end-event.js +0 -37
- package/dist/npm/events/pan-event.d.ts +0 -24
- package/dist/npm/events/pan-event.js +0 -37
- package/dist/npm/events/preventable-event.d.ts +0 -18
- package/dist/npm/events/preventable-event.js +0 -49
- package/dist/npm/events/reset-event.d.ts +0 -14
- package/dist/npm/events/reset-event.js +0 -35
- package/dist/npm/events/shape-click-event.js +0 -37
- package/dist/npm/events/shape-created-event.js +0 -41
- package/dist/npm/events/shape-feature-created-event.d.ts +0 -29
- package/dist/npm/events/shape-feature-created-event.js +0 -38
- package/dist/npm/events/shape-mouse-enter-event.d.ts +0 -28
- package/dist/npm/events/shape-mouse-enter-event.js +0 -40
- package/dist/npm/events/shape-mouse-leave-event.js +0 -40
- package/dist/npm/events/zoom-end-event.d.ts +0 -16
- package/dist/npm/events/zoom-end-event.js +0 -35
- package/dist/npm/events/zoom-start-event.js +0 -37
- package/dist/npm/main.d.ts +0 -9
- package/dist/npm/main.js +0 -27
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/store/reducer.d.ts +0 -10
- package/dist/npm/store/reducer.js +0 -88
- package/dist/npm/store/store.js +0 -24
- package/dist/npm/tooltip/BubbleTooltipContext.js +0 -2
- package/dist/npm/tooltip/MapTooltip.js +0 -126
- package/dist/npm/tooltip/MarkerTooltipContext.js +0 -2
- package/dist/npm/tooltip/Popup.d.ts +0 -29
- package/dist/npm/tooltip/Popup.js +0 -79
- package/dist/npm/tooltip/ShapeTooltipContext.d.ts +0 -18
- package/dist/npm/tooltip/ShapeTooltipContext.js +0 -2
- package/dist/npm/tooltip/main.d.ts +0 -5
- package/dist/npm/tooltip/main.js +0 -5
- package/dist/npm/utils/main.d.ts +0 -10
- package/dist/npm/utils/main.js +0 -32
- package/dist/systemjs/kendo-react-map.js +0 -1
- package/e2e-next/basic.tests.ts +0 -24
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ShapeTooltipContext } from '../tooltip/ShapeTooltipContext';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the KendoReact ShapeTooltip component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MapShapeLayerTooltipProps {
|
|
7
|
-
/**
|
|
8
|
-
* The renderer for the shape layer tooltip.
|
|
9
|
-
*
|
|
10
|
-
* @return the content of the tooltip.
|
|
11
|
-
*/
|
|
12
|
-
render?: (props: ShapeTooltipContext) => React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const MapShapeLayerTooltip: React.FunctionComponent<MapShapeLayerTooltipProps>;
|
|
15
|
-
export { MapShapeLayerTooltip };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import ConfigurationComponent from './base/ConfigurationComponent';
|
|
14
|
-
var MapShapeLayerTooltip = function (props) {
|
|
15
|
-
return (React.createElement(ConfigurationComponent, __assign({}, props, { _mapKey: "tooltip" })));
|
|
16
|
-
};
|
|
17
|
-
export { MapShapeLayerTooltip };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TileLayerOptions } from '@progress/kendo-charts';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the KendoReact MapTileLayer component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MapTileLayerProps extends TileLayerOptions {
|
|
7
|
-
}
|
|
8
|
-
declare const MapTileLayer: React.FunctionComponent<MapTileLayerProps>;
|
|
9
|
-
export { MapTileLayer };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import ConfigurationComponent from './base/ConfigurationComponent';
|
|
14
|
-
var MapTileLayer = function (props) {
|
|
15
|
-
return (React.createElement(ConfigurationComponent, __assign({ type: "tile" }, props)));
|
|
16
|
-
};
|
|
17
|
-
MapTileLayer.displayName = 'MapTileLayer';
|
|
18
|
-
export { MapTileLayer };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export interface CollectionConfigurationProps {
|
|
6
|
-
_mapKey: string;
|
|
7
|
-
_parentStore?: any;
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export default class CollectionConfigurationComponent extends React.Component<CollectionConfigurationProps> {
|
|
14
|
-
static contextType: React.Context<import("../../MapContext").MapContextType | null>;
|
|
15
|
-
optionsStore: any;
|
|
16
|
-
constructor(props: any, context: any);
|
|
17
|
-
renderChildren(child: any, index: number): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
18
|
-
render(): any;
|
|
19
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
import * as React from 'react';
|
|
28
|
-
import { MapContext } from '../../MapContext';
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
var CollectionConfigurationComponent = /** @class */ (function (_super) {
|
|
33
|
-
__extends(CollectionConfigurationComponent, _super);
|
|
34
|
-
function CollectionConfigurationComponent(props, context) {
|
|
35
|
-
var _this = _super.call(this, props, context) || this;
|
|
36
|
-
_this.optionsStore = context.optionsStore;
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
CollectionConfigurationComponent.prototype.renderChildren = function (child, index) {
|
|
40
|
-
var children = child.props.children;
|
|
41
|
-
var _a = this.props, _mapKey = _a._mapKey, _parentStore = _a._parentStore;
|
|
42
|
-
var collectionItemProps = __assign(__assign({}, child.props), { _mapCollectionIdxKey: "".concat(_mapKey, "_").concat(index), _parentStore: _parentStore });
|
|
43
|
-
return React.cloneElement(child, collectionItemProps, children);
|
|
44
|
-
};
|
|
45
|
-
CollectionConfigurationComponent.prototype.render = function () {
|
|
46
|
-
var _this = this;
|
|
47
|
-
var _a = this.props, _mapKey = _a._mapKey, _parentStore = _a._parentStore, children = _a.children;
|
|
48
|
-
var store = _parentStore || this.optionsStore;
|
|
49
|
-
store.dispatch({
|
|
50
|
-
mapKey: _mapKey,
|
|
51
|
-
payload: []
|
|
52
|
-
});
|
|
53
|
-
return React.Children.map(children, function (child, index) {
|
|
54
|
-
if (React.isValidElement(child)) {
|
|
55
|
-
return _this.renderChildren(child, index);
|
|
56
|
-
}
|
|
57
|
-
return child;
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
CollectionConfigurationComponent.contextType = MapContext;
|
|
61
|
-
return CollectionConfigurationComponent;
|
|
62
|
-
}(React.Component));
|
|
63
|
-
export default CollectionConfigurationComponent;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
28
|
-
var t = {};
|
|
29
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
30
|
-
t[p] = s[p];
|
|
31
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
32
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
-
t[p[i]] = s[p[i]];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
import * as React from 'react';
|
|
39
|
-
import createStore from './../../store/store';
|
|
40
|
-
import { optionsReducer } from './../../store/reducer';
|
|
41
|
-
import { MapContext } from '../../MapContext';
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
var ConfigurationComponent = /** @class */ (function (_super) {
|
|
46
|
-
__extends(ConfigurationComponent, _super);
|
|
47
|
-
function ConfigurationComponent(props, context) {
|
|
48
|
-
var _this = _super.call(this, props, context) || this;
|
|
49
|
-
_this.optionsStore = context.optionsStore;
|
|
50
|
-
_this.childStore = createStore(optionsReducer);
|
|
51
|
-
return _this;
|
|
52
|
-
}
|
|
53
|
-
ConfigurationComponent.prototype.render = function () {
|
|
54
|
-
var _this = this;
|
|
55
|
-
var children = this.props.children;
|
|
56
|
-
return children !== undefined ? React.Children.map(children, function (child) {
|
|
57
|
-
if (React.isValidElement(child)) {
|
|
58
|
-
return _this.renderChildren(child);
|
|
59
|
-
}
|
|
60
|
-
return child;
|
|
61
|
-
}) : null;
|
|
62
|
-
};
|
|
63
|
-
ConfigurationComponent.prototype.componentDidMount = function () {
|
|
64
|
-
this.dispatch();
|
|
65
|
-
};
|
|
66
|
-
ConfigurationComponent.prototype.componentDidUpdate = function () {
|
|
67
|
-
this.dispatch();
|
|
68
|
-
};
|
|
69
|
-
ConfigurationComponent.prototype.dispatch = function () {
|
|
70
|
-
var _a = this.props, _mapKey = _a._mapKey, _mapCollectionIdxKey = _a._mapCollectionIdxKey, _parentStore = _a._parentStore, children = _a.children, options = __rest(_a, ["_mapKey", "_mapCollectionIdxKey", "_parentStore", "children"]);
|
|
71
|
-
var store = _parentStore || this.optionsStore;
|
|
72
|
-
store.dispatch({
|
|
73
|
-
mapKey: _mapKey,
|
|
74
|
-
mapCollectionIdxKey: _mapCollectionIdxKey,
|
|
75
|
-
payload: Object.assign({}, options, this.childStore.getState())
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
ConfigurationComponent.prototype.renderChildren = function (child) {
|
|
79
|
-
var children = child.props.children;
|
|
80
|
-
var configurationItemProps = __assign(__assign({}, child.props), { _parentStore: this.childStore });
|
|
81
|
-
return React.cloneElement(child, configurationItemProps, children);
|
|
82
|
-
};
|
|
83
|
-
ConfigurationComponent.contextType = MapContext;
|
|
84
|
-
return ConfigurationComponent;
|
|
85
|
-
}(React.Component));
|
|
86
|
-
export default ConfigurationComponent;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MapLayers, MapLayersProps } from './Layers';
|
|
2
|
-
import { MapShapeLayer, MapShapeLayerProps } from './ShapeLayer';
|
|
3
|
-
import { MapShapeLayerTooltip, MapShapeLayerTooltipProps } from './ShapeLayerTooltip';
|
|
4
|
-
import { MapTileLayer, MapTileLayerProps } from './TileLayer';
|
|
5
|
-
import { MapBubbleLayer, MapBubbleLayerProps } from './BubbleLayer';
|
|
6
|
-
import { MapBubbleLayerTooltip, MapBubbleLayerTooltipProps } from './BubbleLayerTooltip';
|
|
7
|
-
import { MapMarkerLayer, MapMarkerLayerProps } from './MarkerLayer';
|
|
8
|
-
import { MapMarkerLayerTooltip, MapMarkerLayerTooltipProps } from './MarkerLayerTooltip';
|
|
9
|
-
export { MapLayers, MapLayersProps, MapShapeLayer, MapShapeLayerProps, MapShapeLayerTooltip, MapShapeLayerTooltipProps, MapTileLayer, MapTileLayerProps, MapBubbleLayer, MapBubbleLayerProps, MapBubbleLayerTooltip, MapBubbleLayerTooltipProps, MapMarkerLayer, MapMarkerLayerProps, MapMarkerLayerTooltip, MapMarkerLayerTooltipProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MapLayers } from './Layers';
|
|
2
|
-
import { MapShapeLayer } from './ShapeLayer';
|
|
3
|
-
import { MapShapeLayerTooltip } from './ShapeLayerTooltip';
|
|
4
|
-
import { MapTileLayer } from './TileLayer';
|
|
5
|
-
import { MapBubbleLayer } from './BubbleLayer';
|
|
6
|
-
import { MapBubbleLayerTooltip } from './BubbleLayerTooltip';
|
|
7
|
-
import { MapMarkerLayer } from './MarkerLayer';
|
|
8
|
-
import { MapMarkerLayerTooltip } from './MarkerLayerTooltip';
|
|
9
|
-
export { MapLayers, MapShapeLayer, MapShapeLayerTooltip, MapTileLayer, MapBubbleLayer, MapBubbleLayerTooltip, MapMarkerLayer, MapMarkerLayerTooltip };
|
package/dist/es/defaults.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/es/defaults.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DateCategoryAxis, DateValueAxis } from '@progress/kendo-charts';
|
|
2
|
-
var dateCategoryAxisFormats = DateCategoryAxis.prototype.options.labels.dateFormats;
|
|
3
|
-
var dateValueAxisFormats = DateValueAxis.prototype.options.labels.dateFormats;
|
|
4
|
-
var dateFormats = {
|
|
5
|
-
milliseconds: 'HH:mm:ss.SSS',
|
|
6
|
-
seconds: { time: 'medium' },
|
|
7
|
-
minutes: { time: 'short' },
|
|
8
|
-
hours: { time: 'short' },
|
|
9
|
-
days: { skeleton: 'Md' },
|
|
10
|
-
weeks: { skeleton: 'Md' },
|
|
11
|
-
months: { skeleton: 'yyMMM' },
|
|
12
|
-
years: { skeleton: 'y' }
|
|
13
|
-
};
|
|
14
|
-
Object.assign(dateCategoryAxisFormats, dateFormats);
|
|
15
|
-
Object.assign(dateValueAxisFormats, dateFormats);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MapBeforeResetEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Map } from '../Map';
|
|
3
|
-
import { BaseEvent } from './base-event';
|
|
4
|
-
/**
|
|
5
|
-
* Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
|
|
6
|
-
*/
|
|
7
|
-
export declare class BeforeResetEvent extends BaseEvent implements MapBeforeResetEvent {
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
constructor(_: any, target: Map);
|
|
12
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
|
|
19
|
-
*/
|
|
20
|
-
var BeforeResetEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(BeforeResetEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function BeforeResetEvent(_, target) {
|
|
26
|
-
return _super.call(this, target) || this;
|
|
27
|
-
}
|
|
28
|
-
return BeforeResetEvent;
|
|
29
|
-
}(BaseEvent));
|
|
30
|
-
export { BeforeResetEvent };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export declare class DomEvent<T> {
|
|
6
|
-
/**
|
|
7
|
-
* The `Map` component that triggered the event.
|
|
8
|
-
*/
|
|
9
|
-
sender: React.Component;
|
|
10
|
-
/**
|
|
11
|
-
* The syntheticEvent
|
|
12
|
-
*/
|
|
13
|
-
syntheticEvent: T;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
constructor(sender: React.Component, e: T);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
declare function toDomEvent<T>(sender: React.Component, e: T): DomEvent<T>;
|
|
23
|
-
export { toDomEvent };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
var DomEvent = /** @class */ (function () {
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
function DomEvent(sender, e) {
|
|
9
|
-
this.sender = sender;
|
|
10
|
-
this.syntheticEvent = e;
|
|
11
|
-
}
|
|
12
|
-
return DomEvent;
|
|
13
|
-
}());
|
|
14
|
-
export { DomEvent };
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
function toDomEvent(sender, e) {
|
|
19
|
-
return new DomEvent(sender, e);
|
|
20
|
-
}
|
|
21
|
-
export { toDomEvent };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Location, MapClickEvent as BaseMapClickEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Map } from '../Map';
|
|
3
|
-
import { BaseEvent } from './base-event';
|
|
4
|
-
/**
|
|
5
|
-
* Fired when the user clicks on the map.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MapClickEvent extends BaseEvent implements BaseMapClickEvent {
|
|
8
|
-
/**
|
|
9
|
-
* The location of the clicked point.
|
|
10
|
-
*/
|
|
11
|
-
location: Location;
|
|
12
|
-
/**
|
|
13
|
-
* The source DOM event instance
|
|
14
|
-
*/
|
|
15
|
-
originalEvent: any;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
constructor(e: BaseMapClickEvent, target: Map);
|
|
20
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when the user clicks on the map.
|
|
19
|
-
*/
|
|
20
|
-
var MapClickEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(MapClickEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function MapClickEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.location = e.location;
|
|
28
|
-
_this.originalEvent = e.originalEvent;
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
return MapClickEvent;
|
|
32
|
-
}(BaseEvent));
|
|
33
|
-
export { MapClickEvent };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BeforeResetEvent, MapClickEvent, MarkerActivateEvent, MarkerClickEvent, MarkerCreatedEvent, PanEndEvent, PanEvent, ResetEvent, ShapeClickEvent, ShapeCreatedEvent, ShapeFeatureCreatedEvent, ShapeMouseEnterEvent, ShapeMouseLeaveEvent, ZoomEndEvent, ZoomStartEvent } from '../common/events';
|
|
2
|
-
var EVENT_MAP = {
|
|
3
|
-
beforeReset: BeforeResetEvent,
|
|
4
|
-
mapClick: MapClickEvent,
|
|
5
|
-
markerActivate: MarkerActivateEvent,
|
|
6
|
-
markerClick: MarkerClickEvent,
|
|
7
|
-
markerCreated: MarkerCreatedEvent,
|
|
8
|
-
panEnd: PanEndEvent,
|
|
9
|
-
pan: PanEvent,
|
|
10
|
-
reset: ResetEvent,
|
|
11
|
-
shapeClick: ShapeClickEvent,
|
|
12
|
-
shapeCreated: ShapeCreatedEvent,
|
|
13
|
-
shapeFeatureCreated: ShapeFeatureCreatedEvent,
|
|
14
|
-
shapeMouseEnter: ShapeMouseEnterEvent,
|
|
15
|
-
shapeMouseLeave: ShapeMouseLeaveEvent,
|
|
16
|
-
zoomEnd: ZoomEndEvent,
|
|
17
|
-
zoomStart: ZoomStartEvent
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
function create(name, args, sender) {
|
|
23
|
-
if (EVENT_MAP[name]) {
|
|
24
|
-
return new EVENT_MAP[name](args, sender);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export { create };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MapLayer, MapMarker, MapMarkerActivateEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Map } from '../Map';
|
|
3
|
-
import { BaseEvent } from './base-event';
|
|
4
|
-
/**
|
|
5
|
-
* Fired when a marker has been displayed and has a DOM element assigned.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MarkerActivateEvent extends BaseEvent implements MapMarkerActivateEvent {
|
|
8
|
-
/**
|
|
9
|
-
* The marker instance.
|
|
10
|
-
*/
|
|
11
|
-
marker: MapMarker;
|
|
12
|
-
/**
|
|
13
|
-
* The marker layer instance.
|
|
14
|
-
*/
|
|
15
|
-
layer: MapLayer;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
constructor(e: MapMarkerActivateEvent, target: Map);
|
|
20
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when a marker has been displayed and has a DOM element assigned.
|
|
19
|
-
*/
|
|
20
|
-
var MarkerActivateEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(MarkerActivateEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function MarkerActivateEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.marker = e.marker;
|
|
28
|
-
_this.layer = e.layer;
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
return MarkerActivateEvent;
|
|
32
|
-
}(BaseEvent));
|
|
33
|
-
export { MarkerActivateEvent };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MapLayer, MapMarker, MapMarkerClickEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Map } from '../Map';
|
|
3
|
-
import { BaseEvent } from './base-event';
|
|
4
|
-
/**
|
|
5
|
-
* Fired when a marker has been clicked or tapped.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MarkerClickEvent extends BaseEvent implements MapMarkerClickEvent {
|
|
8
|
-
/**
|
|
9
|
-
* The marker instance.
|
|
10
|
-
*/
|
|
11
|
-
marker: MapMarker;
|
|
12
|
-
/**
|
|
13
|
-
* The marker layer instance.
|
|
14
|
-
*/
|
|
15
|
-
layer: MapLayer;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
constructor(e: MapMarkerClickEvent, target: Map);
|
|
20
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when a marker has been clicked or tapped.
|
|
19
|
-
*/
|
|
20
|
-
var MarkerClickEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(MarkerClickEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function MarkerClickEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.marker = e.marker;
|
|
28
|
-
_this.layer = e.layer;
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
return MarkerClickEvent;
|
|
32
|
-
}(BaseEvent));
|
|
33
|
-
export { MarkerClickEvent };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MapLayer, MapMarker, MapMarkerCreatedEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Map } from '../Map';
|
|
3
|
-
import { PreventableEvent } from './preventable-event';
|
|
4
|
-
/**
|
|
5
|
-
* Fired when a marker has been created and is about to be displayed.
|
|
6
|
-
*
|
|
7
|
-
* Cancelling the event will prevent the marker from being shown.
|
|
8
|
-
*/
|
|
9
|
-
export declare class MarkerCreatedEvent extends PreventableEvent implements MapMarkerCreatedEvent {
|
|
10
|
-
/**
|
|
11
|
-
* The marker instance.
|
|
12
|
-
*/
|
|
13
|
-
marker: MapMarker;
|
|
14
|
-
/**
|
|
15
|
-
* The marker layer instance.
|
|
16
|
-
*/
|
|
17
|
-
layer: MapLayer;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
constructor(e: MapMarkerCreatedEvent, target: Map);
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { PreventableEvent } from './preventable-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when a marker has been created and is about to be displayed.
|
|
19
|
-
*
|
|
20
|
-
* Cancelling the event will prevent the marker from being shown.
|
|
21
|
-
*/
|
|
22
|
-
var MarkerCreatedEvent = /** @class */ (function (_super) {
|
|
23
|
-
__extends(MarkerCreatedEvent, _super);
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
function MarkerCreatedEvent(e, target) {
|
|
28
|
-
var _this = _super.call(this, target) || this;
|
|
29
|
-
_this.marker = e.marker;
|
|
30
|
-
_this.layer = e.layer;
|
|
31
|
-
return _this;
|
|
32
|
-
}
|
|
33
|
-
return MarkerCreatedEvent;
|
|
34
|
-
}(PreventableEvent));
|
|
35
|
-
export { MarkerCreatedEvent };
|