1.0.1 • Published 6 years ago

ol-loupe v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

ol-loupe

Loupe control for openlayers

Installation

npm install ol ol-loupe

Usage

import Map from 'ol/map'
import View from 'ol/view'
import TileLayer from 'ol/layer/tile'
import OSMSource from 'ol/source/osm'
import 'ol/ol.css'

import Loupe from 'ol-loupe'
import 'ol-loupe/style.css' //Or your own

const tileLayer=new TileLayer({
    source: new OSMSource()
})
const map = new Map({
    layers: [tileLayer],
    view:new View({
        center:[0,0],
        zoom:2
    }),
    target:'map'
})
map.addControl(new Loupe())
1.0.1

6 years ago

1.0.0

6 years ago