-
Notifications
You must be signed in to change notification settings - Fork 16
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
Make map-properties popup size dynamic #1017
Conversation
const map = layer._map; | ||
const popupOptions = { | ||
autoClose: false, | ||
autoPan: true, |
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.
I believe the autoPan value was the default false
and that was intentional so that the map wouldn't keep panning and pulling in new features, which might be a problem for a screenreader user (?). That was my theory anyhow. I guess we can keep this value and see if it engenders any comment from anyone else though.
@@ -70,11 +70,18 @@ export var TemplatedFeaturesLayer = Layer.extend({ | |||
projection: map.options.projection, | |||
mapEl: this._linkEl.getMapEl(), | |||
onEachFeature: function (properties, geometry) { | |||
const popupOptions = { |
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.
I believe the autoPan value was the default false
and that was intentional so that the map wouldn't keep panning and pulling in new features, which might be a problem for a screenreader user (?). That was my theory anyhow. I guess we can keep this value and see if it engenders any comment from anyone else though.
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.
Good work! Merge when ready. Thanks!
Fixes #893