-
Notifications
You must be signed in to change notification settings - Fork 225
Image section event refactor #1002
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
Conversation
…ifiedProperty and Begin/EndChangeCheck to set imageLayerProperties.HasChanged to true. Renamed ImageryLayer.Refresh to UpdateImageryLayer; refactored UpdateImageryLayer to use System.EventHandler arguments.
options.placementOptions.placementStrategy.SetUpPlacement(this); | ||
|
||
_imagery.UpdateLayer += (factory, updateVector) => | ||
_imagery.UpdateLayer += (object sender, System.EventArgs e)=> |
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.
can we have a more descriptive variable name instead of e?
} | ||
|
||
public void Refresh() | ||
public void UpdateImageryLayer(object sender, System.EventArgs e) |
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.
Can we rename this to be UpdateLayer or RedrawLayer - so that the signatures for all layer updates are similar.
… to eventArgs; renamed ImageryLayer.UpdateImageryLayer to RedrawLayer.
…up-image-terrain * commit 'a6783e62a56c65198c92429e2108ec17cc21ed41': Image section event refactor (#1002) # Conflicts: # sdkproject/Assets/Mapbox/Unity/Map/AbstractMap.cs # sdkproject/Assets/Mapbox/Unity/SourceLayers/ImageryLayer.cs
* develop: Terrain section event refactor apply property changes at end of gui (#1009) fix an issue where TerrainFactoryBase didn't respect "none" terrain option (#1006) API's for runtime editing. (#1005) Image section event refactor (#1002) Fix buildingid setting (#998) Map update develop merge fresh (#994) Improve query height method (#979) Mid floor calculation bug fix (#968) Updated changelog version to v1.4.6 update changelog change ElevatedTerrainStrategy and ElevatedTerrainWithSidesStrategy classes to create flat terrain mesh on height data errors UWP fixes (and more) (#945)
Related issue
Runtime map updating
Description of changes
Image section now uses System.EventHandler to fire runtime update events.
QA checklists
<summary>
description as well as description of parameters.Reviewers
Tag your reviewer(s). Choose wisely.