-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* CB-4504 transform coordinates according to the chosen srid * CB-4504 add licence * CB-4504 move types to dev deps --------- Co-authored-by: Daria Marutkina <[email protected]>
- Loading branch information
1 parent
7a45f2f
commit cd7ffe6
Showing
7 changed files
with
139 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.root { | ||
display: inline-flex; | ||
align-items: center; | ||
font-size: 12px; | ||
} | ||
|
||
.combobox { | ||
width: 120px; | ||
flex: 0 0 auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,26 @@ | ||
import styled, { css } from 'reshadow'; | ||
|
||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
import { Combobox } from '@cloudbeaver/core-blocks'; | ||
|
||
import classes from './CrsInput.m.css'; | ||
import type { CrsKey } from './LeafletMap'; | ||
|
||
const styles = css` | ||
root { | ||
display: inline-flex; | ||
align-items: center; | ||
font-size: 12px; | ||
} | ||
label { | ||
margin-right: 4px; | ||
flex-grow: 0; | ||
flex-shrink: 1; | ||
} | ||
Combobox { | ||
width: 120px; | ||
flex: 0 0 auto; | ||
} | ||
`; | ||
|
||
interface Props { | ||
value: CrsKey; | ||
onChange: (value: CrsKey) => void; | ||
} | ||
|
||
const items: CrsKey[] = ['Simple', 'EPSG3395', 'EPSG3857', 'EPSG4326', 'EPSG900913']; | ||
const items: CrsKey[] = ['Simple', 'EPSG:3395', 'EPSG:3857', 'EPSG:4326', 'EPSG:900913']; | ||
|
||
export function CrsInput(props: Props) { | ||
return styled(styles)( | ||
<root> | ||
<label>CRS:</label> | ||
<Combobox items={items} value={props.value} onSelect={props.onChange} /> | ||
</root>, | ||
return ( | ||
<div className={classes.root}> | ||
<Combobox className={classes.combobox} items={items} value={props.value} onSelect={props.onChange} /> | ||
</div> | ||
); | ||
} |
16 changes: 16 additions & 0 deletions
16
webapp/packages/plugin-gis-viewer/src/GISValuePresentation.m.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.root { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
} | ||
|
||
.map { | ||
flex: 1 1 auto; | ||
border-radius: var(--theme-group-element-radius); | ||
overflow: hidden; | ||
} | ||
|
||
.toolbar { | ||
margin-top: 8px; | ||
flex: 0 0 auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4796,6 +4796,11 @@ | |
dependencies: | ||
postcss "^8.0.0" | ||
|
||
"@types/proj4@^2.5.5": | ||
version "2.5.5" | ||
resolved "https://registry.yarnpkg.com/@types/proj4/-/proj4-2.5.5.tgz#044d53782dc75f20335577ca3af2643962a56980" | ||
integrity sha512-y4tHUVVoMEOm2nxRLQ2/ET8upj/pBmoutGxFw2LZJTQWPgWXI+cbxVEUFFmIzr/bpFR83hGDOTSXX6HBeObvZA== | ||
|
||
"@types/prop-types@*": | ||
version "15.7.11" | ||
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.11.tgz#2596fb352ee96a1379c657734d4b913a613ad563" | ||
|
@@ -12442,6 +12447,11 @@ methods@~1.1.2: | |
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" | ||
integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== | ||
|
||
[email protected]: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/mgrs/-/mgrs-1.0.0.tgz#fb91588e78c90025672395cb40b25f7cd6ad1829" | ||
integrity sha512-awNbTOqCxK1DBGjalK3xqWIstBZgN6fxsMSiXLs9/spqWkF2pAhb2rrYCFSsr1/tT7PhcDGjZndG8SWYn0byYA== | ||
|
||
micromark-core-commonmark@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-2.0.0.tgz#50740201f0ee78c12a675bf3e68ffebc0bf931a3" | ||
|
@@ -15112,6 +15122,14 @@ process-nextick-args@~2.0.0: | |
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" | ||
integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== | ||
|
||
proj4@^2.10.0: | ||
version "2.10.0" | ||
resolved "https://registry.yarnpkg.com/proj4/-/proj4-2.10.0.tgz#f6f5391b0f1b1fa4518d9ead150ea6b66e7ce9de" | ||
integrity sha512-0eyB8h1PDoWxucnq88/EZqt7UZlvjhcfbXCcINpE7hqRN0iRPWE/4mXINGulNa/FAvK+Ie7F+l2OxH/0uKV36A== | ||
dependencies: | ||
mgrs "1.0.0" | ||
wkt-parser "^1.3.3" | ||
|
||
promise-all-reject-late@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz#f8ebf13483e5ca91ad809ccc2fcf25f26f8643c2" | ||
|
@@ -18316,6 +18334,11 @@ wildcard@^2.0.0: | |
resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67" | ||
integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ== | ||
|
||
wkt-parser@^1.3.3: | ||
version "1.3.3" | ||
resolved "https://registry.yarnpkg.com/wkt-parser/-/wkt-parser-1.3.3.tgz#46b4e3032dd9c86907f7e630b57e3c6ea2bb772b" | ||
integrity sha512-ZnV3yH8/k58ZPACOXeiHaMuXIiaTk1t0hSUVisbO0t4RjA5wPpUytcxeyiN2h+LZRrmuHIh/1UlrR9e7DHDvTw== | ||
|
||
wordwrap@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" | ||
|