[Potlatch-dev] An offer to do some light documenting...
Dave Stubbs
osm.list at randomjunk.co.uk
Wed Apr 28 12:17:49 BST 2010
On Wed, Apr 28, 2010 at 11:09 AM, Richard Mann
<richard.mann.westoxford at googlemail.com> wrote:
> I dug out the old emails, had a look at the geowiki site, did some
> playing with the ui and thought maybe I could set this thing up to do
> some rendering (in particular I was after a larger display area to use
> offline and no NPE background). The comment on the technical notes
> seems to have a working version on another site, so maybe I can do it
> too...
>
> Anyway, copied the HTML, cut out bits that I thought I didn't need,
> acquired copies of swfobject.js and halcyon_viewer.swf. But clearly
> something missing.
>
> I have embedded the HTML in this page (lines 155-175):
>
> http://www.cyclox.org/oxford-journey-planner/cyclox-map/
>
> If anyone would can put me right, I would be most grateful.
You have "<p>" and "</p>" turning up inside your script tags -- that's
causing script errors.
Also, the code you cut and pasted is for swfobject 1.5, but you're
importing swfobject 2.2 which is not compatible. You can get a copy of
1.5 here:
http://random.dev.openstreetmap.org/potlatch2/swfobject.js
alternatively port the code to 2.2 using the documentation at
http://code.google.com/p/swfobject/wiki/documentation
Dave
More information about the Potlatch-dev
mailing list