Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developing widgets for ipyleaflet #44

Open
giswqs opened this issue Aug 27, 2023 · 0 comments
Open

Developing widgets for ipyleaflet #44

giswqs opened this issue Aug 27, 2023 · 0 comments

Comments

@giswqs
Copy link

giswqs commented Aug 27, 2023

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);

jupyter-widgets/ipyleaflet#1134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant