forked from 0x2620/oxjs
improved geodata and tools
This commit is contained in:
parent
4d9a8537ef
commit
912f2121a4
47 changed files with 682294 additions and 3535 deletions
|
|
@ -1,7 +1,6 @@
|
|||
Ox.load('UI', {debug: true}, function() {
|
||||
Ox.load('Geo', function() {
|
||||
|
||||
$.getJSON('json/countries.json', function(data) {
|
||||
Ox.load('Geo', function() {
|
||||
|
||||
var width = window.innerWidth - 256,
|
||||
height = window.innerHeight,
|
||||
|
|
@ -9,7 +8,7 @@ Ox.load('Geo', function() {
|
|||
clickable: true,
|
||||
editable: true,
|
||||
height: height,
|
||||
places: data.map(function(place) {
|
||||
places: Ox.COUNTRIES.map(function(place) {
|
||||
return Ox.extend({
|
||||
countryCode: place.code,
|
||||
editable: true,
|
||||
|
|
@ -55,6 +54,7 @@ Ox.load('Geo', function() {
|
|||
}
|
||||
],
|
||||
*/
|
||||
showLabels: true,
|
||||
statusbar: true,
|
||||
toolbar: true,
|
||||
width: width,
|
||||
|
|
@ -127,5 +127,4 @@ Ox.load('Geo', function() {
|
|||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue