Geo-location control that can be used with vector map renderer: a simplified version of the GeoLocationControl implemented in mapbox-gl-js
$ npm install --save map-location-controlvar geoLocationControl = require('map-location-control');
var glc = geoLocationControl({
maxWidth: 150,
unit: 'imperial'
});
map.addControl(glc);MIT © Damian Krzeminski