map-location-control

Geolocation control that can be used with vector map renderer.


Keywords
map-location-control, geolocation, map, vector
License
MIT
Install
npm install map-location-control@0.0.5

Documentation

NPM version Build Status Dependency Status

map-location-control

Geo-location control that can be used with vector map renderer: a simplified version of the GeoLocationControl implemented in mapbox-gl-js

Install

$ npm install --save map-location-control

Usage

var geoLocationControl = require('map-location-control');

var glc = geoLocationControl({
  maxWidth: 150,
  unit: 'imperial'
 });

 map.addControl(glc);

License

MIT © Damian Krzeminski