With PolarMap.js, you have access to a Leaflet-based API for adding your own Arctic Web Map to your site or application. For basic use cases, a simple API is available. If you need more advanced integration, then the lower-level Leaflet.PolarMap plugin can be used to more tightly integrate custom components or third-party Leaflet plugins. A zip file containing the latest version of PolarMap.js can be downloaded from GitHub under the 'Tags' tab. The source code is online at GitHub. The repository contains instructions on building your own copy from source. PolarMap.js can be used from Node.js by installing the polarmap module from npmjs. You can then require polarmap to include the PolarMap initialization function. Bower compatibility is also available. Once installed with Bower you can include the PolarMap JS and CSS in your web app. Once the requirements are included, you can include the polarmap.css and polarmap.js files in your HTML. PolarMap.js contains two parts: the lower-level Leaflet.PolarMap plugin and the basic PolarMap library. If you are new to PolarMap and Leaflet, take a look at the Basic PolarMap library API first. Detect the user's longitude using HTML5 locate API and adjust the map projection to the closest longitude. If you have a bug fix or enhancement, please fork the PolarMap.js Git repository and submit a Pull Request on GitHub. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 22, 2016 @ 2:11 am