Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Util, geoJson, latLngBounds as LlatLngBounds } from 'leaflet';
import { MapService } from 'esri-leaflet';
export var MapServiceProvider = MapService.extend({
options: {
layers: [0],
label: 'Map Service',
bufferRadius: 1000,
maxResults: 5,
formatSuggestion: function (feature) {
return feature.properties[feature.displayFieldName] + ' <small>' + feature.layerName + '</small>';
}
},
initialize: function (options) {
MapService.prototype.initialize.call(this, options);
this._getIdFields();
},
suggestions: function (text, bounds, callback) {