widgetti / widgetti/ipyreact

Developing widgets for ipyleaflet

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
134
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Is it possible to develop widgets for ipyleaflet using ipyreact or anywidget? For example, I am interested in using the Leaflet.TileLayer.MBTiles plugin with ipyleaflet. Below is a sample Javascript snippet. Any avdice on how to make this work with ipyleaflet would be greatly appreciated. @maartenbreddels @manzt

Sample dataset: countries.mbtiles

    import { MBTiles, mbtiles } from 'leaflet-tilelayer-mbtiles-ts';

    // Using the constructor...
    let mbtiles = new MBTiles('./assets/mysuperfile.mbtiles', options);
    
    // ... or use the factory
    mbtiles = mbtiles('./assets/mysuperfile.mbtiles', options);
    
    mbtiles.addTo(map);

https://github.com/jupyter-widgets/ipyleaflet/issues/1134

Contributor guide

No contributing guide indexed for this repository

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 reviewing the ipyreact and anywidget approaches referenced in the issue, then read the linked ipyleaflet issue and the Leaflet.TileLayer.MBTiles example. Done would mean a documented or demonstrated way to integrate this plugin with ipyleaflet, including whether the sample MBTiles dataset works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.