Markers On Map
Use highly customizable maps (Google Maps) with multiple custom Markers in your web projects.
Current Version
1.4.0 *
Website and Demo
https://furcan.github.io/Markers-On-Map/
(A) Install & Import
Install
npm
npm i markers-on-map
yarn
yarn add markers-on-map
Import
import MarkersOnMap from "markers-on-map";
(B) Adding to an HTML Document
1- Initialize (Basic)
// Basic usageMarkersOnMap;
2- Run
/** @param1 {string}: Required, Select the element (ID or Class)* @param2 {function}: Optional, A callback function after the map has been created. */MarkersOnMap; // e.g. With a Callback function (v1.4.0 and the next versions)MarkersOnMap;
Remarker
// Use "MarkersOnMap.Remarker()" function to replace all markers to new ones. // Call the function with an array includes new marker objects => MarkersOnMap.Remarker([{...},{...},]); MarkersOnMap;
Initialize (Advanced) + (All Default Options)
// All options with descriptionsMarkersOnMap;
Copyright
Copyright © 2020 Markers On Map
License
MIT license - https://opensource.org/licenses/MIT