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
|
|
@ -20,10 +20,11 @@ Ox.load('Geo', function() {
|
|||
city.population > 200000 ? {size: 12, color: [255, 192, 0]} :
|
||||
city.population > 100000 ? {size: 10, color: [255, 224, 0]} :
|
||||
{size: 8, color: [255, 255, 0]},
|
||||
size = Math.sqrt(city.population * 100),
|
||||
latSize = size / Ox.EARTH_CIRCUMFERENCE * 360,
|
||||
lngSize = size * Ox.getDegreesPerMeter(city.latitude);
|
||||
return city.population > 400000 ? {
|
||||
area = Math.sqrt(city.population * 100),
|
||||
latSize = area / Ox.EARTH_CIRCUMFERENCE * 360,
|
||||
lngSize = area * Ox.getDegreesPerMeter(city.latitude);
|
||||
return city.population > 600000/*400000*/ ? {
|
||||
area: city.population * 100,
|
||||
countryCode: countryCode,
|
||||
editable: true,
|
||||
flag: countryCode,
|
||||
|
|
@ -32,7 +33,6 @@ Ox.load('Geo', function() {
|
|||
markerColor: marker.color,
|
||||
markerSize: marker.size,
|
||||
name: city.name,
|
||||
size: city.population * 100,
|
||||
type: 'city',
|
||||
lat: city.latitude,
|
||||
lng: city.longitude,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue