Ticket #710 (closed bug: fixed)
Install instructions unclear
| Reported by: | openlayers | Owned by: | crschmidt |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4 Release |
| Component: | documentation | Version: | 2.4 RC3 |
| Keywords: | pullup | Cc: | |
| State: |
Description
Maybe I'm a newb, but I can't get a local install to work.
The instructions I am using are the current svn instructions, as of r3156 trunk/openlayers/readme.txt:
--------------------- Installing OpenLayers --------------------- You can use OpenLayers as-is by copying build/OpenLayers.js and the entire lib/ directory up to your webserver, putting them in the same directory. To include the OpenLayers library in your web page, use: <script type="text/javascript" src="OpenLayers.js" /> If you want to use the multiple-file version of OpenLayers (for, say, debugging or development purposes), copy the lib/ directory up to your webserver in the same directory you put the img/ folder. Then add the following to your web page instead: <script type="text/javascript" src="lib/OpenLayers.js" />
I was testing openlayers, using the example in lite.html, and as documented in MappingYourData. It all works very well, and I have a decent map design. I want to move it to an internal web server, but when I follow the above instructions, I am unable to get it to install.
Steps to reproduce:
- svn co openlayers...
- cd openlayers/build
- ./build.py
- cp OpenLayers.js ~/html/
- cp -R ../lib ~/html/lib
- Modify the js include
- from <script src="http://openlayers.org/dev/lib/OpenLayers.js"></script>
- to <script src="/OpenLayers.js"></script>
- then <script src="<?php if($_SERVER['HTTPS']) {print 'https://';} else {print 'http://';};print $_SERVER['SERVER_NAME'];?>/OpenLayers.js"></script>
- then <script src="<?php if($_SERVER['HTTPS']) {print 'https://';} else {print 'http://';};print $_SERVER['SERVER_NAME'];?>/lib/OpenLayers.js"></script>
- then <script type="text/javascript" src="<?php if($_SERVER['HTTPS']) {print 'https://';} else {print 'http://';};print $_SERVER['SERVER_NAME'];?>/lib/OpenLayers.js"></script>
In all cases, it loads the WMS file, but the map paraphernalia and widgets do not draw. They are either broken links, or missing, and the coordinate of the mouse is reported in the top left.
Hmmm...
At this point, I think I've done everything required, but obviously I haven't. That's what leads me to believe the docs are the problem.

