Skip to content

[6.x] [Maps] Handle unavailable tilemap services (#28852)#29542

Merged
kindsun merged 1 commit intoelastic:6.xfrom
kindsun:backport/6.x/pr-28852
Jan 29, 2019
Merged

[6.x] [Maps] Handle unavailable tilemap services (#28852)#29542
kindsun merged 1 commit intoelastic:6.xfrom
kindsun:backport/6.x/pr-28852

Conversation

@kindsun
Copy link
Copy Markdown
Contributor

@kindsun kindsun commented Jan 29, 2019

Backports the following commits to 6.x:

* Update ems utils to better handle no service results. Prevent excess attribution errors

* Update tile layer sync to return promise and handle errors related to both obtaining url and tile loading

* Add flow for updating tms layers with error status/message

* Handle promises, if returned, on syncLayerWithMB. Update TMS error status

* Exclude layers that mapbox didn't add to map but are tracked in layer list from reordering logic

* Move datarequest handling to vector layer. Use relevant data load/error logic for tile and vector layers

* Don't try to get attributions on errored layer

* Handle 'includeElasticMapsService' configuration

* Move data requests back to layer level for heatmap usage

* Update all layers to set top-level layer error status and message. Consolidate redundant code

* Update tile sync function to more reliably confirm load status after loading via callback. Add interval to cancel timer

* Remove unnecessary, and annoying, clear temp layers on tms error

* Clean up

* More clean up

* Review feedback

* Review feedback. Test cleanup

* Test fixes and review feedback
@kindsun kindsun added the backport This PR is a backport of another PR label Jan 29, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@kindsun kindsun merged commit 079cff2 into elastic:6.x Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants