Example #1
0
function redirectToSearchPage(config, filterObj, wmCoords) {
    var getZPortion = function (wmCoords) {
            var ll = U.webMercatorToLatLng(wmCoords.x, wmCoords.y);
            return '&z='+ mapManager.ZOOM_PLOT + '/' + ll.lat + '/' + ll.lng;
        },
        qPortion = U.getUpdatedQueryString('q', JSON.stringify(filterObj)),
        zPortion = wmCoords ? getZPortion(wmCoords) : '',
        url = config.instance.url + 'map/?' + qPortion + zPortion;

    window.location.href = url;
}
Example #2
0
    redirectToSearchPage: function (config, query) {
        query = U.getUpdatedQueryString('q', JSON.stringify(query));

        window.location.href =
            config.instance.url + 'map/?' + query;
    },