summaryrefslogtreecommitdiff
path: root/plugins/Mapstraction/OpenLayers/README
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-08 13:52:35 -0800
committerBrion Vibber <brion@pobox.com>2010-12-08 14:28:55 -0800
commit34569017ce983248f19426a9b0bfb08b71901b2e (patch)
tree4ffc10c999076f6dfe63bd203a08c18de3e651bd /plugins/Mapstraction/OpenLayers/README
parent001512df966c8c3b8f045f645e804b0a6fef8625 (diff)
Add stripped and minified local copy of OpenLayers 2.10, about 1/5 the size of the full version.
Included Makefile will recreate the OpenLayers.js using the statusnet.cfg strip configuration file and yui-compressor to do some extra minification at the end. Requires fetching the OpenLayers source download and dropping it in: http://openlayers.org/download/OpenLayers-2.10.tar.gz
Diffstat (limited to 'plugins/Mapstraction/OpenLayers/README')
-rw-r--r--plugins/Mapstraction/OpenLayers/README14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Mapstraction/OpenLayers/README b/plugins/Mapstraction/OpenLayers/README
new file mode 100644
index 000000000..748d55e15
--- /dev/null
+++ b/plugins/Mapstraction/OpenLayers/README
@@ -0,0 +1,14 @@
+The default OpenLayers.js file, minified, weighs in at a whopping 943kb uncompressed.
+With gzip compression it's still over 200kb, so we're building a stripped-down copy
+with just what we need.
+
+Docs on how the stripping process works:
+http://docs.openlayers.org/library/deploying.html
+
+To recreate this OpenLayers.js file:
+
+ # get yui-compressor (install from apt, or set up a shell script or alias to the jar)
+ # download and decompress OpenLayers-2.10 zip or tgz
+ make clean && make
+
+If necessary, change the relative path to the OpenLayers source directory in the Makefile.