@syncfusion/ej2-angular-maps 19.4.56 → 19.4.57-105067

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 (75) hide show
  1. package/@syncfusion/ej2-angular-maps.es5.js +866 -866
  2. package/@syncfusion/ej2-angular-maps.es5.js.map +1 -1
  3. package/@syncfusion/ej2-angular-maps.js +771 -771
  4. package/@syncfusion/ej2-angular-maps.js.map +1 -1
  5. package/CHANGELOG.md +2 -0
  6. package/README.md +73 -73
  7. package/dist/ej2-angular-maps.umd.js +857 -865
  8. package/dist/ej2-angular-maps.umd.js.map +1 -1
  9. package/dist/ej2-angular-maps.umd.min.js +1 -10
  10. package/dist/ej2-angular-maps.umd.min.js.map +1 -1
  11. package/ej2-angular-maps.d.ts +5 -5
  12. package/ej2-angular-maps.metadata.json +1 -1
  13. package/package.json +80 -80
  14. package/postinstall/tagchange.js +18 -18
  15. package/public_api.d.ts +1 -1
  16. package/schematics/generators/maps-annotation/images/__path__/__name@dasherize__/compass.svg +197 -197
  17. package/schematics/generators/maps-annotation/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +20 -20
  18. package/schematics/generators/maps-annotation/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +14 -14
  19. package/schematics/generators/maps-annotation/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +57 -57
  20. package/schematics/generators/maps-annotation/schema.json +3 -2
  21. package/schematics/generators/maps-bubble/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -3
  22. package/schematics/generators/maps-bubble/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +10 -10
  23. package/schematics/generators/maps-bubble/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +71 -71
  24. package/schematics/generators/maps-bubble/samples/__path__/__name@dasherize@if-flat__/assets/population-data.ts +45 -45
  25. package/schematics/generators/maps-bubble/samples/__path__/__name@dasherize@if-flat__/assets/world-map.ts +184 -184
  26. package/schematics/generators/maps-bubble/schema.json +3 -2
  27. package/schematics/generators/maps-color-mapping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -3
  28. package/schematics/generators/maps-color-mapping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -8
  29. package/schematics/generators/maps-color-mapping/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +76 -76
  30. package/schematics/generators/maps-color-mapping/schema.json +3 -2
  31. package/schematics/generators/maps-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -3
  32. package/schematics/generators/maps-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +10 -10
  33. package/schematics/generators/maps-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +32 -32
  34. package/schematics/generators/maps-default/schema.json +3 -2
  35. package/schematics/generators/maps-label/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -3
  36. package/schematics/generators/maps-label/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -8
  37. package/schematics/generators/maps-label/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +37 -37
  38. package/schematics/generators/maps-label/samples/__path__/__name@dasherize@if-flat__/assets/world-map.ts +184 -184
  39. package/schematics/generators/maps-label/schema.json +3 -2
  40. package/schematics/generators/maps-legend/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -3
  41. package/schematics/generators/maps-legend/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +7 -7
  42. package/schematics/generators/maps-legend/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +101 -101
  43. package/schematics/generators/maps-legend/schema.json +3 -2
  44. package/schematics/generators/maps-marker/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -3
  45. package/schematics/generators/maps-marker/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +10 -10
  46. package/schematics/generators/maps-marker/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +100 -100
  47. package/schematics/generators/maps-marker/schema.json +3 -2
  48. package/schematics/generators/maps-navigation-line/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +18 -18
  49. package/schematics/generators/maps-navigation-line/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +5 -5
  50. package/schematics/generators/maps-navigation-line/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +120 -120
  51. package/schematics/generators/maps-navigation-line/samples/__path__/__name@dasherize@if-flat__/assets/map-location.ts +127 -127
  52. package/schematics/generators/maps-navigation-line/samples/__path__/__name@dasherize@if-flat__/assets/world-map.ts +184 -184
  53. package/schematics/generators/maps-navigation-line/schema.json +3 -2
  54. package/schematics/generators/maps-osm/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -3
  55. package/schematics/generators/maps-osm/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +10 -10
  56. package/schematics/generators/maps-osm/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +32 -32
  57. package/schematics/generators/maps-osm/schema.json +3 -2
  58. package/schematics/ng-add/index.ts +10 -10
  59. package/schematics/ng-add/schema.json +34 -34
  60. package/schematics/ng-add/schema.ts +30 -30
  61. package/schematics/tsconfig.json +25 -25
  62. package/schematics/utils/lib-details.d.ts +2 -2
  63. package/schematics/utils/lib-details.js +2 -2
  64. package/schematics/utils/lib-details.ts +4 -4
  65. package/src/index.d.ts +11 -11
  66. package/src/maps/annotations.directive.d.ts +49 -49
  67. package/src/maps/bubblesettings.directive.d.ts +116 -116
  68. package/src/maps/colormapping.directive.d.ts +71 -71
  69. package/src/maps/initialshapeselection.directive.d.ts +37 -37
  70. package/src/maps/layers.directive.d.ts +151 -147
  71. package/src/maps/maps-all.module.d.ts +19 -19
  72. package/src/maps/maps.component.d.ts +64 -63
  73. package/src/maps/maps.module.d.ts +5 -5
  74. package/src/maps/markersettings.directive.d.ts +149 -149
  75. package/src/maps/navigationlinesettings.directive.d.ts +74 -74
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "maps-label",
3
+ "$id": "EJ2SchemaTemplateID",
4
4
  "title": "maps-label",
