Skip to content
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

Merged
merged 43 commits into from
Aug 16, 2019

Conversation

thomasneirynck
Copy link
Contributor

@thomasneirynck thomasneirynck commented Aug 7, 2019

Use vector tiles for EMS base layers.

todo:

  • integrate with new Maki image loading [Maps] Load Maki icons from spritesheet #42499
    • dynamically determine retina or not
  • add Kibana proxying to vector endpoints
  • [ ] add default font set to Kibana instead, decided to link to the EMS one
  • proxy should work for device/pixel ratio 2x
  • tests

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@thomasneirynck thomasneirynck marked this pull request as ready for review August 8, 2019 15:08
return;
}
mbMap.addSource(mbSourceId, vectorStyle.sources[sourceId]);
});
Copy link
Contributor

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]);
    });

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@alexfrancoeur
Copy link

wow, what an improvement. these look great Thomas!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@nreese nreese left a 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

@thomasneirynck thomasneirynck merged commit d0e4849 into elastic:master Aug 16, 2019
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants