Sha256: d2c06b8f07a3b605d3ab2da60a7597eb0ae672bf86897284bb78e4d68dc79302
Contents?: true
Size: 999 Bytes
Versions: 8
Compression:
Stored size: 999 Bytes
Contents
//= require leaflet //= require leaflet-iiif //= require native.history //= require readmore.min !function(global) { 'use strict'; /** * Convert bounding box string to Leaflet LatLngBounds. * @param {String} bbox Space-separated string of sw-lng sw-lat ne-lng ne-lat * @return {L.LatLngBounds} Converted Leaflet LatLngBounds object */ L.bboxToBounds = function(bbox) { bbox = bbox.split(' '); if (bbox.length === 4) { return L.latLngBounds([[bbox[1], bbox[0]], [bbox[3], bbox[2]]]); } else { return null; } }; var GeoBlacklight = L.Class.extend({ statics: { __version__: '0.0.1', debounce: function(fn, delay) { var timeout = null; return function() { var args = arguments, _this = this; clearTimeout(timeout); timeout = setTimeout(function() { fn.apply(_this, args); }, delay); }; } } }); global.GeoBlacklight = GeoBlacklight; }(this);
Version data entries
8 entries across 8 versions & 1 rubygems