openlayers / openlayers/openlayers

TS features for setFeatures in geojson-vt example

Open
#13,304 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
12.6k
Forks
3.2k
Avg merge
2d 17h
Merged PRs (30d)
21

Description

Describe the bug

Property 'setFeatures' does not exist on type 'Tile'.ts(2339)

To Reproduce
Steps to reproduce the behavior:

  1. Go to geojson-vt example
  2. Fork and change main.js to main.ts
  3. See error

Expected behavior
setFeatures to exist

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 with the geojson-vt example at https://openlayers.org/en/latest/examples/geojson-vt.html and compare its main.js entry point with the reported main.ts reproduction. Confirm why TypeScript does not recognize setFeatures on Tile, then verify that the example’s TypeScript version recognizes it without the reported error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.