Skip to content

Commit

Permalink
Merge pull request #51 from jmitz/master
Browse files Browse the repository at this point in the history
Added Title text of 'Location Search' to input element.
  • Loading branch information
patrickarlt committed Dec 6, 2014
2 parents 60a11b8 + 22230a1 commit 30877ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controls/Geosearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ EsriLeafletGeocoding.Controls.Geosearch = L.Control.extend({
allowMultipleResults: true,
useArcgisWorldGeocoder: true,
providers: [],
placeholder: 'Search for places or addresses'
placeholder: 'Search for places or addresses',
title: 'Location Search'
},

initialize: function (options) {
Expand Down Expand Up @@ -228,6 +229,7 @@ EsriLeafletGeocoding.Controls.Geosearch = L.Control.extend({

this._wrapper = L.DomUtil.create('div', 'geocoder-control ' + ((this.options.expanded) ? ' ' + 'geocoder-control-expanded' : ''));
this._input = L.DomUtil.create('input', 'geocoder-control-input leaflet-bar', this._wrapper);
this._input.title = this.options.title;

this._suggestions = L.DomUtil.create('div', 'geocoder-control-suggestions leaflet-bar', this._wrapper);

Expand Down

0 comments on commit 30877ac

Please sign in to comment.