@corpsmap/corpsmap 4.1.0 → 4.1.1

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.
Files changed (33) hide show
  1. package/dist/corpsmap.es.js +1 -1
  2. package/dist/corpsmap.umd.js +1 -1
  3. package/package.json +2 -1
  4. package/src/App.jsx +0 -12
  5. package/src/application-bundles-old/auth-bundle.js +0 -130
  6. package/src/application-bundles-old/config-bundle.js +0 -29
  7. package/src/application-bundles-old/ui-bundle.js +0 -406
  8. package/src/core-plugins/draw-tools-old/create-draw-bundle.js +0 -222
  9. package/src/core-plugins/draw-tools-old/draw-button.js +0 -189
  10. package/src/core-plugins/draw-tools-old/draw-label-bundle.js +0 -116
  11. package/src/core-plugins/draw-tools-old/draw-modify-bundle.js +0 -156
  12. package/src/core-plugins/draw-tools-old/draw-styles.js +0 -110
  13. package/src/core-plugins/draw-tools-old/draw-tool-item.js +0 -67
  14. package/src/core-plugins/draw-tools-old/index.js +0 -32
  15. package/src/css/_deprecated_bootstrap/css/bootstrap-paper.css +0 -7606
  16. package/src/css/_deprecated_bootstrap/css/bootstrap-paper.min.css +0 -8083
  17. package/src/css/_deprecated_bootstrap/css/bootstrap-simplex.min.css +0 -7328
  18. package/src/css/_deprecated_bootstrap/css/bootstrap-theme.css +0 -587
  19. package/src/css/_deprecated_bootstrap/css/bootstrap-theme.css.map +0 -1
  20. package/src/css/_deprecated_bootstrap/css/bootstrap-theme.min.css +0 -6
  21. package/src/css/_deprecated_bootstrap/css/bootstrap-theme.min.css.map +0 -1
  22. package/src/css/_deprecated_bootstrap/css/bootstrap.css +0 -7137
  23. package/src/css/_deprecated_bootstrap/css/bootstrap.css.map +0 -142
  24. package/src/css/_deprecated_bootstrap/css/bootstrap.min.css +0 -7132
  25. package/src/css/_deprecated_bootstrap/css/bootstrap.min.css.map +0 -143
  26. package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  27. package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.svg +0 -288
  28. package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  29. package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  30. package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  31. package/src/css/_deprecated_bootstrap/js/bootstrap.js +0 -2377
  32. package/src/css/_deprecated_bootstrap/js/bootstrap.min.js +0 -7
  33. package/src/css/_deprecated_bootstrap/js/npm.js +0 -13
