Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this mean? (Google Maps API)

Tags:

google-maps

i've got this error message in the console. can anyone explain why? and the page is running as it should be.

js?key=MyAPIKey&v=3.exp&libraries=places,drawing,geometry:32 InvalidValueError: not an instance of HTMLInputElement_.ab @ js?key=MyAPIKey&v=3.exp&libraries=places,drawing,geometry:32
like image 442
New to Programming Avatar asked Feb 09 '16 04:02

New to Programming


1 Answers

InvalidValueError: not an instance of `HTMLInputElement`

That's mean you have not set proper id of your html input element. Google API not able to find that control in your html code. Because of wrong id of input element.

If you using textarea then it will not work because google maps autocomplete now supports only window.HTMLInputElement(input tags)

For more details Please Check this Link

You can also find examples here of Google Map API

like image 114
Jaimin Soni Avatar answered Oct 03 '22 22:10

Jaimin Soni