Changeset 3168
- Timestamp:
- 05/23/07 23:14:44 (2 years ago)
- Files:
-
- trunk/openlayers/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/readme.txt
r1424 r3168 21 21 22 22 You can use OpenLayers as-is by copying build/OpenLayers.js and the 23 entire lib/ directory up to your webserver, putting them in the same24 directory. To include the OpenLayers library in your web page, use:23 entire theme/ and img/ directories up to your webserver, putting them 24 in the same directory. The files can be in subdirectories on your website, or right in the root of the site, as in these examples. To include the OpenLayers library in your web page from the root of the site, use: 25 25 26 <script type="text/javascript" src="OpenLayers.js" /> 26 <script type="text/javascript" src="/OpenLayers.js" /> 27 28 As an example, using bash (with the release files in ~/openlayers ): 29 $ cd /var/www/html 30 $ cp ~/openlayers/build/OpenLayers.js ./ 31 $ cp -R ~/openlayers/theme ./ 32 $ cp -R ~/openlayers/img ./ 27 33 28 34 If you want to use the multiple-file version of OpenLayers (for, say, … … 31 37 the following to your web page instead: 32 38 33 <script type="text/javascript" src="lib/OpenLayers.js" /> 39 <script type="text/javascript" src="/lib/OpenLayers.js" /> 40 41 As an example, using bash (with the release files in ~/openlayers ): 42 $ cd /var/www/html 43 $ cp -R ~/openlayers/lib ./ 44 $ cp -R ~/openlayers/theme ./ 45 $ cp -R ~/openlayers/img ./ 46 34 47 35 48 ------------------------------------
