<p>In app/views/layouts/_head.html.erb:</p>
<pre style='color:#555'>> @@ -21,6 +21,14 @@
>      I18n.defaultLocale = "<%= I18n.default_locale %>";
>      I18n.locale = "<%= I18n.locale %>";
>      I18n.fallbacks = true;
> +
> +    <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
> +    OSM.home = <%= { :lat => @user.home_lat, :lon => @user.home_lon }.to_json %>;
</pre>
<p>This needs a <code>.html_safe</code> after the <code>.to_json</code> or the javascript code gets HTML escaped. The same will apply to the other one.</p>

            <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
              —<br>
              Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/94/files#r1614759'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_n759tut4E0lgI9DAeIHeZx.gif' height='1' width='1'>