OpenLayers OpenLayers

Changeset 3168

Show
Ignore:
Timestamp:
05/23/07 23:14:44 (2 years ago)
Author:
crschmidt
Message:

Update install documentation from discussion in #710.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/readme.txt

    r1424 r3168  
    2121 
    2222You can use OpenLayers as-is by copying build/OpenLayers.js and the 
    23 entire lib/ directory up to your webserver, putting them in the same 
    24 directory. To include the OpenLayers library in your web page, use: 
     23entire theme/ and img/ directories up to your webserver, putting them  
     24in 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: 
    2525 
    26   <script type="text/javascript" src="OpenLayers.js" /> 
     26  <script type="text/javascript" src="/OpenLayers.js" /> 
     27 
     28As 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 ./ 
    2733 
    2834If you want to use the multiple-file version of OpenLayers (for, say, 
     
    3137the following to your web page instead: 
    3238 
    33   <script type="text/javascript" src="lib/OpenLayers.js" /> 
     39  <script type="text/javascript" src="/lib/OpenLayers.js" /> 
     40 
     41As 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 
    3447 
    3548------------------------------------