
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
mapbox_static_helper
Advanced tools
Provides urls and pixel positions for loading MapBox's static (square) tiles and create a bigger image
Provides urls and pixel positions for loading MapBox's static (square) tiles and create a bigger image
Using npm:
$ npm install mapbox_static_helper
//Load module
let map = require('mapbox_static_helper');
//set values
//for example satellite-v9
map.setup({
mapBoxToken, // Provided by MapBox
screen_width,
screen_height,
zoom,
map_style, //Available styles can be found here: https://www.mapbox.com/api-documentation/#styles
location_data, //location_data must be an instance of this other module: https://github.com/JuanIrache/latlon_to_xy
tile_size,
attribution, // Whether to attribute MapBox on the image itself. Attribution is mandatory https://docs.mapbox.com/help/how-mapbox-works/attribution/#static--print
double // Retrieve double resolution images
});
let image_urls = mp.getUrlsAndXY();
//getUrlsAndXY() returns an array of objects, with 3 values each: url (string), x and y (center position of image on screen)
//Other methods
map.setStyle(style); //sets the style string
console.log(map.getStyle()); //returns the style string
map.setLocation(location_data); //sets the location instance of latlon_to_xy
let location_data = map.getLocation(); //returns the location instance of latlon_to_xy
FAQs
Provides urls and pixel positions for loading MapBox's static (square) tiles and create a bigger image
The npm package mapbox_static_helper receives a total of 5 weekly downloads. As such, mapbox_static_helper popularity was classified as not popular.
We found that mapbox_static_helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.