@parsimap/leaflet-parsimap-tile
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

leaflet-parsimap-tile

A plugin that provided for “leaflet” and able to the MapView to show parsimap raster tiles

NPM JavaScript Style Guide

Screen Shot

Install

The package can be installed through following npm

npm install @parsimap/leaflet-parsimap-tile

or

yarn add @parsimap/leaflet-parsimap-tile

Usage

The CSS file should be placed into the HTML file header.

<link
  href="https://cdn.parsimap.ir/third-party/leaflet/v1.7.1/mapbox-gl.css"
  rel="stylesheet"
/>

The Parsimap tiles will be displayed if the parsiamp-tile plugin is added to the body tag and a valid PMI_MAP_TOKEN is requested to use.

import L from "leaflet";
import "leaflet-parsimap-tile"

const map = new L.Map('map', {
  center: [35.7575, 51.41],
  zoom: 6,
});

L.parsimapTileLayer('parsimap-streets-v11-raster', {
  key: 'PMI_MAP_TOKEN',
}).addTo(map);

License

MIT © Parsimap

/@parsimap/leaflet-parsimap-tile/

    Package Sidebar

    Install

    npm i @parsimap/leaflet-parsimap-tile

    Weekly Downloads

    21

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    8.43 kB

    Total Files

    7

    Last publish

    Collaborators

    • muhamadzolfaghari