Repository navigation
Expand file tree
/
Copy pathmarker.js
More file actions
51 lines (51 loc) · 1.6 KB
/
Copy pathmarker.js
File metadata and controls
51 lines (51 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Marker sample
*/
this.default = function () {
var maps = new ej.maps.Maps({
// custom code start
load: function (args) {
var markertheme = location.hash.split('/')[1];
markertheme = markertheme ? markertheme : 'Material';
args.maps.theme = (markertheme.charAt(0).toUpperCase() + markertheme.slice(1));
},
// custom code end
useGroupingSeparator: true,
format: 'n',
zoomSettings: {
enable: false
},
titleSettings: {
text: 'Top 25 populated cities in the world',
textStyle: {
size: '16px'
}
},
layers: [
{
shapeData: new ej.maps.MapAjax('./src/maps/map-data/world-map.json'),
dataSource: window.topPopulation,
shapeSettings: {
fill: '#C3E6ED'
},
markerSettings: [
{
dataSource: window.topPopulation,
visible: true,
animationDuration: 0,
shape: 'Circle',
fill: 'white',
width: 3,
border: { width: 2, color: '#285255' },
tooltipSettings: {
template: '#template',
visible: true,
valuePath: 'population',
}
},
]
}
]
});
maps.appendTo('#container');
};