-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[maps] rename layer types provide more distinguishable names that better reflect layer #118617
Conversation
nreese
commented
Nov 15, 2021
•
edited
Loading
edited
- Rename TileLayer to RasterTileLayer
- Rename VectorTileLayer to EmsVectorTileLayer
- Updates EmsVectorTileLayer to extend from AbstractLayer instead of RasterTileLayer
- LAYER.TYPE updates
- TILED_VECTOR replaced with MVT_VECTOR
- VECTOR_TILE replaced with EMS_VECTOR_TILE
- VECTOR replaced with GEOJSON_VECTOR
- TILE replaced with RASTER_TILE
- Add migration scripts for LAYER_TYPE changes
@@ -241,10 +264,11 @@ export class VectorTileLayer extends TileLayer { | |||
} | |||
const newLayerObject = { | |||
...layer, | |||
source: | |||
source: this._generateMbSourceId( |
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.
Fixes layer re-ordering regression caused by #117745
Original code was source: this._generateMbSourceId(layer.source),
. This fix keeps the original code's behavior of always setting source to _generateMbSourceId.
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.
lgtm on green CI
discussed offline. This changes the values on the saved-objects as well. Agreed that this will aid in readability going forward (post 8.1), at the expense of widening scope of this PR.
Pinging @elastic/kibana-gis (Team:Geo) |
@elasticmachine merge upstream |
Pinging @elastic/uptime (Team:uptime) |
Pinging @elastic/apm-ui (Team:apm) |
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.
Uptime changes LGTM !!
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
…ter reflect layer (elastic#118617) * [maps] rename layer types provide more distinguishable names that better refect layer * fix migration rename * revert extends change for EmsVectorTileLayer * tsling * fix regression and jest test * extend from Abstract instead of RasterTile * better fix * fix tests * more test fixes * update path for newly merged code Co-authored-by: Kibana Machine <[email protected]>