Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new methods to disable/enable the geosearch control programmatically #121

Merged
merged 1 commit into from
Mar 14, 2016
Merged

new methods to disable/enable the geosearch control programmatically #121

merged 1 commit into from
Mar 14, 2016

Conversation

jgravois
Copy link
Contributor

@jgravois jgravois commented Feb 9, 2016

the idea for this PR came from a request for assistance on gis.stackexchange

the new L.esri.Geocoding.geosearch.disable() method removes the click event handler and grays out the control.

changes:

  1. use a named private function when hooking up the event listener to determine what happens when a user clicks on the wrapper div (so that L.domEvent.removeListener() can be used later)
  2. alter the CSS to gray out the control when the disable method is called and ensure the text <input> can't receive focus

jgravois added a commit that referenced this pull request Mar 14, 2016
new methods to disable/enable the geosearch control programmatically
@jgravois jgravois merged commit 101b8ce into Esri:master Mar 14, 2016
@jgravois jgravois deleted the disable branch March 14, 2016 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant