UNPKG

heli-agri

Version:

HeliAgri 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. OpenLayers has been developed to further the use of geographic infor

35 lines (28 loc) 942 B
# Heli-Agri-PMB [Heli-Agri](https://heliware.co.in/) 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](https://www.npmjs.com/package/heli-agri): ``` npm install heli-agri ``` Import just what you need for your application: ```js 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 }) }); ```