@progress/kendo-react-map 5.3.0-dev.202205051853
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 +11 -0
- package/NOTICE.txt +111 -0
- package/README.md +47 -0
- package/about.md +3 -0
- package/dist/cdn/js/kendo-react-map.js +1 -0
- package/dist/es/Map.d.ts +81 -0
- package/dist/es/Map.js +235 -0
- package/dist/es/MapContext.d.ts +15 -0
- package/dist/es/MapContext.js +6 -0
- package/dist/es/MapProps.d.ts +96 -0
- package/dist/es/MapProps.js +0 -0
- package/dist/es/common/events.d.ts +15 -0
- package/dist/es/common/events.js +16 -0
- package/dist/es/common/map-types.d.ts +1 -0
- package/dist/es/common/map-types.js +2 -0
- package/dist/es/components/BubbleLayer.d.ts +9 -0
- package/dist/es/components/BubbleLayer.js +18 -0
- package/dist/es/components/Layers.d.ts +9 -0
- package/dist/es/components/Layers.js +21 -0
- package/dist/es/components/MarkerLayer.d.ts +9 -0
- package/dist/es/components/MarkerLayer.js +18 -0
- package/dist/es/components/ShapeLayer.d.ts +9 -0
- package/dist/es/components/ShapeLayer.js +18 -0
- package/dist/es/components/TileLayer.d.ts +9 -0
- package/dist/es/components/TileLayer.js +18 -0
- package/dist/es/components/base/CollectionConfigurationComponent.d.ts +19 -0
- package/dist/es/components/base/CollectionConfigurationComponent.js +61 -0
- package/dist/es/components/base/ConfigurationComponent.d.ts +24 -0
- package/dist/es/components/base/ConfigurationComponent.js +82 -0
- package/dist/es/components/main.d.ts +6 -0
- package/dist/es/components/main.js +6 -0
- package/dist/es/defaults.d.ts +1 -0
- package/dist/es/defaults.js +15 -0
- package/dist/es/events/base-event.d.ts +14 -0
- package/dist/es/events/base-event.js +13 -0
- package/dist/es/events/before-reset-event.d.ts +12 -0
- package/dist/es/events/before-reset-event.js +28 -0
- package/dist/es/events/map-click-event.d.ts +20 -0
- package/dist/es/events/map-click-event.js +31 -0
- package/dist/es/events/map-event-builder.d.ts +6 -0
- package/dist/es/events/map-event-builder.js +27 -0
- package/dist/es/events/marker-activate-event.d.ts +20 -0
- package/dist/es/events/marker-activate-event.js +31 -0
- package/dist/es/events/marker-click-event.d.ts +20 -0
- package/dist/es/events/marker-click-event.js +31 -0
- package/dist/es/events/marker-created-event.d.ts +22 -0
- package/dist/es/events/marker-created-event.js +33 -0
- package/dist/es/events/pan-end-event.d.ts +24 -0
- package/dist/es/events/pan-end-event.js +32 -0
- package/dist/es/events/pan-event.d.ts +24 -0
- package/dist/es/events/pan-event.js +32 -0
- package/dist/es/events/preventable-event.d.ts +18 -0
- package/dist/es/events/preventable-event.js +44 -0
- package/dist/es/events/reset-event.d.ts +14 -0
- package/dist/es/events/reset-event.js +30 -0
- package/dist/es/events/shape-click-event.d.ts +25 -0
- package/dist/es/events/shape-click-event.js +32 -0
- package/dist/es/events/shape-created-event.d.ts +29 -0
- package/dist/es/events/shape-created-event.js +35 -0
- package/dist/es/events/shape-feature-created-event.d.ts +29 -0
- package/dist/es/events/shape-feature-created-event.js +33 -0
- package/dist/es/events/shape-mouse-enter-event.d.ts +28 -0
- package/dist/es/events/shape-mouse-enter-event.js +35 -0
- package/dist/es/events/shape-mouse-leave-event.d.ts +28 -0
- package/dist/es/events/shape-mouse-leave-event.js +35 -0
- package/dist/es/events/zoom-end-event.d.ts +16 -0
- package/dist/es/events/zoom-end-event.js +30 -0
- package/dist/es/events/zoom-start-event.d.ts +18 -0
- package/dist/es/events/zoom-start-event.js +32 -0
- package/dist/es/main.d.ts +6 -0
- package/dist/es/main.js +5 -0
- package/dist/es/package-metadata.d.ts +5 -0
- package/dist/es/package-metadata.js +11 -0
- package/dist/es/store/reducer.d.ts +10 -0
- package/dist/es/store/reducer.js +75 -0
- package/dist/es/store/store.d.ts +22 -0
- package/dist/es/store/store.js +22 -0
- package/dist/npm/Map.d.ts +81 -0
- package/dist/npm/Map.js +237 -0
- package/dist/npm/MapContext.d.ts +15 -0
- package/dist/npm/MapContext.js +8 -0
- package/dist/npm/MapProps.d.ts +96 -0
- package/dist/npm/MapProps.js +2 -0
- package/dist/npm/common/events.d.ts +15 -0
- package/dist/npm/common/events.js +33 -0
- package/dist/npm/common/map-types.d.ts +1 -0
- package/dist/npm/common/map-types.js +6 -0
- package/dist/npm/components/BubbleLayer.d.ts +9 -0
- package/dist/npm/components/BubbleLayer.js +20 -0
- package/dist/npm/components/Layers.d.ts +9 -0
- package/dist/npm/components/Layers.js +23 -0
- package/dist/npm/components/MarkerLayer.d.ts +9 -0
- package/dist/npm/components/MarkerLayer.js +20 -0
- package/dist/npm/components/ShapeLayer.d.ts +9 -0
- package/dist/npm/components/ShapeLayer.js +20 -0
- package/dist/npm/components/TileLayer.d.ts +9 -0
- package/dist/npm/components/TileLayer.js +20 -0
- package/dist/npm/components/base/CollectionConfigurationComponent.d.ts +19 -0
- package/dist/npm/components/base/CollectionConfigurationComponent.js +63 -0
- package/dist/npm/components/base/ConfigurationComponent.d.ts +24 -0
- package/dist/npm/components/base/ConfigurationComponent.js +84 -0
- package/dist/npm/components/main.d.ts +6 -0
- package/dist/npm/components/main.js +12 -0
- package/dist/npm/defaults.d.ts +1 -0
- package/dist/npm/defaults.js +17 -0
- package/dist/npm/events/base-event.d.ts +14 -0
- package/dist/npm/events/base-event.js +15 -0
- package/dist/npm/events/before-reset-event.d.ts +12 -0
- package/dist/npm/events/before-reset-event.js +30 -0
- package/dist/npm/events/map-click-event.d.ts +20 -0
- package/dist/npm/events/map-click-event.js +33 -0
- package/dist/npm/events/map-event-builder.d.ts +6 -0
- package/dist/npm/events/map-event-builder.js +29 -0
- package/dist/npm/events/marker-activate-event.d.ts +20 -0
- package/dist/npm/events/marker-activate-event.js +33 -0
- package/dist/npm/events/marker-click-event.d.ts +20 -0
- package/dist/npm/events/marker-click-event.js +33 -0
- package/dist/npm/events/marker-created-event.d.ts +22 -0
- package/dist/npm/events/marker-created-event.js +35 -0
- package/dist/npm/events/pan-end-event.d.ts +24 -0
- package/dist/npm/events/pan-end-event.js +34 -0
- package/dist/npm/events/pan-event.d.ts +24 -0
- package/dist/npm/events/pan-event.js +34 -0
- package/dist/npm/events/preventable-event.d.ts +18 -0
- package/dist/npm/events/preventable-event.js +46 -0
- package/dist/npm/events/reset-event.d.ts +14 -0
- package/dist/npm/events/reset-event.js +32 -0
- package/dist/npm/events/shape-click-event.d.ts +25 -0
- package/dist/npm/events/shape-click-event.js +34 -0
- package/dist/npm/events/shape-created-event.d.ts +29 -0
- package/dist/npm/events/shape-created-event.js +37 -0
- package/dist/npm/events/shape-feature-created-event.d.ts +29 -0
- package/dist/npm/events/shape-feature-created-event.js +35 -0
- package/dist/npm/events/shape-mouse-enter-event.d.ts +28 -0
- package/dist/npm/events/shape-mouse-enter-event.js +37 -0
- package/dist/npm/events/shape-mouse-leave-event.d.ts +28 -0
- package/dist/npm/events/shape-mouse-leave-event.js +37 -0
- package/dist/npm/events/zoom-end-event.d.ts +16 -0
- package/dist/npm/events/zoom-end-event.js +32 -0
- package/dist/npm/events/zoom-start-event.d.ts +18 -0
- package/dist/npm/events/zoom-start-event.js +34 -0
- package/dist/npm/main.d.ts +6 -0
- package/dist/npm/main.js +10 -0
- package/dist/npm/package-metadata.d.ts +5 -0
- package/dist/npm/package-metadata.js +13 -0
- package/dist/npm/store/reducer.d.ts +10 -0
- package/dist/npm/store/reducer.js +78 -0
- package/dist/npm/store/store.d.ts +22 -0
- package/dist/npm/store/store.js +24 -0
- package/dist/systemjs/kendo-react-map.js +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,61 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __assign = (this && this.__assign) || function () {
|
|
15
|
+
__assign = Object.assign || function(t) {
|
|
16
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
+
s = arguments[i];
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
import * as React from 'react';
|
|
26
|
+
import { MapContext } from '../../MapContext';
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
var CollectionConfigurationComponent = /** @class */ (function (_super) {
|
|
31
|
+
__extends(CollectionConfigurationComponent, _super);
|
|
32
|
+
function CollectionConfigurationComponent(props, context) {
|
|
33
|
+
var _this = _super.call(this, props, context) || this;
|
|
34
|
+
_this.optionsStore = context.optionsStore;
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
CollectionConfigurationComponent.prototype.renderChildren = function (child, index) {
|
|
38
|
+
var children = child.props.children;
|
|
39
|
+
var _a = this.props, _mapKey = _a._mapKey, _parentStore = _a._parentStore;
|
|
40
|
+
var collectionItemProps = __assign({}, child.props, { _mapCollectionIdxKey: _mapKey + "_" + index, _parentStore: _parentStore });
|
|
41
|
+
return React.cloneElement(child, collectionItemProps, children);
|
|
42
|
+
};
|
|
43
|
+
CollectionConfigurationComponent.prototype.render = function () {
|
|
44
|
+
var _this = this;
|
|
45
|
+
var _a = this.props, _mapKey = _a._mapKey, _parentStore = _a._parentStore, children = _a.children;
|
|
46
|
+
var store = _parentStore || this.optionsStore;
|
|
47
|
+
store.dispatch({
|
|
48
|
+
mapKey: _mapKey,
|
|
49
|
+
payload: []
|
|
50
|
+
});
|
|
51
|
+
return React.Children.map(children, function (child, index) {
|
|
52
|
+
if (React.isValidElement(child)) {
|
|
53
|
+
return _this.renderChildren(child, index);
|
|
54
|
+
}
|
|
55
|
+
return child;
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
CollectionConfigurationComponent.contextType = MapContext;
|
|
59
|
+
return CollectionConfigurationComponent;
|
|
60
|
+
}(React.Component));
|
|
61
|
+
export default CollectionConfigurationComponent;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export interface ConfigurationComponentProps {
|
|
6
|
+
_mapKey?: string;
|
|
7
|
+
_mapCollectionIdxKey?: string;
|
|
8
|
+
_parentStore?: any;
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export default class ConfigurationComponent extends React.Component<ConfigurationComponentProps> {
|
|
15
|
+
static contextType: React.Context<import("../../MapContext").MapContextType>;
|
|
16
|
+
optionsStore: any;
|
|
17
|
+
childStore: any;
|
|
18
|
+
constructor(props: any, context: any);
|
|
19
|
+
render(): any;
|
|
20
|
+
componentDidMount(): void;
|
|
21
|
+
componentDidUpdate(): void;
|
|
22
|
+
private dispatch;
|
|
23
|
+
private renderChildren;
|
|
24
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __assign = (this && this.__assign) || function () {
|
|
15
|
+
__assign = Object.assign || function(t) {
|
|
16
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
+
s = arguments[i];
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
31
|
+
t[p[i]] = s[p[i]];
|
|
32
|
+
return t;
|
|
33
|
+
};
|
|
34
|
+
import * as React from 'react';
|
|
35
|
+
import createStore from './../../store/store';
|
|
36
|
+
import { optionsReducer } from './../../store/reducer';
|
|
37
|
+
import { MapContext } from '../../MapContext';
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
var ConfigurationComponent = /** @class */ (function (_super) {
|
|
42
|
+
__extends(ConfigurationComponent, _super);
|
|
43
|
+
function ConfigurationComponent(props, context) {
|
|
44
|
+
var _this = _super.call(this, props, context) || this;
|
|
45
|
+
_this.optionsStore = context.optionsStore;
|
|
46
|
+
_this.childStore = createStore(optionsReducer);
|
|
47
|
+
return _this;
|
|
48
|
+
}
|
|
49
|
+
ConfigurationComponent.prototype.render = function () {
|
|
50
|
+
var _this = this;
|
|
51
|
+
var children = this.props.children;
|
|
52
|
+
return children !== undefined ? React.Children.map(children, function (child) {
|
|
53
|
+
if (React.isValidElement(child)) {
|
|
54
|
+
return _this.renderChildren(child);
|
|
55
|
+
}
|
|
56
|
+
return child;
|
|
57
|
+
}) : null;
|
|
58
|
+
};
|
|
59
|
+
ConfigurationComponent.prototype.componentDidMount = function () {
|
|
60
|
+
this.dispatch();
|
|
61
|
+
};
|
|
62
|
+
ConfigurationComponent.prototype.componentDidUpdate = function () {
|
|
63
|
+
this.dispatch();
|
|
64
|
+
};
|
|
65
|
+
ConfigurationComponent.prototype.dispatch = function () {
|
|
66
|
+
var _a = this.props, _mapKey = _a._mapKey, _mapCollectionIdxKey = _a._mapCollectionIdxKey, _parentStore = _a._parentStore, children = _a.children, options = __rest(_a, ["_mapKey", "_mapCollectionIdxKey", "_parentStore", "children"]);
|
|
67
|
+
var store = _parentStore || this.optionsStore;
|
|
68
|
+
store.dispatch({
|
|
69
|
+
mapKey: _mapKey,
|
|
70
|
+
mapCollectionIdxKey: _mapCollectionIdxKey,
|
|
71
|
+
payload: Object.assign({}, options, this.childStore.getState())
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
ConfigurationComponent.prototype.renderChildren = function (child) {
|
|
75
|
+
var children = child.props.children;
|
|
76
|
+
var configurationItemProps = __assign({}, child.props, { _parentStore: this.childStore });
|
|
77
|
+
return React.cloneElement(child, configurationItemProps, children);
|
|
78
|
+
};
|
|
79
|
+
ConfigurationComponent.contextType = MapContext;
|
|
80
|
+
return ConfigurationComponent;
|
|
81
|
+
}(React.Component));
|
|
82
|
+
export default ConfigurationComponent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import MapLayers, { MapLayersProps } from './Layers';
|
|
2
|
+
import MapShapeLayer, { MapShapeLayerProps } from './ShapeLayer';
|
|
3
|
+
import MapTileLayer, { MapTileLayerProps } from './TileLayer';
|
|
4
|
+
import MapBubbleLayer, { MapBubbleLayerProps } from './BubbleLayer';
|
|
5
|
+
import MapMarkerLayer, { MapMarkerLayerProps } from './MarkerLayer';
|
|
6
|
+
export { MapLayers, MapLayersProps, MapShapeLayer, MapShapeLayerProps, MapTileLayer, MapTileLayerProps, MapBubbleLayer, MapBubbleLayerProps, MapMarkerLayer, MapMarkerLayerProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import MapLayers from './Layers';
|
|
2
|
+
import MapShapeLayer from './ShapeLayer';
|
|
3
|
+
import MapTileLayer from './TileLayer';
|
|
4
|
+
import MapBubbleLayer from './BubbleLayer';
|
|
5
|
+
import MapMarkerLayer from './MarkerLayer';
|
|
6
|
+
export { MapLayers, MapShapeLayer, MapTileLayer, MapBubbleLayer, MapMarkerLayer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
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);
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BaseEvent } from './base-event';
|
|
15
|
+
/**
|
|
16
|
+
* Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
|
|
17
|
+
*/
|
|
18
|
+
var BeforeResetEvent = /** @class */ (function (_super) {
|
|
19
|
+
__extends(BeforeResetEvent, _super);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
function BeforeResetEvent(_, target) {
|
|
24
|
+
return _super.call(this, target) || this;
|
|
25
|
+
}
|
|
26
|
+
return BeforeResetEvent;
|
|
27
|
+
}(BaseEvent));
|
|
28
|
+
export { BeforeResetEvent };
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BaseEvent } from './base-event';
|
|
15
|
+
/**
|
|
16
|
+
* Fired when the user clicks on the map.
|
|
17
|
+
*/
|
|
18
|
+
var MapClickEvent = /** @class */ (function (_super) {
|
|
19
|
+
__extends(MapClickEvent, _super);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
function MapClickEvent(e, target) {
|
|
24
|
+
var _this = _super.call(this, target) || this;
|
|
25
|
+
_this.location = e.location;
|
|
26
|
+
_this.originalEvent = e.originalEvent;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return MapClickEvent;
|
|
30
|
+
}(BaseEvent));
|
|
31
|
+
export { MapClickEvent };
|
|
@@ -0,0 +1,27 @@
|
|
|
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 };
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BaseEvent } from './base-event';
|
|
15
|
+
/**
|
|
16
|
+
* Fired when a marker has been displayed and has a DOM element assigned.
|
|
17
|
+
*/
|
|
18
|
+
var MarkerActivateEvent = /** @class */ (function (_super) {
|
|
19
|
+
__extends(MarkerActivateEvent, _super);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
function MarkerActivateEvent(e, target) {
|
|
24
|
+
var _this = _super.call(this, target) || this;
|
|
25
|
+
_this.marker = e.marker;
|
|
26
|
+
_this.layer = e.layer;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return MarkerActivateEvent;
|
|
30
|
+
}(BaseEvent));
|
|
31
|
+
export { MarkerActivateEvent };
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BaseEvent } from './base-event';
|
|
15
|
+
/**
|
|
16
|
+
* Fired when a marker has been clicked or tapped.
|
|
17
|
+
*/
|
|
18
|
+
var MarkerClickEvent = /** @class */ (function (_super) {
|
|
19
|
+
__extends(MarkerClickEvent, _super);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
function MarkerClickEvent(e, target) {
|
|
24
|
+
var _this = _super.call(this, target) || this;
|
|
25
|
+
_this.marker = e.marker;
|
|
26
|
+
_this.layer = e.layer;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return MarkerClickEvent;
|
|
30
|
+
}(BaseEvent));
|
|
31
|
+
export { MarkerClickEvent };
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { PreventableEvent } from './preventable-event';
|
|
15
|
+
/**
|
|
16
|
+
* Fired when a marker has been created and is about to be displayed.
|
|
17
|
+
*
|
|
18
|
+
* Cancelling the event will prevent the marker from being shown.
|
|
19
|
+
*/
|
|
20
|
+
var MarkerCreatedEvent = /** @class */ (function (_super) {
|
|
21
|
+
__extends(MarkerCreatedEvent, _super);
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
function MarkerCreatedEvent(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 MarkerCreatedEvent;
|
|
32
|
+
}(PreventableEvent));
|
|
33
|
+
export { MarkerCreatedEvent };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Location, MapPanEndEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Map } from '../Map';
|
|
3
|
+
import { BaseEvent } from './base-event';
|
|
4
|
+
/**
|
|
5
|
+
* Fires after the map viewport has been moved.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PanEndEvent extends BaseEvent implements MapPanEndEvent {
|
|
8
|
+
/**
|
|
9
|
+
* The map origin (top left or NW corner).
|
|
10
|
+
*/
|
|
11
|
+
origin: Location;
|
|
12
|
+
/**
|
|
13
|
+
* The current map center.
|
|
14
|
+
*/
|
|
15
|
+
center: Location;
|
|
16
|
+
/**
|
|
17
|
+
* The source DOM event instance
|
|
18
|
+
*/
|
|
19
|
+
originalEvent: any;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
constructor(e: MapPanEndEvent, target: Map);
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BaseEvent } from './base-event';
|
|
15
|
+
/**
|
|
16
|
+
* Fires after the map viewport has been moved.
|
|
17
|
+
*/
|
|
18
|
+
var PanEndEvent = /** @class */ (function (_super) {
|
|
19
|
+
__extends(PanEndEvent, _super);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
function PanEndEvent(e, target) {
|
|
24
|
+
var _this = _super.call(this, target) || this;
|
|
25
|
+
_this.origin = e.origin;
|
|
26
|
+
_this.center = e.center;
|
|
27
|
+
_this.originalEvent = e.originalEvent;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return PanEndEvent;
|
|
31
|
+
}(BaseEvent));
|
|
32
|
+
export { PanEndEvent };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Location, MapPanEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Map } from '../Map';
|
|
3
|
+
import { BaseEvent } from './base-event';
|
|
4
|
+
/**
|
|
5
|
+
* Fired while the map viewport is being moved.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PanEvent extends BaseEvent implements MapPanEvent {
|
|
8
|
+
/**
|
|
9
|
+
* The map origin (top left or NW corner).
|
|
10
|
+
*/
|
|
11
|
+
origin: Location;
|
|
12
|
+
/**
|
|
13
|
+
* The current map center.
|
|
14
|
+
*/
|
|
15
|
+
center: Location;
|
|
16
|
+
/**
|
|
17
|
+
* The source DOM event instance
|
|
18
|
+
*/
|
|
19
|
+
originalEvent: any;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
constructor(e: MapPanEvent, target: Map);
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BaseEvent } from './base-event';
|
|
15
|
+
/**
|
|
16
|
+
* Fired while the map viewport is being moved.
|
|
17
|
+
*/
|
|
18
|
+
var PanEvent = /** @class */ (function (_super) {
|
|
19
|
+
__extends(PanEvent, _super);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
function PanEvent(e, target) {
|
|
24
|
+
var _this = _super.call(this, target) || this;
|
|
25
|
+
_this.origin = e.origin;
|
|
26
|
+
_this.center = e.center;
|
|
27
|
+
_this.originalEvent = e.originalEvent;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return PanEvent;
|
|
31
|
+
}(BaseEvent));
|
|
32
|
+
export { PanEvent };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseEvent } from './base-event';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class PreventableEvent extends BaseEvent {
|
|
6
|
+
private prevented;
|
|
7
|
+
/**
|
|
8
|
+
* Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
|
|
9
|
+
*/
|
|
10
|
+
preventDefault(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Returns `true` if the event was prevented by any of its subscribers.
|
|
13
|
+
*
|
|
14
|
+
* @returns `true` if the default action was prevented.
|
|
15
|
+
* Otherwise, returns `false`.
|
|
16
|
+
*/
|
|
17
|
+
isDefaultPrevented(): boolean;
|
|
18
|
+
}
|