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

Added map-change event for extents #1005

Merged
merged 7 commits into from
Nov 6, 2024
Merged

Conversation

yushan-mu
Copy link
Contributor

@yushan-mu yushan-mu commented Oct 30, 2024

added map-change event for extents, added test cases for map-change events

fixes #907

@yushan-mu yushan-mu requested a review from AliyanH October 30, 2024 15:58
@yushan-mu yushan-mu force-pushed the issue-907 branch 2 times, most recently from ea7bd4a to a39cba4 Compare October 31, 2024 13:18
Copy link
Member

@AliyanH AliyanH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! just a few minor suggestions. Great work @yushan-mu!

test/e2e/api/events/map-change-event.test.js Outdated Show resolved Hide resolved
test/e2e/api/events/map-change-event.test.js Outdated Show resolved Hide resolved
@AliyanH
Copy link
Member

AliyanH commented Oct 31, 2024

Also while testing this, discovered a weird bug (#1007), maybe we can take a look at this next

Copy link
Member

@AliyanH AliyanH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyboard interaction test

await context.close();
});

test('Map change event for layers work', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test('Map change event for layers work', async () => {
test('Map-change event for map-layer dispatched on user interaction', async () => {

expect(layerClicked).toBe(2);
});

test('Map change event for sub-layers work', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test('Map change event for sub-layers work', async () => {
test('Map-change event for map-extent dispatched on user interaction', async () => {

Copy link
Member

@AliyanH AliyanH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work! Squash and merge!

@yushan-mu yushan-mu merged commit 72c23f5 into Maps4HTML:main Nov 6, 2024
1 check passed
@yushan-mu yushan-mu deleted the issue-907 branch November 6, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

map-extent add zoomTo() method, extent property and map-change event
2 participants