minor changes
This commit is contained in:
parent
45e13b0aba
commit
6fcfc2f2d6
2 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
This example demonstrates various form elements.
|
This example demonstrates various form elements provided by Ox.UI.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -12,13 +12,15 @@ Ox.load({UI: {showScreen: true}, Geo: {}}, function() {
|
||||||
Ox.getJSON('json/cities.json', function(cities) {
|
Ox.getJSON('json/cities.json', function(cities) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The JSON data originally comes from geonames.org. It's an array of
|
The JSON data originally comes from
|
||||||
10,000 city objects, each of which has the following properties:
|
<a href="http://download.geonames.org/export/dump/cities1000.zip">geonames.org</a>.
|
||||||
|
It's an array of 10,000 city objects, each of which has the following
|
||||||
|
properties:
|
||||||
<pre>
|
<pre>
|
||||||
{
|
{
|
||||||
"country_code": "CN",
|
"country_code": "CN",
|
||||||
"elevation": 0,
|
"elevation": 0,
|
||||||
"feature_code": "PPLA",
|
"feature_code": "PPLA",
|
||||||
"latitude": 31.22222,
|
"latitude": 31.22222,
|
||||||
"longitude": 121.45806,
|
"longitude": 121.45806,
|
||||||
"name": "Shanghai",
|
"name": "Shanghai",
|
||||||
|
|
Loading…
Reference in a new issue