-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
@@ -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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
No description provided.