kothic / kothic-leaflet

Leaflet plugin for rendering vector layer using Kothic

Repository from Github https://github.comkothic/kothic-leafletRepository from Github https://github.comkothic/kothic-leaflet

kothic-leaflet

Leaflet plugin for rendering vector layer using kothic-node

Warning: kothic-node is a subject of active (but very slow) development and it's not intended for production use yet.

Usage

  1. Compile kothic-leaflet to a single file
npm i
npm run browserify
  1. Include dist/kothic.js to your html page
<script src="kothic.js"></script>
  1. Use it as an usual Leaflet layer
	<script type="text/javascript">
  var tilesUrl = 'http://localhost:8080/basemap/{z}/{x}/{y}.json';

	var map = new L.Map('map', {
		center: new L.LatLng(54, 83),
		zoom: 16,
		fadeAnimation: false
	});

  new L.TileLayer.Kothic(tilesUrl, {
  	minZoom: 12,
		css: document.getElementById("mapcss").value
  }).addTo(map);

About

Leaflet plugin for rendering vector layer using Kothic

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 99.2%Language:HTML 0.7%Language:CSS 0.1%