Draggable and Record Marker Location Google Map Api
Draggable and Record Marker Location Google Map Api here I have a map, in my map, I want to make a marker there can be draggable. When i drag and drop the marker i want it make a record or just change my value of my input. here my script : var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/'; var icons = { parking: { icon: iconBase + 'parking_lot_maps.png' }, library: { icon: iconBase + 'library_maps.png' }, info: { icon: iconBase + 'info-i_maps.png' } }; var locations = [ ['location 1', -33.80010128657071, 151.28747820854187, 2,"info"], ['location 2', -33.950198, 151.259302, 1,"info"] ]; var map = new google.maps.Map(document.getElementById('map'), { zoom: 11, center: new google.maps.LatLng(-33.92, 151.28747820854187), mapTypeId: google.maps.MapTypeId.ROADMAP }); var infowindow = new google.maps.InfoWindow(); var marker, i;...
