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

oltb

v3.2.0

Published

OLTB is a portable mobile friendly GIS toolbar developed for OpenLayers 10.0.0

Downloads

53

Readme

License: BSD-2-Clause Demo npm downloads npm version jsDelivr

OLTB v3.2.0

OLTB is a Vanilla JS, portable mobile friendly GIS Toolbar, developed using OpenLayers 10.0.0. The Toolbar can be filled with any number of tools and can be used in both horizontal and vertical mode and is available in both light and dark theme.

Demo

A picture says a thousand words but a Demo 🚀 says a million.

Screenshots

Screenshot Light Theme

Screenshot Dark Theme

NPM

$ npm install oltb

CDN

https://cdn.jsdelivr.net/npm/[email protected]/dist/oltb.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/oltb.min.css

Get Started

  1. Clone
$ git clone https://github.com/qulle/oltb.git
  1. Install Dependencies
$ npm install
  1. Run Tests
$ npm run test
$ npm run test:coverage
  1. Run Devserver
$ npm start

Examples

Examples for both the NPM and CDN version can be viewed in the Examples Directory 👀. Use Git history and the tagged releases to look at older examples.

Documentation

Have a look at the Internal Development Documentation 👓. Here you find detailed descriptions and code examples of how individual parts can be used.

Key Features

  • Draggable layers
  • Create Map- and Feature layers on the fly
  • Stores state in local-storage
  • Draw objects including intersections
  • Measure both length and areas
  • Move vector-objects between feature-layers using cut, copy, paste
  • Snap interactions
    • Snap to segments and vertices
    • Snap to helplines between mouse and vertices
  • Merge drawings and measurements with different shape operations
  • Generate Markers
  • Generate Wind Barbs
  • Save locations as Bookmarks
  • Export PNG of canvas and additional HTML objects
  • Compare maps side by side
  • Light and Dark theme
  • Vertical and Horizontal layout
  • Built in debugging help
  • Parameters for customizability
  • Callback functions for integrations
  • Internationalization, included are:
    • English
    • Swedish
    • Easily extend with your own JSON language file

Language Files

There is a Language Project 🌎 where all available JSON files are kept. If you have a language file, feel free to post a PR to include it for others to use in that repo.

Tools

The following tools are implemented in the project. The tools are devided in two different categories, Hidden and Non-Hidden tools. The differenc is that Hidden tools are not displayed in the Toolbar, but only add functionality in the contextmenu.

Hidden Tools

  • HiddenAboutTool
  • HiddenMapNavigationTool
  • HiddenMarkerTool

Tools

  • BookmarkTool
  • CoordinatesTool
  • DebugInfoToo
  • DirectionTool
  • DrawTool
  • EditTool
  • ScissorsTool
  • ExportPngTool
  • FullscreenTool
  • GraticuleTool
  • HelpTool
  • HomeTool
  • ImportVectorLayerTool
  • InfoTool
  • LayerTool
  • MagnifyTool
  • MeasureTool
  • MyLocationTool
  • OverviewTool
  • RefreshTool
  • ResetNorthTool
  • ScaleLineTool
  • SettingsTool
  • SplitViewTool
  • ThemeTool
  • ToolboxTool
  • ZoomboxTool
  • ZoomInTool
  • ZoomOutTool

Versions

License

BSD-2-Clause License

Author

Qulle