diff --git a/GuildWarsPartySearch.NodeJSServer/index.mjs b/GuildWarsPartySearch.NodeJSServer/index.mjs index c5acb28..6d72874 100644 --- a/GuildWarsPartySearch.NodeJSServer/index.mjs +++ b/GuildWarsPartySearch.NodeJSServer/index.mjs @@ -6,7 +6,7 @@ import { party_search_types, districts, district_regions, - getDistrictName, district_region_info, region_from_district, isValidOutpost + getDistrictName, district_region_info, region_from_district, isValidOutpost, getNearestOutpost, map_ids } from "./src/js/gw_constants.mjs"; import {is_numeric, to_number} from "./src/js/string_functions.mjs"; import {groupBy, unique} from "./src/js/array_functions.mjs"; @@ -222,7 +222,8 @@ function getLeafletLocationByMapId(map_id) { return null; } -async function navigateToLocation(map_id, showParties) { +async function navigateToLocation(_map_id, showParties) { + const map_id = getNearestOutpost(_map_id); const leaflet_location = getLeafletLocationByMapId(map_id); if (!leaflet_location) return; if (leaflet_location.continent.id !== currentContinent) { @@ -703,7 +704,7 @@ async function check_websocket() { let ws = get_websocket_client(); if(document.visibilityState !== 'hidden') { try { - reconnect_websocket(); + await reconnect_websocket(); } catch(e) { console.log(e.message); } diff --git a/GuildWarsPartySearch.NodeJSServer/src/data/2.json b/GuildWarsPartySearch.NodeJSServer/src/data/2.json index d138d5f..3f52355 100644 --- a/GuildWarsPartySearch.NodeJSServer/src/data/2.json +++ b/GuildWarsPartySearch.NodeJSServer/src/data/2.json @@ -326,6 +326,12 @@ "coordinates": [ 3511, 2715 ], "mapId": 77 }, + { + "name": "Urgoz's Warren", + "type": "outpost_cantha_kurzick", + "coordinates": [ 3576, 2629 ], + "mapId": 266 + }, { "name": "Aspenwood Gate (Kurzick)", "type": "outpost_cantha_kurzick", @@ -473,6 +479,12 @@ "coordinates": [ 4451, 2259 ], "mapId": 193 }, + { + "name": "The Deep", + "type": "outpost_cantha_luxon", + "coordinates": [ 4530, 2255 ], + "mapId": 307 + }, { "name": "Breaker Hollow", "type": "outpost_cantha_luxon",