[OSM-talk] osm new zealand website js problems
Milo van der Linden
milo at dogodigi.net
Mon Jan 24 20:57:34 GMT 2011
You have some javascript errors. Missing ; or )
Please go to http://www.jslint.com/ and paste the content of site.js there.
-------------------------------------
The biggest problems are:
Problem at line 31 character 3: Mixed spaces and tabs. $('map').style.bottom
= "";
Problem at line 41 character 6: Missing semicolon. }
Problem at line 83 character 40: Extra comma. location:
"/markers/mobility.txt",
-------------------------------------
They will probably cause openlayers to behave oddly.
jslint.com and firebug (the firefox addon) are tools that you cannot do
without when working with javascript and openlayers.
Good luck!
2011/1/20 Robin Paulson <robin.paulson at gmail.com>
> hi all,
> i put together the osm new zealand site the last week - i learnt a bit
> of javascript along the way, but unfortunately not enough. could
> someone take a look, and help with the problem i'm having?
>
> http://bumblepuppy.org/osm_nz/
>
> (this address is temporary, until i figure out virtual hosts in apache)
>
> the problem is with the map layers - i added a custom layer i created,
> but it displays over the top of other maps sometimes. try selecting
> the various maps, and using the 'permalink' function, and you'll see
> what i mean.
>
> cheers
>
> --
> robin
>
> http://tangleball.org.nz/ - Auckland's Creative Space
> http://bumblepuppy.org/blog/
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20110124/17eba131/attachment.html>
More information about the talk
mailing list