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

feature: new options for draganddrop #1793

Merged
merged 2 commits into from
Jul 3, 2023
Merged

feature: new options for draganddrop #1793

merged 2 commits into from
Jul 3, 2023

Conversation

jokd
Copy link
Contributor

@jokd jokd commented Jun 29, 2023

Fixes #1792
New options:

"zoomToExtent": true, // Adds zoom to layer option for the layer, default true
"zoomToExtentOnLoad": true // Zooms to layer extent  when loaded, default true

Copy link
Collaborator

@johnnyblasta johnnyblasta left a comment

Choose a reason for hiding this comment

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

I tried this config

   {
      "name": "draganddrop",
      "options": {
        "zoomToExtent": false,
        "zoomToExtentOnLoad" : false
      }
    }

but I got both option on, it zoomed to feature and menu option was there.

@jokd
Copy link
Contributor Author

jokd commented Jul 3, 2023

I tried this config

   {
      "name": "draganddrop",
      "options": {
        "zoomToExtent": false,
        "zoomToExtentOnLoad" : false
      }
    }

but I got both option on, it zoomed to feature and menu option was there.

Yeah I can see whats wrong. Will fix asap

Copy link
Collaborator

@johnnyblasta johnnyblasta left a comment

Choose a reason for hiding this comment

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

LGTM

@jokd jokd merged commit 8aca1cb into master Jul 3, 2023
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.

New options for drag and drop
2 participants