We are used to see geocoders with address input field and [Search] button.
We can discard the button and use 'onchange' event of the input field instead.
It works quite well. Just type in the address and click anywhere on the page. Well not anywhere because click on map is preventDefaulted. Hitting [Enter] key works too. @M$: please don't file a patent application.
Text input field can also be used for showing how the geocoder actually understood the address.
Full example.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment