Skip to content
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

[Maps] Enable ability to provide custom renderer for tooltip #46150

Merged
merged 10 commits into from
Sep 27, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class GisMap extends Component {
isFullScreen,
exitFullScreen,
mapInitError,
renderTooltipContent,
} = this.props;

const { domId } = this.state;
Expand Down Expand Up @@ -210,6 +211,7 @@ export class GisMap extends Component {
<MBMapContainer
addFilters={addFilters}
geoFields={this.state.geoFields}
renderTooltipContent={renderTooltipContent}
/>
<ToolbarOverlay
addFilters={addFilters}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class FeatureTooltip extends React.Component {
featureId={feature.id}
layerId={feature.layerId}
loadFeatureProperties={this.props.loadFeatureProperties}
showFilterButtons={this.props.showFilterButtons}
showFilterButtons={!!this.props.addFilters && this.props.isLocked}
onCloseTooltip={this._onCloseTooltip}
addFilters={this.props.addFilters}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const defaultProps = {
return new MockLayer(id);
},
closeTooltip: () => {},
showFilterButtons: false,
isLocked: false,
};

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading