Enter address in the form of my website and return the position of the address on the map automatically

0

Hello, I have a map, google maps, which marks positions of different places. Generally I would like you to insert the address into the form of my site, the place is marked on the map without having to drag the position on the map, automate positioning on the map.

<div class="col-md-12">
  <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBUMKHFlfDJ5cOq4ZqnaTtwaV99_zcLUSY&callback=initMap"></script><script>functioninitMap(){varmyLatLng={lat:<%[email protected][:latitude]%>,lng:<%[email protected][:longitude]%>};varmap=newgoogle.maps.Map(document.getElementById('map'),{center:myLatLng,scrollwheel:false,zoom:15});varmarker=newgoogle.maps.Marker({map:map,position:myLatLng});};</script><divid="map" style="width: 100%; height: 200px; margin-bottom: 10px;"></div>
 </div>   

This map allows you to drag the point as far as I want but I want you to enter the address on the form and place the dot on the map for the address.

Thank you for your attention!

    
asked by anonymous 01.02.2017 / 14:51

0 answers