-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix overlay styles #821
Fix overlay styles #821
Conversation
src/components/static-map.js
Outdated
@@ -275,7 +275,10 @@ export default class StaticMap extends PureComponent<StaticMapProps, State> { | |||
createElement('div', { | |||
key: 'map-overlays', | |||
className: 'overlays', | |||
style: CONTAINER_STYLE, | |||
style: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make another constant
@@ -284,7 +289,7 @@ export default class StaticMap extends PureComponent<StaticMapProps, State> { | |||
|
|||
render() { | |||
const {className, width, height, style, visibilityConstraints} = this.props; | |||
const mapContainerStyle = Object.assign({position: 'relative'}, style, { | |||
const mapContainerStyle = Object.assign({position: 'relative', overflow: 'inherit'}, style, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not going to work if StaticMap
is used standalone.
This is hacky and cannot resolve the issue. This PR will make both markers and popups overflow on a basemap |
for #768