forked from 0x2620/oxjs
various documentation-related changes
This commit is contained in:
parent
b6fdf0c28b
commit
a6ed310087
13 changed files with 880 additions and 301 deletions
|
|
@ -5,7 +5,7 @@ Ox.load('UI', {
|
|||
theme: 'modern'
|
||||
}, function() {
|
||||
|
||||
Ox.loadJSON('json/cities100000.json', function(data) {
|
||||
Ox.getJSON('json/cities100000.json', function(data) {
|
||||
|
||||
var listmap = new Ox.ListMap({
|
||||
height: window.innerHeight,
|
||||
|
|
@ -22,7 +22,7 @@ Ox.load('UI', {
|
|||
size = Math.sqrt(city.population * 100),
|
||||
latSize = size / Ox.EARTH_CIRCUMFERENCE * 360,
|
||||
lngSize = size * Ox.getDegreesPerMeter(city.latitude);
|
||||
return Ox.extend({
|
||||
return {
|
||||
countryCode: city.country_code == 'XK' ? 'RS-KO' : city.country_code,
|
||||
editable: true,
|
||||
flag: city.country_code,
|
||||
|
|
@ -38,7 +38,7 @@ Ox.load('UI', {
|
|||
west: city.longitude - lngSize / 2,
|
||||
north: city.latitude + latSize / 2,
|
||||
east: city.longitude + lngSize / 2
|
||||
});
|
||||
};
|
||||
}),
|
||||
width: window.innerWidth
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue