dynamic-grids-on-map
v1.0.6
Published
This is a simple project to show dynamic grids on map using leaflet
Downloads
2
Readme
dynamic-grids-on-map
This is a simple project to show dynamic grids on map using leaflet.
Updated README.md
# dynamic-grids-on-map
This is a simple project to show dynamic grids on map using leaflet.
## Installation
To install the package, use [`npm install dynamic-grids-on-map`]
Example Usage
const L = require('leaflet');
const DynamicGrid = require('dynamic-grids-on-map');
const map = L.map('map').setView([51.505, -0.09], 13);
const dynamicGrid = new DynamicGrid({
gridSize: 100,
M_data: yourData,
customIconFun: yourCustomIconFunction
});
dynamicGrid.onAdd(map);
dynamicGrid.addGrids();
You can view an example of implementation on Angular here: https://github.com/zinthawtun/dynamic-grids-on-map-angular-example.