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

Better granularity in layer change notification #89

Open
andersmelander opened this issue Jun 6, 2019 · 1 comment
Open

Better granularity in layer change notification #89

andersmelander opened this issue Jun 6, 2019 · 1 comment

Comments

@andersmelander
Copy link
Member

I proposed a new event 'OnScaleShiftChange' because some thing is wrong when using changed in line Layers[i].Changed .. here we force raising a possible heavy opeartions and when the scale changed is not the probleme of the Layer but it must be notified and see if any updating is needed.

  for i := 0 to Layers.Count - 1 do
    Layers[i].OnScaleShiftChange;

Originally posted by @lamdalili in #35 (comment)

@lamdalili
Copy link
Contributor

I think the best solution is to implement OnScaleShiftChange in LayerCollection this helps to avoid redendent usage of OnGetViewportScale and OnGetViewportShift when scalling points

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants