Skip to content

Commit

Permalink
refactored mobile support
Browse files Browse the repository at this point in the history
  • Loading branch information
tokumine committed Jan 27, 2012
1 parent 6546d3b commit 668d991
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions README.md
@@ -0,0 +1,20 @@
Visualisation of home forclosure
==
A demo app showing how to use CartoDB and HTML5 canvas to make an interactive choropleth map.

Demo: http://vizzuality.github.com/wsj-viz/

Compatibility
==
All HTML5 browsers with Canvas support

Mobile compatibility
==
iPad
iPhone
iPod
Android (basic untested support)

Developers
==
Javascript is inside the /src directory. To rebuild the optimised JS used by the app, run ./build.sh
2 changes: 1 addition & 1 deletion build.sh
@@ -1,3 +1,3 @@
java -jar lib/compiler.jar --js=src/cartoshader.js --js=src/gmaps_mercator.js --js=src/canvas_tile_layer.js --js=src/cartodb_vector.js --js=src/GeoJSON.js --js=src/cartoinfowin.js --js=src/wax.g.js --compilation_level=WHITESPACE_ONLY --js_output_file=build/app_base.js
java -jar lib/compiler.jar --js=src/app_ipad.js --js_output_file=build/app_ipad.js
java -jar lib/compiler.jar --js=src/app_mobile.js --js_output_file=build/app_mobile.js
java -jar lib/compiler.jar --js=src/app.js --js_output_file=build/app.js
File renamed without changes.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -13,7 +13,7 @@
if (isiPad) {
var script = document.createElement('script');
script.type = "text/javascript";
script.src = "build/app_ipad.js";
script.src = "build/app_mobile.js";
document.getElementsByTagName('head')[0].appendChild(script);
} else {
var script = document.createElement('script');
Expand Down
File renamed without changes.

0 comments on commit 668d991

Please sign in to comment.