lundegaard / lundegaard/react-mapy-cz

Refactor BaseLayers and add utility layers

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

BaseLayer constant now contains all map layers available in Mapy.cz API, but some of those layers do not contain a name and actual map tiles. So showing those layers in LayerControl is not appropriate.

Goal of this task is to go through all layers and put the ones without this info into separate object.
Also create a new layer component that can consume the incomplete layers and show them on top of regular ones.

API should already support this, take a look at
Turist layer or Smart turist layer

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 tracing the BaseLayer constant and how LayerControl consumes it. Compare the incomplete layers with the Mapy.cz Turist and Smart turist layer API documentation, then identify the existing layer component entry points. Done means incomplete layers are separated from regular layers and a new component can render them above the regular layers.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 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.