Skip to content

emikhalev/leaflet-2gis

Repository files navigation

Leaflet 2GIS

 

This plugin adds 2GIS support to the LeafletJS.

Requirements

  • Leaflet 0.7.3 or newer
  • 2GIS api library (see example)

Demo

See demo

Examples

Usage

var map = new L.Map("map", {
    center: new L.LatLng(54.99014, 73.365319),
    zoom: 10,
    zoomAnimation: false,
    zoomDelta: 1,
    attributionControl: false
});

var dgis = new L.DGis();
map.addLayer(dgis);

License

Leaflet 2GIS is free software, and may be redistributed under the MIT-LICENSE.