diff --git a/README.md b/README.md new file mode 100644 index 0000000..10b1dce --- /dev/null +++ b/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 \ No newline at end of file diff --git a/build.sh b/build.sh index f0da0e4..d01faaf 100755 --- a/build.sh +++ b/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 diff --git a/build/app_ipad.js b/build/app_mobile.js similarity index 100% rename from build/app_ipad.js rename to build/app_mobile.js diff --git a/index.html b/index.html index 4ef666b..ea97299 100644 --- a/index.html +++ b/index.html @@ -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'); diff --git a/src/app_ipad.js b/src/app_mobile.js similarity index 100% rename from src/app_ipad.js rename to src/app_mobile.js