1.0.9 • Published 2 years ago

@parsimap/leaflet-parsimap-tile v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago