influxdata / influxdata/giraffe

[GeoWidget] - Leaflet CSS seems to have gone missing

Open
#356 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
189
Forks
33
Avg merge
3d 15h
Merged PRs (30d)
4

Description

**Build**
Built locally from Master branch.
Last commit 23a61bb0e5476857ec4dbdaa811eab78398e42c2

**Use Case**
I'm building a test suite for GeoWidget with Giraffe based in NextJS.
https://github.com/bonitoo-io/giraffe-cypress

I add GeoWidget elements to simple pages for testing.

**Expected Behavior**
That the underlying leaflet tiles for open street maps will be composed sensibly.

**Actual Behavior**
When I open the base case I see the GeoWidget tiles are scattered across the page. This is most likely caused by missing Leaflet CSS resources.

**Screenshot**
![MissingLeafletCSS01](https://user-images.githubusercontent.com/25881301/98094803-0f8ab200-1e8a-11eb-8a2e-bcbe638e5fe4.png)

**What it should look like**
From yesterday's tests
![GeoWidget - Basic - Map with Circles -- successfully loads -- after each hook Screenshot](https://user-images.githubusercontent.com/25881301/98095173-80ca6500-1e8a-11eb-9bbe-1442513b93e6.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the GeoWidget base case from the linked giraffe-cypress test suite and inspect how the widget’s Leaflet resources are loaded. Compare the scattered tiles with the expected screenshot; done means the OpenStreetMap tiles are composed sensibly in the test page.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.