readme.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. OpenLayers
  2. -=-=-=-=-=-
  3. Copyright (c) 2005-2011 OpenLayers Contributors. See authors.txt for
  4. more details.
  5. OpenLayers is a JavaScript library for building map applications
  6. on the web. OpenLayers is made available under a BSD-license.
  7. Please see license.txt in this distribution for more details.
  8. ------------------
  9. Getting OpenLayers
  10. ------------------
  11. OpenLayers lives at http://www.openlayers.org/.
  12. You can get OpenLayers from
  13. http://trac.openlayers.org/wiki/HowToDownload.
  14. ---------------------
  15. Installing OpenLayers
  16. ---------------------
  17. You can use OpenLayers as-is by copying build/OpenLayers.js and the
  18. entire theme/ and img/ directories up to your webserver, putting them
  19. in the same directory. The files can be in subdirectories on your website,
  20. or right in the root of the site, as in these examples.
  21. To include the OpenLayers library in your web page from the root of the site, use:
  22. <script type="text/javascript" src="/OpenLayers.js" />
  23. As an example, using bash (with the release files in ~/openlayers ):
  24. $ cd /var/www/html
  25. $ cp ~/openlayers/OpenLayers.js ./
  26. $ cp -R ~/openlayers/theme ./
  27. $ cp -R ~/openlayers/img ./
  28. If you want to use the multiple-file version of OpenLayers (for, say,
  29. debugging or development purposes), copy the lib/ directory up to your
  30. webserver in the same directory you put the img/ folder. Then add
  31. the following to your web page instead:
  32. <script type="text/javascript" src="/lib/OpenLayers.js" />
  33. As an example, using bash (with the release files in ~/openlayers ):
  34. $ cd /var/www/html
  35. $ cp -R ~/openlayers/lib ./
  36. $ cp -R ~/openlayers/theme ./
  37. $ cp -R ~/openlayers/img ./
  38. ------------------------------------
  39. Using OpenLayers in Your Own Website
  40. ------------------------------------
  41. The examples/ directory is full of useful examples.
  42. Documentation is available at http://trac.openlayers.org/wiki/Documentation.
  43. You can generate the API documentation with http://www.naturaldocs.org/:
  44. As an example, using bash (with the release files in ~/openlayers ):
  45. $ cd ~/openlayers/
  46. $ /path/to/NaturalDocs -i lib/ -o HTML doc/ -p doc_config/ -s Default OL
  47. Information on changes in the API is available in news.txt.
  48. --------------------------
  49. Contributing to OpenLayers
  50. --------------------------
  51. Please join the email lists at http://openlayers.org/mailman/listinfo
  52. Patches are welcome!
  53. = 30 =