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

Map Inside Infinite View (Child Events) #68

Open
bmurtagh01 opened this issue Nov 17, 2023 · 1 comment
Open

Map Inside Infinite View (Child Events) #68

bmurtagh01 opened this issue Nov 17, 2023 · 1 comment
Labels
question Further information is requested

Comments

@bmurtagh01
Copy link

I need to deploy a map inside the infinite-view in Svelte. Now my problem is that the events of both the map and the infinite-view are interfering and I can't move the child map without moving the infinite view as well. Is there an option to let know the infinite-view that if I'm dragging the map, then the event belongs to the map, but if I drag outside the map the it moves the infinite view (event of drag and zoom)? My first approach was to avoid the propagation of the events on the map, but then the inifinite-view is on top of its childs.

@daybrush daybrush added the question Further information is requested label Nov 18, 2023
@daybrush
Copy link
Owner

@bmurtagh01

I think the structure is like this.

<InfiniteViewer>
    <Map />
</InfiniteViewer>

Like your approach, you could just bind stopPropagation to an event in the map. (mousedown)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants