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

@myol/myol

v1.1.1

Published

This package adds many features to Openlayer https://openlayers.org/

Downloads

1

Readme

DC92.MyOl

INSTALL & BUILD

Requires node.js to be installed

  • Go to the myol repository :
cd ./myol
  • Install the required node_modules :
npm install
  • Build the package & generate ./dist/* files :
npm run build

Simple example

This Example demo implements a single map with the most current maps layers providers.

  • You can download the DISTRIBUTION ZIPPED PACKAGE and unzip it in your website FTP section.
  • You can include the css & js sections of this example on your own page (adjust the include files path to your implementation)

Layer Switcher

See a Layer Switcher demo

Tile layers

See a Tile layers demo

  • OSM, OSM-FR, OpenTopo, CyclOsm, Maps.Refuges.Info
  • ThunderForest Outdoors, OpenTopoMap, Cycles, Landscape, Transport, ...
  • IGN France, cadastre, satellite, ...
  • SwissTopo, satellite
  • IDEE España, satellite
  • IGM Italie
  • Ordnance Survey (Great Britain)
  • Kompass Austria
  • Bing Microsoft, satellite
  • Google maps, satellite

Vector layers

See a Vector layer demo

  • GeoJson ajax layers,
  • OverPass (OSM vector points of interest)

Misc controls

See a Control demo

  • Keep position, zoom & zoom on localStorage
  • Geocoder
  • Line length display
  • GPX upload & download
  • Off connexion GPS
  • Print map

Marker display & edit

See a Marker demo

  • Editable position marker with multi-projection position display,

Lines & Polygons editor

See an Editor demo

  • Polylines & polygons editor.

Off line GPS

See an Off line GPS demo

  • Browser -> options -> add to the home screen
  • Choose a map layer
  • Place yourself at the starting point of your hike
  • Zoom to the most detailed level you want to memorize
  • Switch to full screen mode (also memorize the higher scales)
  • Move along the path of your hike slowly enough to load all tiles
  • Repeat with the layers of cards you want to memorize
  • Go to the field and click on the "My GPS" icon
  • If you have a .gpx file in your mobile, view it by clicking on ⇑
  • All tiles viewed once will be kept in the explorer's cache for a few days
  • This application does not record your track
  • Works well on Android with Chrome, Edge & Samsung Internet, a little less well with Firefox & Safari

Layers keys

If you want to use external providers layers, you must acquire free keys and replace them in the html (see source comment)

Architecture

Just include myol.js & myos.css after ol/dist, proj4js & geocoder's js & css.

  • See this example
  • Code & all tiled layers use EPSG:3857 spherical mercator projection

The coding rules are volontary simple & don't follow all openlayers's

  • No JS classes, no jquery, no es6 modules, no nodejs build, no minification, no npm repository, ...
  • Each adaptation is included in a single JS function that you can include separately (check dependencies if any)
  • Feel free to use, modify & share as you want

Files

  • myol.css : full CSS distribution
  • myol.js : full JS distribution
  • src/... : Source files
  • ol/... : Openlayer V6.0.1 (you can use any of openlayers V5.* or V6.*) from Openlayers
  • geocoder/... : Geocoder V4.0.0 from Openlayers geocoder
  • proj4/... : Coordinate transformation software proj4js V2.5.0 from Proj4
  • examples/... : Demos & visual tests
  • gps/... : Off line demo with GPS capabilities

Tested on

  • windows 10 : Edge, FireFox, Chrome, Opera, Brave
  • Android (Samsung) : Samsung Internet, FireFox, Chrome, Brave, DuckDuckGo
  • Linux : FireFox
  • NO SUPPORT ON Microsoft Internet Explorer