1.1.1 • Published 4 months ago
heli-agri v1.1.1
Heli-Agri-PMB
Heli-Agri is a high-performance, feature-packed library for creating interactive maps on the web. It can display map tiles, vector data and markers loaded from any source on any web page. Heli-Agri has been developed to further the use of geographic information of all kinds.
Getting Started
Install the heli-agri
package:
npm install heli-agri
Import just what you need for your application:
import Map from 'heli-agri/dist/Map';
import View from 'heli-agri/dist/View';
import TileLayer from 'heli-agri/dist/layer/Tile';
import XYZ from 'heli-agri/dist/source/XYZ';
new Map({
target: 'map',
layers: [
new TileLayer({
source: new XYZ({
url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'
})
})
],
view: new View({
center: [0, 0],
zoom: 2
})
});