Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
sufyanAbbasi committed Nov 15, 2024
1 parent 8c7d332 commit 49e363b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 118 deletions.
3 changes: 2 additions & 1 deletion geemap/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,8 @@ def _basemap_selector(self) -> Optional[map_widgets.BasemapSelector]:
"""Finds the basemap selector widget in the map controls.
Returns:
Optional[map_widgets.BasemapSelector]: The basemap selector widget if found, else None.
Optional[map_widgets.BasemapSelector]: The basemap selector widget
if found, else None.
"""
return self._find_widget_of_type(map_widgets.BasemapSelector)

Expand Down
5 changes: 2 additions & 3 deletions js/basemap_selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { css, html, PropertyValues, TemplateResult } from "lit";
import { property, query } from "lit/decorators.js";

import { legacyStyles } from "./ipywidgets_styles";
import { LitWidget } from "./lit_widget";
import { materialStyles } from "./styles";
import { loadFonts } from "./utils";
import { LitWidget } from "./lit_widget";

export interface BasemapSelectorModel {
basemaps: string[];
Expand Down Expand Up @@ -64,7 +64,7 @@ export class BasemapSelector extends LitWidget<
class="legacy-button primary row-button close-button"
@click="${this.onCloseClicked}"
>
<span class="close-icon material-symbols-outlined">&#xe5cd;</span>
<span class="close-icon material-symbols-outlined">close</span>
</button>
</div>`;
}
Expand All @@ -76,7 +76,6 @@ export class BasemapSelector extends LitWidget<
super.update(changedProperties);
}


private onChange(event: Event) {
const target = event.target as HTMLInputElement;
this.value = target.value;
Expand Down
32 changes: 16 additions & 16 deletions js/ipywidgets_styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,27 @@ export const legacyStyles = css`
}
.legacy-select {
padding-right: 20px;
border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
background-color: var(--jp-widgets-input-background-color);
background-image: var(--jp-widgets-dropdown-arrow);
background-position: right center;
background-repeat: no-repeat;
background-size: 20px;
border-radius: 0;
height: inherit;
flex: 1 1 var(--jp-widgets-inline-width-short);
min-width: 0;
box-sizing: border-box;
outline: none !important;
border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);
box-shadow: none;
background-color: var(--jp-widgets-input-background-color);
box-sizing: border-box;
color: var(--jp-widgets-input-color);
flex: 1 1 var(--jp-widgets-inline-width-short);
font-size: var(--jp-widgets-font-size);
vertical-align: top;
height: inherit;
min-width: 0;
outline: none !important;
padding-left: calc(var(--jp-widgets-input-padding)* 2);
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-repeat: no-repeat;
background-size: 20px;
background-position: right center;
background-image: var(--jp-widgets-dropdown-arrow);
padding-right: 20px;
vertical-align: top;
}
}
`;
98 changes: 0 additions & 98 deletions js/layer_manager copy.ts

This file was deleted.

0 comments on commit 49e363b

Please sign in to comment.