Détail du package

ol-extent

sakitam-fdd82MIT2.0.1

a JavaScript library for openlayers extent

openlayers, javascript, webpack, es6

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

changelog

2.0.1 (2018.3.25)

  • test GeoFence

2.0.0 (2018.3.14)

  • break change.

1.1.4 (2017.12.26)

  • 锁定相关包版本,解决observable失效问题。
  • 暂时删除mapbox样式扩展

1.1.3 (2017.10.16)

  • 修复投影转换后比例尺单位错误问题。
  • 修复底图切换bug。
  • 添加鼠标坐标拾取。
  • 添加鹰眼控件。

1.1.2 (2017.10.11)

  • 添加比例尺控件,修复图层获取bug。

1.1.1 (2017.09.20)

  • 添加rotate控件(仿百度)

1.1.0 (2017.09.19)

  • 添加zoom和fullscreen控件
  • 修改底图切换缺陷
  • 修复图层工具bug

1.0.1 (2017.09.13)

  • 测试3D渲染模式
  • 测试地理围栏功能

1.0.0 (2017.08.30-09.10)

  • 添加打印功能(包含图片输出和pdf输出)
  • 添加气泡功能(支持最小化,标记和拖动,关闭)
  • 添加百度,高德,谷歌底图支持
  • 添加样式工厂(根据json数据解析ol样式)
  • 添加测量工具(支持三种测量方式六种测量模式)
  • 添加freehandle工具(主要用于周边搜索)
  • 添加图层切换控件
  • 添加右键菜单功能