Skip to content

Commit

Permalink
added react-leaflet control to taskbundlewidget and overruled top pos…
Browse files Browse the repository at this point in the history
…itioning of container in index.css file
  • Loading branch information
AndrewPhilbin committed Aug 2, 2023
1 parent d2d0792 commit 8258c34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TaskClusterMap/TaskClusterMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react'
import { FormattedMessage } from 'react-intl'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { ZoomControl, Marker, LayerGroup, Rectangle, Polyline, Pane, Tooltip }
import { ZoomControl, ScaleControl, Marker, LayerGroup, Rectangle, Polyline, Pane, Tooltip }
from 'react-leaflet'
import { latLng } from 'leaflet'
import bbox from '@turf/bbox'
Expand Down Expand Up @@ -714,6 +714,7 @@ export class TaskClusterMap extends Component {
onZoomOrMoveStart={this.debouncedUpdateBounds.cancel}
>
<ZoomControl className="mr-z-10" position='topright' />
{this.props.showScaleControl && <ScaleControl className="mr-z-10" position='topleft'/>}
{this.props.showFitWorld && <FitWorldControl />}
{this.props.taskCenter &&
<FitBoundsControl key={this.props.taskCenter.toString()} centerPoint={this.props.taskCenter} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ const BuildBundle = props => {
allowClusterToggle={false}
hideSearchControl
allowSpidering
showScaleControl
showSelectMarkersInView
{..._omit(props, 'className')}
/>
Expand Down

0 comments on commit 8258c34

Please sign in to comment.