[OpenLayers-Trac] [OpenLayers] #710: Install instructions unclear
OpenLayers
trac at openlayers.org
Thu May 17 15:37:43 EDT 2007
#710: Install instructions unclear
---------------------------+------------------------------------------------
Reporter: openlayers | Owner:
Type: bug | Status: new
Priority: minor | Milestone:
Component: documentation | Version: SVN
Keywords: install |
---------------------------+------------------------------------------------
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
[source: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:
1. svn co openlayers...
2. cd openlayers/build
3. ./build.py
4. cp OpenLayers.js ~/html/
5. cp -R ../lib ~/html/lib
6. Modify the js include
1. from {{{<script
src="http://openlayers.org/dev/lib/OpenLayers.js"></script>}}}
2. to {{{<script src="/OpenLayers.js"></script>}}}
3. then {{{<script src="<?php if($_SERVER['HTTPS']) {print
'https://';} else {print 'http://';};print
$_SERVER['SERVER_NAME'];?>/OpenLayers.js"></script> }}}
4. then {{{<script src="<?php if($_SERVER['HTTPS']) {print
'https://';} else {print 'http://';};print
$_SERVER['SERVER_NAME'];?>/lib/OpenLayers.js"></script> }}}
5. 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.
--
Ticket URL: <http://trac.openlayers.org/ticket/710>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list