Skip to content

Conversation

greglemonmapbox
Copy link
Contributor

Related issue

Runtime map updating

Description of changes

Image section now uses System.EventHandler to fire runtime update events.

QA checklists

  • Add relevant code comments. Every API class and method should have <summary> description as well as description of parameters.
  • Add tests for new/changed/updated classes and methods!!!
  • Check out conventions in CONTRIBUTING.md.
  • Check out conventions in CODING-STYLE.md
  • Update the changelog
  • Update documentation.

Reviewers

Tag your reviewer(s). Choose wisely.

…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)=>
Copy link
Contributor

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)
Copy link
Contributor

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.
@abhishektrip abhishektrip merged commit a6783e6 into develop Sep 10, 2018
abhishektrip added a commit that referenced this pull request Sep 10, 2018
…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
abhishektrip added a commit that referenced this pull request Sep 13, 2018
* 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)
@abhishektrip abhishektrip deleted the image-section-event-refactor branch October 12, 2018 05:32
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.

2 participants