Repository navigation
Expand file tree
/
Copy pathearthquake.js
More file actions
64 lines (64 loc) · 1.98 KB
/
Copy pathearthquake.js
File metadata and controls
64 lines (64 loc) · 1.98 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
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* Earthquake sample
*/
this.default = function () {
var maps = new ej.maps.Maps({
// custom code start
load: function (args) {
var earththeme = location.hash.split('/')[1];
earththeme = earththeme ? earththeme : 'Material';
args.maps.theme = (earththeme.charAt(0).toUpperCase() + earththeme.slice(1));
},
// custom code end
centerPosition: {
latitude: 1.5053645409602877,
longitude: 105.14038085937499
},
zoomSettings: {
enable: false,
zoomFactor: 7,
mouseWheelZoom: false,
toolbars: []
},
mapsArea: {
background: '#AEE2FA'
},
titleSettings: {
text: '7.6 Magnitude earthquake strikes Sumatra - 2009',
textStyle: {
size: '18px'
}
},
layers: [
{
animationDuration: 1000,
shapeDataPath: 'name',
shapePropertyPath: 'name',
shapeData: new ej.maps.MapAjax('./src/maps/map-data/asia.json'),
markerSettings: [{
visible: true,
height: 100,
width: 100,
template: '#template',
animationDuration: 0,
dataSource: [{
latitude: 1.625758360412755, longitude: 98.5693359375
}]
}],
shapeSettings: {
fill: '#FFFDCF',
border: {
color: '#3497C3 ',
width: 0.5
}
},
dataLabelSettings: {
visible: true,
labelPath: 'name',
smartLabelMode: 'Hide'
}
}
]
});
maps.appendTo('#maps');
};