Skip to content

Commit

Permalink
Merge branch 'master' into feature-user-layer-display-controls
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Jan 23, 2024
2 parents ab54eaa + 4210b1b commit 142893a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/client/src/admin/data/arcgis/arcgis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ export function normalizeArcGISServerUrl(
servicesRoot: "",
location: "",
};
} else if (/rest\/services/i.test(url)) {
const parts = url.split(/\/rest\/services/i);
const baseUrl = parts[0];
const servicesRoot = baseUrl + "/rest/services";
const location = parts[1].replace(/\/$/, "") || "/";
return { baseUrl, servicesRoot, location };
} else {
const baseUrl = url.replace(/\/$/, "");
const servicesRoot = baseUrl + "/arcgis/rest/services";
Expand Down

0 comments on commit 142893a

Please sign in to comment.