Replace omaps.app links with comaps.app

Co-authored-by: zyphlar <zyphlar@noreply.codeberg.org>
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-05-26 17:10:34 +07:00
parent 536c11079d
commit ca1776ee9f
12 changed files with 93 additions and 93 deletions

View File

@@ -44,49 +44,49 @@ char const * kmlString =
"<Style id=\"placemark-blue\">"
"<IconStyle>"
"<Icon>"
"<href>https://omaps.app/placemarks/placemark-blue.png</href>"
"<href>https://comaps.app/placemarks/placemark-blue.png</href>"
"</Icon>"
"</IconStyle>"
"</Style>"
"<Style id=\"placemark-brown\">"
"<IconStyle>"
"<Icon>"
"<href>https://omaps.app/placemarks/placemark-brown.png</href>"
"<href>https://comaps.app/placemarks/placemark-brown.png</href>"
"</Icon>"
"</IconStyle>"
"</Style>"
"<Style id=\"placemark-green\">"
"<IconStyle>"
"<Icon>"
"<href>https://omaps.app/placemarks/placemark-green.png</href>"
"<href>https://comaps.app/placemarks/placemark-green.png</href>"
"</Icon>"
"</IconStyle>"
"</Style>"
"<Style id=\"placemark-orange\">"
"<IconStyle>"
"<Icon>"
"<href>https://omaps.app/placemarks/placemark-orange.png</href>"
"<href>https://comaps.app/placemarks/placemark-orange.png</href>"
"</Icon>"
"</IconStyle>"
"</Style>"
"<Style id=\"placemark-pink\">"
"<IconStyle>"
"<Icon>"
"<href>https://omaps.app/placemarks/placemark-pink.png</href>"
"<href>https://comaps.app/placemarks/placemark-pink.png</href>"
"</Icon>"
"</IconStyle>"
"</Style>"
"<Style id=\"placemark-purple\">"
"<IconStyle>"
"<Icon>"
"<href>https://omaps.app/placemarks/placemark-purple.png</href>"
"<href>https://comaps.app/placemarks/placemark-purple.png</href>"
"</Icon>"
"</IconStyle>"
"</Style>"
"<Style id=\"placemark-red\">"
"<IconStyle>"
"<Icon>"
"<href>https://omaps.app/placemarks/placemark-red.png</href>"
"<href>https://comaps.app/placemarks/placemark-red.png</href>"
"</Icon>"
"</IconStyle>"
"</Style>"

View File

@@ -274,11 +274,11 @@ UNIT_TEST(MapApiGe0)
TEST_EQUAL(p0.m_name, "Zoo Zürich", ());
}
{
ParsedMapApi api("http://omaps.app/o4B4pYZsRs/Zoo_Zürich");
ParsedMapApi api("http://comaps.app/o4B4pYZsRs/Zoo_Zürich");
TEST_EQUAL(api.GetRequestType(), UrlType::Map, ());
}
{
ParsedMapApi api("https://omaps.app/o4B4pYZsRs/Zoo_Zürich");
ParsedMapApi api("https://comaps.app/o4B4pYZsRs/Zoo_Zürich");
TEST_EQUAL(api.GetRequestType(), UrlType::Map, ());
}
{
@@ -376,7 +376,7 @@ UNIT_TEST(CrosshairApi)
TEST_EQUAL(api.GetAppName(), "Google Maps", ());
}
{
ParsedMapApi api("https://omaps.app/crosshair?cll=47.3813,8.5889&appname=Google%20Maps");
ParsedMapApi api("https://comaps.app/crosshair?cll=47.3813,8.5889&appname=Google%20Maps");
TEST_EQUAL(api.GetRequestType(), UrlType::Crosshair, ());
ms::LatLon latlon = api.GetCenterLatLon();
TEST_ALMOST_EQUAL_ABS(latlon.m_lat, 47.3813, kEps, ());