temporary fix for video skipping bug (#716); add third parameter (index) to forEach callback; add Geo colors
This commit is contained in:
parent
8c67bf9462
commit
17aca54e7a
5 changed files with 57 additions and 50 deletions
|
|
@ -1,31 +1,5 @@
|
|||
Ox.load({UI: {}, Geo: {}}, function() {
|
||||
|
||||
var markerColor = {
|
||||
'Northern America': [64, 64, 255],
|
||||
'Central America': [0, 0, 255],
|
||||
'Caribbean': [0, 0, 128],
|
||||
'Southern America': [0, 255, 0],
|
||||
'Northern Europe': [255, 255, 192],
|
||||
'Western Europe': [255, 255, 0],
|
||||
'Eastern Europe': [255, 128, 0],
|
||||
'Southern Europe': [128, 128, 0],
|
||||
'Northern Africa': [128, 128, 128],
|
||||
'Western Africa': [64, 64, 128],
|
||||
'Middle Africa': [64, 64, 64],
|
||||
'Eastern Africa': [128, 64, 64],
|
||||
'Southern Africa': [64, 128, 64],
|
||||
'Western Asia': [255, 128, 128],
|
||||
'Central Asia': [255, 0, 0],
|
||||
'Eastern Asia': [128, 0, 0],
|
||||
'Southern Asia': [255, 0, 255],
|
||||
'South-Eastern Asia': [128, 0, 128],
|
||||
'Australia and New Zealand': [0, 128, 128],
|
||||
'Micronesia': [192, 255, 255],
|
||||
'Melanesia': [0, 255, 255],
|
||||
'Polynesia': [128, 128, 255],
|
||||
'Antarctica': [192, 192, 192]
|
||||
},
|
||||
|
||||
$listmap = new Ox.ListMap({
|
||||
height: window.innerHeight,
|
||||
places: Ox.COUNTRIES.map(function(place) {
|
||||
|
|
@ -37,7 +11,7 @@ Ox.load({UI: {}, Geo: {}}, function() {
|
|||
flag: place.code,
|
||||
geoname: place.name,
|
||||
id: place.code,
|
||||
markerColor: markerColor[place.region] || [128,128,128],
|
||||
markerColor: Ox.getGeoColor(place.region),
|
||||
name: place.name,
|
||||
type: 'country',
|
||||
lat: place.lat,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue