npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mapbox-plugins

v0.3.2

Published

Customized Mapbox plugins, including game control, canvasOverlayer, scene animation

Downloads

9

Readme

mapbox-plugins travisStatus Netlify Status

Customized Mapbox plugins, including game control, canvasOverlayer, scene animation

https://alex2wong.github.io/mapbox-plugins/

API Docs

For more detailed wiki, pls read issue blogs:

Note: pls visit all demo with HTTPS..

Point animation

Custom popup/Route animation

Chartjs integration

Glow animation

Rbush demo

Canvas Line Style canvas line style which can be integrate to any map/chart lib.

Voxelize terrain data 👆 Voxelize terrain data from a height image.

Extrude typhoon image 👆 Extrude typhoon radar image.

Online demo

| Demo | Code | | :-------- | :--------:| | Sprite track DEMO | view code | | Custom dom overlay DEMO | view code | | R-tree search (5000 rectangles) DEMO | view code | | Global Wind Layer. render 1w point animation with Canvas | view code | | Integrate with Chart.js | view code | | Glow animation | view code | | Cool Route Animation | view code | | Canvas Line Style | view code | | Canvas Staring Demo || | Tilting Ui Marker|view code| | Threejs Typhoon | view code |

run locally

npm install

npm run dev

then visit from http://localhost:8080/examples/, HotModuleReload supported.

npm run build

to Build all plugins into bundle.js with namespace: Mapbox

how to use

plugins provide canvasOverlay, domOverlay ,Sprite, gameControl extension etc. for example:

// create a CanvasOverlayer on Mapbox map instance..
var canvasLayer = new Mapbox.CanvasOverlayer({
    map: map,
    shadow: false,
    keepTrack: true,
    blurWidth: 4
});

// create a Drone inherites Sprite Class
var drone = new Mapbox.Drone({
    direction: 45,
    icon: "https://alex2wong.github.io/mapbox-plugins/assets/tri2.png"
});

// add keyboard control to Sprite.
Mapbox.Controllers.gameControl(drone);
function update(){
    drone.updateStatus();
    // render drone on canvasLayer.
    canvasLayer.redraw([drone]);
    requestAnimationFrame(update);
}
update();

Any ☆Star, Enhancement and PR are welcome :)