Skip to content

Commit

Permalink
refactor: fixup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Sep 19, 2024
1 parent 0bef7a3 commit 388c926
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/landing/src/components/layer.switcher.dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export interface Option {

export interface LayerSwitcherDropdownState {
layers?: Map<string, LayerInfo>;
/** Should the map be zoomed to the extent of the layer when the layer is changed */
zoomToExtent: boolean;
/** Should the drop down be limited to the approximate extent of the map */
limitToExtent: boolean;
currentLayer: string;
}
Expand Down Expand Up @@ -198,13 +200,13 @@ export class LayerSwitcherDropdown extends Component<unknown, LayerSwitcherDropd
/**
* Determine if the bounds in EPSG:3857 intersects the provided layer
*
* TODO: It would be good to then use a more comprehensinve intersection if the bounding box intersects,
* TODO: It would be good to then use a more comprehensive intersection if the bounding box intersects,
* there are complex polygons inside the attribution layer that could be used but they do not have all
* the polygons
*
* @param bounds Bounding box in EPSG:3857
* @param layer layer to check
* @returns true if it intesects, false otherwise
* @returns true if it intersects, false otherwise
*/
function doesLayerIntersect(bounds: Bounds, layer: LayerInfo): boolean {
// No layer information assume it intersects
Expand Down

0 comments on commit 388c926

Please sign in to comment.