5
5
  "type": "object",
6
6
  "properties": {
@@ -120,5 +120,6 @@
120
120
  },
121
121
  "required": [
122
122
  "name"
123
- ]
123
+ ],
124
+ "id": "maps-label"
124
125
  }
@@ -1,3 +1,3 @@
1
- .control-section {
2
- min-height: 450px;
3
- }
1
+ .control-section {
2
+ min-height: 450px;
3
+ }
@@ -1,8 +1,8 @@
1
- <div class="control-section">
2
- <div align='center'>
3
- <ejs-maps id='container' style="display:block;" [zoomSettings]='zoomSettings' [layers]='layers'
4
- [legendSettings]="legendSettings" [titleSettings] = "titleSettings"
5
- (load)="load($event)">
6
- </ejs-maps>
7
- </div>
1
+ <div class="control-section">
2
+ <div align='center'>
3
+ <ejs-maps id='container' style="display:block;" [zoomSettings]='zoomSettings' [layers]='layers'
4
+ [legendSettings]="legendSettings" [titleSettings] = "titleSettings"
5
+ (load)="load($event)">
6
+ </ejs-maps>
7
+ </div>
8
8
  </div>
@@ -1,102 +1,102 @@
1
- /* eslint-disable */
2
- import { Component, ViewEncapsulation } from '@angular/core';
3
- import { MapsTheme, Maps, Legend, Marker, MapsTooltip, ILoadEventArgs } from '@syncfusion/ej2-angular-maps';
4
- import { default_datasource } from './assets/default-datasource';
5
- import { world_map } from './assets/world-map';
6
-
7
- Maps.Inject(Legend, Marker, MapsTooltip);
8
-
9
- /**
10
- * Maps default sample
11
- */
12
- @Component({
13
- selector: '<%=dasherize(selector)%>',
14
- templateUrl: '<%=dasherize(name)%>.component.html',
15
- styleUrls: ['<%=dasherize(name)%>.component.css'],
16
- encapsulation: ViewEncapsulation.None
17
- })
18
- export class <%= classify(name) %>Component {
19
- titleSettings: object = {
20
- text: 'YouTube office locations',
21
- textStyle: {
22
- size: '16px'
23
- }
24
- };
25
- public zoomSettings: object = {
26
- enable: false
27
- };
28
- public legendSettings: object = { visible: true };
29
-
30
- public layers: object[] = [{
31
- shapeData: world_map,
32
- shapePropertyPath: 'continent',
33
- shapeDataPath: 'continent',
34
- dataSource: default_datasource,
35
- shapeSettings: { colorValuePath: 'color', },
36
- markerSettings: [{
37
- visible: true,
38
- dataSource: [
39
- { latitude: 37.6276571, longitude: -122.4276688, name: 'San Bruno' },
40
- { latitude: 33.5302186, longitude: -117.7418381, name: 'Laguna Niguel' },
41
- { latitude: 40.7424509, longitude: -74.0081468, name: 'New York' },
42
- { latitude: -23.5268201, longitude: -46.6489927, name: 'Bom Retiro' },
43
- { latitude: 43.6533855, longitude: -79.3729994, name: 'Toronto' },
44
- { latitude: 48.8773406, longitude: 2.3299627, name: 'Paris' },
45
- { latitude: 52.4643089, longitude: 13.4107368, name: 'Berlin' },
46
- { latitude: 19.1555762, longitude: 72.8849595, name: 'Mumbai' },
47
- { latitude: 35.6628744, longitude: 139.7345469, name: 'Minato' },
48
- { latitude: 51.5326602, longitude: -0.1262422, name: 'London' }
49
- ],
50
- shape: 'Image',
51
- imageUrl: '/source/maps/images/ballon.png',
52
- height: 20, width: 20, offset: { y: -10, x: 0 },
53
- tooltipSettings: { visible: true, valuePath: 'name' },
54
- animationDuration: 0
55
- },
56
- {
57
- visible: true,
58
- tooltipSettings: { visible: true },
59
- template: '<div id="marker1" class="markersTemplate" style="color:white;">Asia' + '</div>',
60
- dataSource: [{ latitude: 50.32087157990324, longitude: 90.015625 }],
61
- animationDuration: 0
62
- },
63
- {
64
- visible: true,
65
- template: '<div id="marker2" class="markersTemplate" style="color:white;">Australia' + '</div>',
66
- dataSource: [{ latitude: -25.88583769986199, longitude: 134.296875 }],
67
- animationDuration: 0
68
- },
69
- {
70
- visible: true,
71
- template: '<div id="marker3" class="markersTemplate" style="color:white;">Africa' + '</div>',
72
- dataSource: [{ latitude: 16.97274101999902, longitude: 16.390625 }],
73
- animationDuration: 0
74
- },
75
- {
76
- visible: true,
77
- template: '<div id="marker4" class="markersTemplate" style="color:white;">Europe' + '</div>',
78
- dataSource: [{ latitude: 49.95121990866204, longitude: 18.468749999999998 }],
79
- animationDuration: 0
80
- },
81
- {
82
- visible: true,
83
- template: '<div id="marker5" class="markersTemplate" style="width:50px;color:white;">North America' + '</div>',
84
- dataSource: [{ latitude: 59.88893689676585, longitude: -109.3359375 }],
85
- animationDuration: 0
86
- },
87
- {
88
- visible: true,
89
- template: '<div id="marker6" class="markersTemplate" style="width:50px;color:white;">South America' + '</div>',
90
- dataSource: [{ latitude: -6.64607562172573, longitude: -55.54687499999999 }],
91
- animationDuration: 0
92
- }]
93
- }];
94
- public load = (args: ILoadEventArgs) => {
95
- let theme: string = location.hash.split('/')[1];
96
- theme = theme ? theme : 'Material';
97
- args.maps.theme = <MapsTheme>(theme.charAt(0).toUpperCase() + theme.slice(1));
98
- }
99
- constructor() {
100
- //code
101
- };
1
+ /* eslint-disable */
2
+ import { Component, ViewEncapsulation } from '@angular/core';
3
+ import { MapsTheme, Maps, Legend, Marker, MapsTooltip, ILoadEventArgs } from '@syncfusion/ej2-angular-maps';
4
+ import { default_datasource } from './assets/default-datasource';
5
+ import { world_map } from './assets/world-map';
6
+
7
+ Maps.Inject(Legend, Marker, MapsTooltip);
8
+
9
+ /**
10
+ * Maps default sample
11
+ */
12
+ @Component({
13
+ selector: '<%=dasherize(selector)%>',
14
+ templateUrl: '<%=dasherize(name)%>.component.html',
15
+ styleUrls: ['<%=dasherize(name)%>.component.css'],
16
+ encapsulation: ViewEncapsulation.None
17
+ })
18
+ export class <%= classify(name) %>Component {
19
+ titleSettings: object = {
20
+ text: 'YouTube office locations',
21
+ textStyle: {
22
+ size: '16px'
23
+ }
24
+ };
25
+ public zoomSettings: object = {
26
+ enable: false
27
+ };
28
+ public legendSettings: object = { visible: true };
29
+
30
+ public layers: object[] = [{
31
+ shapeData: world_map,
32
+ shapePropertyPath: 'continent',
33
+ shapeDataPath: 'continent',
34
+ dataSource: default_datasource,
35
+ shapeSettings: { colorValuePath: 'color', },
36
+ markerSettings: [{
37
+ visible: true,
38
+ dataSource: [
39
+ { latitude: 37.6276571, longitude: -122.4276688, name: 'San Bruno' },
40
+ { latitude: 33.5302186, longitude: -117.7418381, name: 'Laguna Niguel' },
41
+ { latitude: 40.7424509, longitude: -74.0081468, name: 'New York' },
42
+ { latitude: -23.5268201, longitude: -46.6489927, name: 'Bom Retiro' },
43
+ { latitude: 43.6533855, longitude: -79.3729994, name: 'Toronto' },
44
+ { latitude: 48.8773406, longitude: 2.3299627, name: 'Paris' },
45
+ { latitude: 52.4643089, longitude: 13.4107368, name: 'Berlin' },
46
+ { latitude: 19.1555762, longitude: 72.8849595, name: 'Mumbai' },
47
+ { latitude: 35.6628744, longitude: 139.7345469, name: 'Minato' },
48
+ { latitude: 51.5326602, longitude: -0.1262422, name: 'London' }
49
+ ],
50
+ shape: 'Image',
51
+ imageUrl: '/source/maps/images/ballon.png',
52
+ height: 20, width: 20, offset: { y: -10, x: 0 },
53
+ tooltipSettings: { visible: true, valuePath: 'name' },
54
+ animationDuration: 0
55
+ },
56
+ {
57
+ visible: true,
58
+ tooltipSettings: { visible: true },
59
+ template: '<div id="marker1" class="markersTemplate" style="color:white;">Asia' + '</div>',
60
+ dataSource: [{ latitude: 50.32087157990324, longitude: 90.015625 }],
61
+ animationDuration: 0
62
+ },
63
+ {
64
+ visible: true,
65
+ template: '<div id="marker2" class="markersTemplate" style="color:white;">Australia' + '</div>',
66
+ dataSource: [{ latitude: -25.88583769986199, longitude: 134.296875 }],
67
+ animationDuration: 0
68
+ },
69
+ {
70
+ visible: true,
71
+ template: '<div id="marker3" class="markersTemplate" style="color:white;">Africa' + '</div>',
72
+ dataSource: [{ latitude: 16.97274101999902, longitude: 16.390625 }],
73
+ animationDuration: 0
74
+ },
75
+ {
76
+ visible: true,
77
+ template: '<div id="marker4" class="markersTemplate" style="color:white;">Europe' + '</div>',
78
+ dataSource: [{ latitude: 49.95121990866204, longitude: 18.468749999999998 }],
79
+ animationDuration: 0
80
+ },
81
+ {
82
+ visible: true,
83
+ template: '<div id="marker5" class="markersTemplate" style="width:50px;color:white;">North America' + '</div>',
84
+ dataSource: [{ latitude: 59.88893689676585, longitude: -109.3359375 }],
85
+ animationDuration: 0
86
+ },
87
+ {
88
+ visible: true,
89
+ template: '<div id="marker6" class="markersTemplate" style="width:50px;color:white;">South America' + '</div>',
90
+ dataSource: [{ latitude: -6.64607562172573, longitude: -55.54687499999999 }],
91
+ animationDuration: 0
92
+ }]
93
+ }];
94
+ public load = (args: ILoadEventArgs) => {
95
+ let theme: string = location.hash.split('/')[1];
96
+ theme = theme ? theme : 'Material';
97
+ args.maps.theme = <MapsTheme>(theme.charAt(0).toUpperCase() + theme.slice(1));
98
+ }
99
+ constructor() {
100
+ //code
101
+ };
102
102
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "maps-legend",
3
+ "$id": "EJ2SchemaTemplateID",
4
4
  "title": "maps-legend",
5
5
  "type": "object",
6
6
  "properties": {
@@ -120,5 +120,6 @@
120
120
  },
121
121
  "required": [
122
122
  "name"
123
- ]
123
+ ],
124
+ "id": "maps-legend"
124
125
  }
