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

ol-extent

v2.0.1

Published

a JavaScript library for openlayers extent

Downloads

185

Readme

ol-extent

a JavaScript library for openlayers extent, It is important to note that the current version has changed a lot You have to look at the examples or look at the relevant documents.

Build Status JS gzip size Npm package GitHub stars GitHub license

build

Important: The /dist folder of Github repositories will not be updated until the new version is released. If you want to use the latest source on Github, you need to build it yourself.


git clone https://github.com/sakitam-fdd/ol-extent.git
npm install // or yarn
npm run dev
npm run build

Install

CDN

current you can use

// jsdelivr (It is best to lock the version number for cache reasons)
https://cdn.jsdelivr.net/npm/ol-extent/dist/ol-extent.js
https://cdn.jsdelivr.net/npm/ol-extent/dist/ol-extent.css
https://cdn.jsdelivr.net/npm/ol-extent/dist/ol-extent.min.js
https://cdn.jsdelivr.net/npm/ol-extent/dist/ol-extent.min.css
// npm
https://unpkg.com/ol-extent/dist/ol-extent.js
https://unpkg.com/ol-extent/dist/ol-extent.css
https://unpkg.com/ol-extent/dist/ol-extent.min.js
https://unpkg.com/ol-extent/dist/ol-extent.min.css

NPM

npm install ol-extent --save
import ole 'ol-extent'

Examples

see examples folder

extent

Control

| control | introduction | doc | | --- | --- | --- | | ZoomMenu | zoom control | ZoomMenu | | ContextMenu | context menu control | ContextMenu | | CompareLayer | layer compare control | CompareLayer | | RotateControl | Rotate control | RotateControl | | Loading | loading control | Loading | | ZoomSlider | zoom and slider control | ZoomSlider | | FullScreen | fullscreen control | FullScreen | | LayerSwitcher | Layer switcher control | LayerSwitcher | | ScaleLine | ScaleLine control | ScaleLine | | MousePosition | Mouse position display control | MousePosition | | OverviewMap | OverviewMap control | OverviewMap |

Interaction

| Interaction | introduction | doc | | --- | --- | --- | | MeasureTool | measure tool | MeasureTool | | FreeHandCircle | Free circle (mainly for peripheral search) | FreeHandCircle | | LayerMagnify | Map magnifying mirror function | LayerMagnify | | layerSpyglass | Layer filter function | layerSpyglass |

Layer

| name | introduction | doc | | --- | --- | --- | | CanvasLayer | The extended canvas layer based on Image layer can be used to extend the other custom rendering layers | CanvasLayer | | DozensLayer | canvas layer used to render large amounts of data | DozensLayer |

Source

| name | introduction | doc | | --- | --- | --- | | Baidu | bmap source | Baidu | | Gaode | amap source | Gaode | | Google | goolge source | Google |

Overlay

| name | introduction | doc | | --- | --- | --- | | Popover | Popover (support mark and minimization) | Popover |

Tools

| tool | introduction | doc | | --- | --- | --- | | StyleFactory | Style processing tools (parse JSON storage style information) | StyleFactory | | layerUtils | Layer processing tool (related layer operation tool) | layerUtils | | utils | dom event and other tools | utils |

Resources

changelog

detail