Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(arcgis): convert link to rest format #338

Merged
merged 5 commits into from
Jan 9, 2024

Conversation

mspivak-actionengine
Copy link
Collaborator

No description provided.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-338.d3nof3l3x2sso4.amplifyapp.com

@@ -5,7 +5,7 @@ import type {

import { useState } from "react";
import styled, { css } from "styled-components";
import { load } from "@loaders.gl/core";
import { forEach, load } from "@loaders.gl/core";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

const handleInsertLayer = (layer: {
name: string;
url: string;
token?: string;
}) => {
layer.url = convertUrlToRestFormat(layer.url);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really work for layers? We were about doing it for scenes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@@ -197,11 +197,33 @@ export const LayersPanel = ({

useClickOutside([warningNode], () => setShowExistedError(false));

const convertUrlToRestFormat = (url: string): string => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to src\utils\url-utils.ts. Add a test

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@mspivak-actionengine mspivak-actionengine marked this pull request as ready for review January 9, 2024 11:15
@mspivak-actionengine mspivak-actionengine merged commit 5b8d178 into master Jan 9, 2024
3 checks passed
@mspivak-actionengine mspivak-actionengine deleted the ms/arcgis-link branch January 9, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants