-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Use EMS vector tiles #42846
[Maps] Use EMS vector tiles #42846
Conversation
Pinging @elastic/kibana-gis |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
x-pack/legacy/plugins/maps/public/connected_components/map/mb/utils.js
Outdated
Show resolved
Hide resolved
return; | ||
} | ||
mbMap.addSource(mbSourceId, vectorStyle.sources[sourceId]); | ||
}); |
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.
To save some iterations and a couple lines of code, you could revise this to:
sourceIds.some(sourceId => {
const mbSourceId = this._generateMbId(sourceId);
const mbSource = mbMap.getSource(mbSourceId);
if (mbSource) {
//if a single source is present, the layer already has bootstrapped with the mbMap
initialBootstrapCompleted = true;
return true;
}
mbMap.addSource(mbSourceId, vectorStyle.sources[sourceId]);
});
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
wow, what an improvement. these look great Thomas! |
💚 Build Succeeded |
💚 Build Succeeded |
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
tested in chrome and tested app still loads without EMS connection
Use vector tiles for EMS base layers.
todo:
[ ] add default font set to Kibanainstead, decided to link to the EMS one