@@ -1,3 +1,3 @@
1
- .control-section {
2
- min-height: 450px;
3
- }
1
+ .control-section {
2
+ min-height: 450px;
3
+ }
@@ -1,10 +1,10 @@
1
- <div class="control-section">
2
- <div align='center'>
3
- <ejs-maps id='container' style="display:block;" [zoomSettings]='zoomSettings' [layers]='layers'
4
- [titleSettings] = "titleSettings"
5
- (load)="load($event)">
6
- </ejs-maps>
7
- </div>
8
- </div>
9
-
10
-
1
+ <div class="control-section">
2
+ <div align='center'>
3
+ <ejs-maps id='container' style="display:block;" [zoomSettings]='zoomSettings' [layers]='layers'
4
+ [titleSettings] = "titleSettings"
5
+ (load)="load($event)">
6
+ </ejs-maps>
7
+ </div>
8
+ </div>
9
+
10
+
@@ -1,101 +1,101 @@
1
- /* eslint-disable */
2
- import { Component, ViewEncapsulation } from '@angular/core';
3
- import { MapsTheme, Maps, Legend, Marker, MapsTooltip, ILoadEventArgs } from '@syncfusion/ej2-angular-maps';
4
- import { default_datasource } from './assets/default-datasource';
5
- import { world_map } from './assets/world-map';
6
-
7
- Maps.Inject(Legend, Marker, MapsTooltip);
8
-
9
- /**
10
- * Maps default sample
11
- */
12
- @Component({
13
- selector: '<%=dasherize(selector)%>',
14
- templateUrl: '<%=dasherize(name)%>.component.html',
15
- styleUrls: ['<%=dasherize(name)%>.component.css'],
16
- encapsulation: ViewEncapsulation.None
17
- })
18
- export class <%= classify(name) %>Component {
19
- titleSettings: object = {
20
- text: 'YouTube office locations',
21
- textStyle: {
22
- size: '16px'
23
- }
24
- };
25
- public zoomSettings: object = {
26
- enable: false
27
- };
28
-
29
- public layers: object[] = [{
30
- shapeData: world_map,
31
- shapePropertyPath: 'continent',
32
- shapeDataPath: 'continent',
33
- dataSource: default_datasource,
34
- shapeSettings: { colorValuePath: 'color', },
35
- markerSettings: [{
36
- visible: true,
37
- dataSource: [
38
- { latitude: 37.6276571, longitude: -122.4276688, name: 'San Bruno' },
39
- { latitude: 33.5302186, longitude: -117.7418381, name: 'Laguna Niguel' },
40
- { latitude: 40.7424509, longitude: -74.0081468, name: 'New York' },
41
- { latitude: -23.5268201, longitude: -46.6489927, name: 'Bom Retiro' },
42
- { latitude: 43.6533855, longitude: -79.3729994, name: 'Toronto' },
43
- { latitude: 48.8773406, longitude: 2.3299627, name: 'Paris' },
44
- { latitude: 52.4643089, longitude: 13.4107368, name: 'Berlin' },
45
- { latitude: 19.1555762, longitude: 72.8849595, name: 'Mumbai' },
46
- { latitude: 35.6628744, longitude: 139.7345469, name: 'Minato' },
47
- { latitude: 51.5326602, longitude: -0.1262422, name: 'London' }
48
- ],
49
- shape: 'Image',
50
- imageUrl: './assets/images/ballon.png',
51
- height: 20, width: 20, offset: { y: -10, x: 0 },
52
- tooltipSettings: { visible: true, valuePath: 'name' },
53
- animationDuration: 0
54
- },
55
- {
56
- visible: true,
57
- tooltipSettings: { visible: true },
58
- template: '<div id="marker1" class="markersTemplate" style="color:white;">Asia' + '</div>',
59
- dataSource: [{ latitude: 50.32087157990324, longitude: 90.015625 }],
60
- animationDuration: 0
61
- },
62
- {
63
- visible: true,
64
- template: '<div id="marker2" class="markersTemplate" style="color:white;">Australia' + '</div>',
65
- dataSource: [{ latitude: -25.88583769986199, longitude: 134.296875 }],
66
- animationDuration: 0
67
- },
68
- {
69
- visible: true,
70
- template: '<div id="marker3" class="markersTemplate" style="color:white;">Africa' + '</div>',
71
- dataSource: [{ latitude: 16.97274101999902, longitude: 16.390625 }],
72
- animationDuration: 0
73
- },
74
- {
75
- visible: true,
76
- template: '<div id="marker4" class="markersTemplate" style="color:white;">Europe' + '</div>',
77
- dataSource: [{ latitude: 49.95121990866204, longitude: 18.468749999999998 }],
78
- animationDuration: 0
79
- },
80
- {
81
- visible: true,
82
- template: '<div id="marker5" class="markersTemplate" style="width:50px;color:white;">North America' + '</div>',
83
- dataSource: [{ latitude: 59.88893689676585, longitude: -109.3359375 }],
84
- animationDuration: 0
85
- },
86
- {
87
- visible: true,
88
- template: '<div id="marker6" class="markersTemplate" style="width:50px;color:white;">South America' + '</div>',
89
- dataSource: [{ latitude: -6.64607562172573, longitude: -55.54687499999999 }],
90
- animationDuration: 0
91
- }]
92
- }];
93
- public load = (args: ILoadEventArgs) => {
94
- let theme: string = location.hash.split('/')[1];
95
- theme = theme ? theme : 'Material';
96
- args.maps.theme = <MapsTheme>(theme.charAt(0).toUpperCase() + theme.slice(1));
97
- }
98
- constructor() {
99
- //code
100
- };
1
+ /* eslint-disable */
2
+ import { Component, ViewEncapsulation } from '@angular/core';
3
+ import { MapsTheme, Maps, Legend, Marker, MapsTooltip, ILoadEventArgs } from '@syncfusion/ej2-angular-maps';
4
+ import { default_datasource } from './assets/default-datasource';
5
+ import { world_map } from './assets/world-map';
6
+
7
+ Maps.Inject(Legend, Marker, MapsTooltip);
8
+
9
+ /**
10
+ * Maps default sample
11
+ */
12
+ @Component({
13
+ selector: '<%=dasherize(selector)%>',
14
+ templateUrl: '<%=dasherize(name)%>.component.html',
15
+ styleUrls: ['<%=dasherize(name)%>.component.css'],
16
+ encapsulation: ViewEncapsulation.None
17
+ })
18
+ export class <%= classify(name) %>Component {
19
+ titleSettings: object = {
20
+ text: 'YouTube office locations',
21
+ textStyle: {
22
+ size: '16px'
23
+ }
24
+ };
25
+ public zoomSettings: object = {
26
+ enable: false
27
+ };
28
+
29
+ public layers: object[] = [{
30
+ shapeData: world_map,
31
+ shapePropertyPath: 'continent',
32
+ shapeDataPath: 'continent',
33
+ dataSource: default_datasource,
34
+ shapeSettings: { colorValuePath: 'color', },
35
+ markerSettings: [{
36
+ visible: true,
37
+ dataSource: [
38
+ { latitude: 37.6276571, longitude: -122.4276688, name: 'San Bruno' },
39
+ { latitude: 33.5302186, longitude: -117.7418381, name: 'Laguna Niguel' },
40
+ { latitude: 40.7424509, longitude: -74.0081468, name: 'New York' },
41
+ { latitude: -23.5268201, longitude: -46.6489927, name: 'Bom Retiro' },
42
+ { latitude: 43.6533855, longitude: -79.3729994, name: 'Toronto' },
43
+ { latitude: 48.8773406, longitude: 2.3299627, name: 'Paris' },
44
+ { latitude: 52.4643089, longitude: 13.4107368, name: 'Berlin' },
45
+ { latitude: 19.1555762, longitude: 72.8849595, name: 'Mumbai' },
46
+ { latitude: 35.6628744, longitude: 139.7345469, name: 'Minato' },
47
+ { latitude: 51.5326602, longitude: -0.1262422, name: 'London' }
48
+ ],
49
+ shape: 'Image',
50
+ imageUrl: './assets/images/ballon.png',
51
+ height: 20, width: 20, offset: { y: -10, x: 0 },
52
+ tooltipSettings: { visible: true, valuePath: 'name' },
53
+ animationDuration: 0
54
+ },
55
+ {
56
+ visible: true,
57
+ tooltipSettings: { visible: true },
58
+ template: '<div id="marker1" class="markersTemplate" style="color:white;">Asia' + '</div>',
59
+ dataSource: [{ latitude: 50.32087157990324, longitude: 90.015625 }],
60
+ animationDuration: 0
61
+ },
62
+ {
63
+ visible: true,
64
+ template: '<div id="marker2" class="markersTemplate" style="color:white;">Australia' + '</div>',
65
+ dataSource: [{ latitude: -25.88583769986199, longitude: 134.296875 }],
66
+ animationDuration: 0
67
+ },
68
+ {
69
+ visible: true,
70
+ template: '<div id="marker3" class="markersTemplate" style="color:white;">Africa' + '</div>',
71
+ dataSource: [{ latitude: 16.97274101999902, longitude: 16.390625 }],
72
+ animationDuration: 0
73
+ },
74
+ {
75
+ visible: true,
76
+ template: '<div id="marker4" class="markersTemplate" style="color:white;">Europe' + '</div>',
77
+ dataSource: [{ latitude: 49.95121990866204, longitude: 18.468749999999998 }],
78
+ animationDuration: 0
79
+ },
80
+ {
81
+ visible: true,
82
+ template: '<div id="marker5" class="markersTemplate" style="width:50px;color:white;">North America' + '</div>',
83
+ dataSource: [{ latitude: 59.88893689676585, longitude: -109.3359375 }],
84
+ animationDuration: 0
85
+ },
86
+ {
87
+ visible: true,
88
+ template: '<div id="marker6" class="markersTemplate" style="width:50px;color:white;">South America' + '</div>',
89
+ dataSource: [{ latitude: -6.64607562172573, longitude: -55.54687499999999 }],
90
+ animationDuration: 0
91
+ }]
92
+ }];
93
+ public load = (args: ILoadEventArgs) => {
94
+ let theme: string = location.hash.split('/')[1];
95
+ theme = theme ? theme : 'Material';
96
+ args.maps.theme = <MapsTheme>(theme.charAt(0).toUpperCase() + theme.slice(1));
97
+ }
98
+ constructor() {
99
+ //code
100
+ };
101
101
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "maps-marker",
3
+ "$id": "EJ2SchemaTemplateID",
4
4
  "title": "maps-marker",
5
5
  "type": "object",
6
6
  "properties": {
@@ -120,5 +120,6 @@
120
120
  },
121
121
  "required": [
122
122
  "name"
123
- ]
123
+ ],
124
+ "id": "maps-marker"
124
125
  }
