maplibre-gl-js icon indicating copy to clipboard operation
maplibre-gl-js copied to clipboard

Show Placeholder Grid in background

Open deveshbhatta opened this issue 1 year ago • 4 comments

User Story

As an end-user I can see grid placeholder as map get renders, so that I have better user experience while map is still get loading.

Rationale

  • Why is this feature needed? Better user experience
  • What are some example use cases? any map loading
  • Can it be done today? Is there a workaround? none

Impact

deveshbhatta avatar Sep 21 '23 22:09 deveshbhatta

Can you clarify the ask here? From what you wrote it seems like it should be possible to place a canvas and draw a grid behind the map so that when the map loads the lower canvas gets hidden.

HarelM avatar Sep 22 '23 05:09 HarelM

https://github.com/wipfli/background-grid

wipfli avatar Sep 22 '23 12:09 wipfli

@HarelM

Thanks for the prompt reply. Something like @wipfli mentioned in their post. It would be great if it were natively available in maplibre-gl-js

deveshbhatta avatar Sep 23 '23 22:09 deveshbhatta

It's up to the developer/PO/PM to define the behavior of the background. I'm not sure this specific case is something that is relevant to most use case. You can also create a plugin that allows this and see how many people download it, if it gets too a critical mass we can consider incorporating it into this library.

HarelM avatar Sep 24 '23 19:09 HarelM