[Pkg-osm-maint] Bug#658387: Bug#658387: Examples don't work

Andrew Harvey andrew.harvey4 at gmail.com
Fri Feb 3 11:29:26 UTC 2012


On Fri, Feb 3, 2012 at 3:14 AM, Antony Gelberg <antony.gelberg at gmail.com> wrote:
> Package: libjs-openlayers-doc
>
> I installed this package today as the OL website was down.  Sadly, the
> examples don't work in either chrome or firefox.  Please look into
> this.

Looks like the examples try to source
../lib/OpenLayers.js
../theme/default/style.css
etc.

I take that ideally we would want a solution to work when browsing both of
file:///usr/share/doc/libjs-openlayers-doc/examples/
http://localhost/doc/libjs-openlayers-doc/examples/

One solution would be to have a symlink,
ln -s -T ../../javascript/openlayers/ /usr/share/doc/libjs-openlayers-docs/lib
ln -s -T ../../javascript/openlayers/theme theme

I don't know if this would violate any policies though... otherwise if
we patch the actual example files with different links to the OL.js
file we can't support both file:// and http://localhost

I'm happy to make/test a patch if this approach is okay, and no one
else wants to do it.





More information about the Pkg-osm-maint mailing list