[OSM-talk] OSM not working for me on Linux

Christopher Schmidt crschmidt at metacarta.com
Sat Nov 24 01:20:22 GMT 2007


On Sat, Nov 24, 2007 at 01:03:54AM +0000, Tom Hughes wrote:
> In message <4747759B.5050708 at arjam.net>
>           "Robert (Jamie) Munro" <rjmunro at arjam.net> wrote:
> 
> > Craig Shelley wrote:
> > > Just to confirm, I'm having the same problems.
> > 
> > I'm having the problem on Mac OS X:
> > 
> > Error: syntax error
> > Source File: http://www.openstreetmap.org/
> > Line: 156, Column: 15
> > Source Code:
> >     var zoom = ;
> > 
> > It seems to have started about the same time as the database hiatus
> > yesterday.
> 
> All working fine for me with firefox on linux.
> 
> The symptoms sounds rather more like they are related to a commit I made
> about midnight last night but like I say it all seems to be fine here.

If I clear my cookies, or open OSM in a browser with no cookies, I see
this in the code: 

    var centre = lonLatToMercator(new OpenLayers.LonLat(-0.1, 51.5));
    var zoom = ;

Obviously, I wouldn't see this if the IP geocoder returned a location,
so this  seems to indicate that this line of code:

        <% zoom =  h(params['zoom']) || '5' %>

is not falling back to '5' properly. I *think* this means this bug will
only happen when the IP Geocoder fails for whatever reason, which would
result in the non-reproducible nature. I thik it also means if you pass
in ?zoom=5, it should work as a workaround for users who are having
problems. (You may have to clear your cookies to get this to work.) 

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the talk mailing list