var basemap = new L.TileLayer(baseUrl, {maxZoom: 19, attribution: baseAttribution, subdomains: subdomains, opacity: opacity}); var center = new L.LatLng(0, 0); var map = new L.Map('map', {center: center, zoom: 2, maxZoom: maxZoom, layers: [basemap]}); var popupOpts = { autoPanPadding: new L.Point(5, 50), autoPan: true }; var hits = 0; var total = 0; var filterString; var markers = new L.MarkerClusterGroup(); var dataJson; var typeAheadSource = []; var points = L.geoJson(null, { onEachFeature: function (feature, layer) { var popup = '