@@ -1,19 +1,19 @@
1
- #container_layerIndex_0_line_Group {
2
- stroke-dasharray: 10px 10px;
3
- stroke-linejoin: round;
4
- stroke-linecap: round;
5
- -webkit-animation: dash 15s linear infinite;
6
- animation: dash 15s linear infinite;
7
- }
8
-
9
- @-webkit-keyframes dash {
10
- 100% {
11
- stroke-dashoffset: -20px;
12
- }
13
- }
14
-
15
- @keyframes dash {
16
- 100% {
17
- stroke-dashoffset: -20px;
18
- }
1
+ #container_layerIndex_0_line_Group {
2
+ stroke-dasharray: 10px 10px;
3
+ stroke-linejoin: round;
4
+ stroke-linecap: round;
5
+ -webkit-animation: dash 15s linear infinite;
6
+ animation: dash 15s linear infinite;
7
+ }
8
+
9
+ @-webkit-keyframes dash {
10
+ 100% {
11
+ stroke-dashoffset: -20px;
12
+ }
13
+ }
14
+
15
+ @keyframes dash {
16
+ 100% {
17
+ stroke-dashoffset: -20px;
18
+ }
19
19
  }
@@ -1,6 +1,6 @@
1
- <div class="control-section">
2
- <div align='center'>
3
- <ejs-maps id='container' style="display:block;" [layers]='layers' [centerPosition]="centerPosition" [mapsArea]="mapsArea"
4
- [zoomSettings]="zoomSettings" [titleSettings]="titleSettings" [navigationLineSettings] = 'navigationLineSettings' (load)="load($event)">
5
- </ejs-maps>
1
+ <div class="control-section">
2
+ <div align='center'>
3
+ <ejs-maps id='container' style="display:block;" [layers]='layers' [centerPosition]="centerPosition" [mapsArea]="mapsArea"
4
+ [zoomSettings]="zoomSettings" [titleSettings]="titleSettings" [navigationLineSettings] = 'navigationLineSettings' (load)="load($event)">
5
+ </ejs-maps>
6
6
  </div>