Skip to content

Commit

Permalink
more credits info
Browse files Browse the repository at this point in the history
  • Loading branch information
ccosse committed Jun 28, 2017
1 parent a56b9cc commit ef9ac7c
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 23 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ColorMyWorld
Geography Scavenger Hunt [Online](http://dev.asymptopia.org/static/colormyworld)
Geography Scavenger Hunt [Play Online](http://dev.asymptopia.org/static/colormyworld)

Introducing Color Profiles. Previously, the Tour mode applied random colors.
Random colors [were ugly](img/ugly_random_colors.png)! Now only colors from
Expand All @@ -16,15 +16,15 @@ represent any data.

<br>
<hr>
This was done in Coloring mode, where the user sets each individual color
before clicking on map countries to apply the color. Coloring mode did not
change.
In Coloring mode the user sets each individual color before clicking on map
countries to apply the color.
<img src='img/colormyworld-v0.3.png'/>


## Author:
<a href="http://github.com/ccosse/">Charles Cossé</a>
with help from many people, including Phillip Gajadhar,
[Charles Cossé](http://github.com/ccosse/) | [Asymptopia Software](http://www.asymptopia.org)

Along the way help came from many people, including Phillip Gajadhar,
everyone at [GIMU Guyana](http://data.gim.gov.gy),
the GIS division at [GGMC Guyana](http://www.ggmc.gov.gy/),
[Lionel Laské](https://github.com/llaske), and others.
Expand All @@ -33,14 +33,17 @@ the GIS division at [GGMC Guyana](http://www.ggmc.gov.gy/),
Originally developed for GIS Day 2015, Georgetown Guyana, while I was serving as
a GIS Web Applications Developer with [Peace Corps Response](https://www.peacecorps.gov/volunteer/is-peace-corps-right-for-me/peace-corps-response/).
Subsequent improvements were made during an 8 week course taught at [GGMC, Guyana](http://www.ggmc.gov.gy/).
Another round of improvements came in late 2016 while living in Stimulating Portland, Oregon, and integrating it with the [NetDispenser](https://netdispenser.github.io/).
In 2017 I ported it to Sugarizer with help from Lionel Laské as part of the [same experiment](https://netdispenser.github.io/).
In June 2017 I developed this prototype color-sequence tool, in-part to address the ugly random colorization during Tour mode.
Another round of improvements came in late 2016 while living in stimulating [Portland OR](https://www.meetup.com/cities/us/or/portland/tech/), and integrating it with the [NetDispenser](https://netdispenser.github.io/).
In 2017 I ported it to [Sugarizer](http://sugarizer.org/) with help from Lionel Laské as part of the [same experiment](https://netdispenser.github.io/).
[ColorMyWorld](https://github.com/ccosse/colormyworld) was a featured activity in our demo at [PyCon2017](https://flic.kr/y/2GSVF7K).
In June 2017 I developed [this prototype color-sequence tool](https://github.com/ccosse/colorcfg), in-part to address the ugly random colorization during Tour mode.

## More Credits
The backbone and heart of this application is the [Open Layers](http://openlayers.org/) library.
The new color-sequence tool uses [D3.js](http://d3js.org). D3js can draw maps, too ... [fancy maps](https://www.jasondavies.com/maps/)!
So I'm looking at phasing-out Open Layers and using D3 exclusively.
So I'm looking at phasing-out Open Layers, JQuery and Bootstrap and using D3 exclusively, forever.
Even though it's not specifically used in ColorMyWorld, [Python](http://python.org) and [Django](https://www.djangoproject.com/) have
been important parts of my GIS experience. I also learned a lot working on [GeoNode](http://geonode.org/).

### Icons credits:
* Earth by Peter van Driel from the Noun Project
Expand Down
15 changes: 15 additions & 0 deletions lib/colorcfg.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**********************************************************
Author :Charles B. Cossé
Organization :Asymptopia Software | Software@theLimit
Website :www.asymptopia.org
Email :[email protected]
Copyright :(C) 2017 Asymptopia Software
License :Apache 2.0
***********************************************************/
define(["d3.v4.min"],
function(d3){
me={}
Expand Down
14 changes: 14 additions & 0 deletions lib/colormyworld.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
/**********************************************************
Author :Charles B. Cossé
Organization :Asymptopia Software | Software@theLimit
Website :www.asymptopia.org
Email :[email protected]
Copyright :(C) 2017 Asymptopia Software
License :Apache 2.0
***********************************************************/
define(["activity/ol","util","print","l10n/l10n","colorcfg"],function(ol,util,print,l10n,colorcfg){
var me={};
me.popup=document.createElement("div");
Expand Down
15 changes: 15 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**********************************************************
Organization :Asymptopia Software | Software@theLimit
Website :www.asymptopia.org
Author :Charles B. Cosse
Email :[email protected]
Copyright :(C) 2017 Asymptopia Software
License :Apache 2.0
***********************************************************/
var LANGUAGE_NAMES={
"keys":["en","fr","es","de","it","gr","cn","sw","th"],
"en":"English",
Expand Down
15 changes: 15 additions & 0 deletions lib/map.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**********************************************************
Author :Charles B. Cossé
Organization :Asymptopia Software | Software@theLimit
Website :www.asymptopia.org
Email :[email protected]
Copyright :(C) 2017 Asymptopia Software
License :Apache 2.0
***********************************************************/
define(["activity/ol","print","util","colormyworld","humane"],
function(ol,print,util,colormyworld,humane){
var me={};
Expand Down
39 changes: 26 additions & 13 deletions lib/roll_up_div.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
/**********************************************************
Author :Charles B. Cossé
Organization :Asymptopia Software | Software@theLimit
Website :www.asymptopia.org
Email :[email protected]
Copyright :(C) 2017 Asymptopia Software
License :Apache 2.0
***********************************************************/
var RollUpDiv=function(opts){
var me={};

var CB=opts['checkboxCB'];
var callCB=function(e){
try{
Expand All @@ -14,29 +29,29 @@ var RollUpDiv=function(opts){
}
}


var solid_id=opts['category'];//handles up to 10 spaces!
for(var dummy=0;dummy<10;dummy++)
solid_id=solid_id.replace(" ","ZZZ");//can't be _ b/c splitting on _ already

me.head=document.createElement("div");
me.head.className='roll_up_div';
me.head.id=solid_id;

var t=document.createElement("table");
t.style.width="100%";
var tr=t.insertRow(-1);
var td;
td=tr.insertCell(-1);
td.className="roll_up_icon_cell";//unused dummy for symmetry

td=tr.insertCell(-1);
td.align="center";
me.label=document.createElement("div");
me.label.className="roll_up_label";
me.label.innerHTML=opts['roll_up_name'];
td.appendChild(me.label);
/*
/*
if(opts['checkboxCB']){//BASE_LAYERS are laid out differently
td=tr.insertCell(-1);
td.className="roll_up_icon_cell";
Expand All @@ -48,7 +63,7 @@ var RollUpDiv=function(opts){
td.appendChild(roll_up_icon);
}
else{if(DEBUG)console.log("no checkboxCB");}
*/
*/
td=tr.insertCell(-1);
td.className="roll_up_icon_cell";
var roll_up_icon=new Image();
Expand All @@ -58,26 +73,24 @@ var RollUpDiv=function(opts){
roll_up_icon.src=opts["roll_up_icon_src"];
td.appendChild(roll_up_icon);
}

me.head.appendChild(t);
$("#"+opts['parent_id']).append(me.head);

me.rollup=document.createElement("div");
me.rollup.id=me.head.id+"_rollup";
//me.rollup.className=opts['roll_up_class'];
//$("#"+opts['parent_id']).append(me.rollup);
me.head.appendChild(me.rollup);

$("#"+roll_up_icon.id).click(function(e){
$(e.target).toggleClass("up");
$("#"+e.target.id.split("_")[0]+"_rollup").animate({height:'toggle'},300,function(){});
});

me.set_name=function(val){
me.label.innerHTML=val;
}

return me;
}


15 changes: 15 additions & 0 deletions lib/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**********************************************************
Author :Charles B. Cossé
Organization :Asymptopia Software | Software@theLimit
Website :www.asymptopia.org
Email :[email protected]
Copyright :(C) 2017 Asymptopia Software
License :Apache 2.0
***********************************************************/
define(["activity/ol","print"],function (ol,print) {
return {

Expand Down

0 comments on commit ef9ac7c

Please sign in to comment.