@@ -1,110 +0,0 @@
1
-
2
- import Style from 'ol/style/Style';
3
- import Circle from 'ol/style/Circle';
4
- import Fill from 'ol/style/Fill';
5
- import Stroke from 'ol/style/Stroke';
6
- import Text from 'ol/style/Text';
7
-
8
- export default (type) => {
9
-
10
- const fillColor = 'rgba(245, 66, 233, 1)';
11
- const fillColorA = 'rgba(245, 66, 233, 0.6)';
12
- const strokeColor = '#ffffff';
13
-
14
- const styles = {
15
- 'Point': (f) => {
16
- const label = f.get('label') || '';
17
- return new Style({
18
- image: new Circle({
19
- radius: 7,
20
- fill: new Fill({
21
- color: fillColor
22
- }),
23
- stroke: new Stroke({
24
- color: strokeColor,
25
- width: 3
26
- }),
27
- }),
28
- text: new Text({
29
- placement: 'point',
30
- font: '14px sans-serif',
31
- weight: 'bold',
32
- text: label,
33
- textAlign: 'left',
34
- textBaseline: 'bottom',
35
- offsetX: 4,
36
- offsetY: -4,
37
- overflow: true,
38
- stroke: new Stroke({
39
- color: strokeColor,
40
- width: 3
41
- })
42
- }),
43
- fill: new Fill({
44
- color: fillColor
45
- }),
46
- stroke: new Stroke({
47
- color: strokeColor,
48
- width: 3
49
- })
50
- })
51
- },
52
- 'LineString': (f) => {
53
- const label = f.get('label') || '';
54
- return [
55
- new Style({
56
- stroke: new Stroke({
57
- color: strokeColor,
58
- width: 4
59
- })
60
- }),
61
- new Style({
62
- text: new Text({
63
- font: '14px sans-serif',
64
- weight: 'bold',
65
- text: label,
66
- textAlign: 'center',
67
- textBaseline: 'middle',
68
- placement: 'line',
69
- overflow: true,
70
- stroke: new Stroke({
71
- color: strokeColor,
72
- width: 3
73
- })
74
- }),
75
- stroke: new Stroke({
76
- color: fillColor,
77
- width: 2
78
- })
79
- })
80
- ]
81
- },
82
- 'Polygon': (f) => {
83
- const label = f.get('label') || '';
84
- return new Style({
85
- text: new Text({
86
- placement: 'point',
87
- font: '14px sans-serif',
88
- weight: 'bold',
89
- text: label,
90
- textAlign: 'center',
91
- textBaseline: 'middle',
92
- overflow: true,
93
- stroke: new Stroke({
94
- color: strokeColor,
95
- width: 3
96
- })
97
- }),
98
- fill: new Fill({
99
- color: fillColorA
100
- }),
101
- stroke: new Stroke({
102
- color: strokeColor,
103
- width: 3
104
- })
105
- })
106
- }
107
- }
108
-
109
- return styles[type];
110
- }
@@ -1,67 +0,0 @@
1
- import React from 'react';
2
- import classnames from 'classnames';
3
-
4
- class DrawToolItem extends React.Component {
5
- constructor(props){
6
- super(props);
7
- this.toggleVisible = this.toggleVisible.bind(this);
8
- this.renderTextContent = this.renderTextContent.bind(this);
9
- this.renderVisibilityIcon = this.renderVisibilityIcon.bind(this);
10
- }
11
-
12
- toggleVisible(e){
13
- e.preventDefault()
14
- e.stopPropagation()
15
- const { onToggleVisibility } = this.props;
16
- onToggleVisibility();
17
- }
18
-
19
- renderTextContent(){
20
- const { liveDangerously, text } = this.props;
21
- if(!liveDangerously) return text;
22
- return (
23
- <span dangerouslySetInnerHTML={{__html: text}}></span>
24
- )
25
- }
26
-
27
- renderVisibilityIcon(){
28
- const { visible } = this.props;
29
- const submenuCls = classnames({
30
- 'pull-right': true
31
- })
32
- const iconClass = classnames({
33
- 'mdi': true,
34
- 'mdi-eye': visible,
35
- 'text-primary': visible,
36
- 'mdi-eye-off': !visible
37
- })
38
- return (
39
- <div
40
- onClick={this.toggleVisible}
41
- className={submenuCls}
42
- style={{position:'relative',right:'-20px'}}
43
- title="Show/Hide"
44
- >
45
- <i className={iconClass} />
46
- </div>
47
- )
48
- }
49
-
50
- render(){
51
- const { active, passProps, onClick, iconClass } = this.props;
52
- const itemClass = classnames({
53
- 'active': active
54
- })
55
- return (
56
- <li className={ itemClass } {...passProps} onClick={onClick} style={{paddingRight:'20px'}}>
57
- <span>
58
- { this.renderVisibilityIcon() }
59
- <i className={ iconClass } />
60
- { this.renderTextContent() }
61
- </span>
62
- </li>
63
- )
64
- }
65
- }
66
-
67
- export default DrawToolItem;
@@ -1,32 +0,0 @@
1
- import DrawButton from './draw-button';
2
- import createDrawBundle from './create-draw-bundle';
3
- import drawLabelBundle from './draw-label-bundle';
4
- import drawModifyBundle from './draw-modify-bundle';
5
-
6
- const plugin = {
7
- pluginName: 'Draw Tools',
8
- enabled: true,
9
- bundle: [
10
- createDrawBundle({
11
- name: 'drawPoints',
12
- type: 'Point'
13
- }),
14
- createDrawBundle({
15
- name: 'drawLines',
16
- type: 'LineString'
17
- }),
18
- createDrawBundle({
19
- name: 'drawPolygons',
20
- type: 'Polygon'
21
- }),
22
- drawLabelBundle,
23
- drawModifyBundle
24
- ],
25
- components:[{
26
- component: DrawButton,
27
- region: 'basic-toolbar',
28
- sortOrder: 80
29
- }]
30
- }
31
-
32
- export default plugin;