/*
 * All of our cool Javascript stuff here
 */

function attemptGeocode(ditibKey)
{
    var gcUrlBase = "../rest/ditib/geocode/";
    var mapUrlBase = "../map/";

    // http://localhost:8888/rest/ditib/geocode/84030-20-5
    var gcUrl = gcUrlBase + ditibKey;
    console.log(gcUrl);
    $.getJSON(gcUrl, function (data)
    {
        console.log(data);
        if (data["geocoded"] == true)
        {
            var lat = data["lat"];
            var lon = data["lon"];
            var jumpUrl = mapUrlBase + "#zoom=17&amp;lat=" + lat + "&amp;lon=" + lon;

            window.location.href = jumpUrl;
        }
        else
        {
            alert("Failed to geocode place");
        }
    });
}

/*
 * All of our cool Javascript stuff here
 */

function attemptGeocode(ditibKey)
{
    var gcUrlBase = "../rest/ditib/geocode/";
    var mapUrlBase = "../";

    // http://localhost:8888/rest/ditib/geocode/84030-20-5
    var gcUrl = gcUrlBase + ditibKey;
    console.log(gcUrl);
    $.getJSON(gcUrl, function (data)
    {
        console.log(data);
        if (data["geocoded"] == true)
        {
            var lat = data["lat"];
            var lon = data["lon"];
            var jumpUrl = mapUrlBase + "#zoom=17&amp;lat=" + lat + "&amp;lon=" + lon;

            window.location.href = jumpUrl;
        }
        else
        {
            alert("Failed to geocode place");
        }
    });
}

Move the map to the top level of the site
Move the map to the top level of the site