I have an ajax call that returns lat
and lng
data, how could i pass that data to Google Maps js that's another file?
$.ajax({
url: url,
dataType: 'json',
type: 'post',
contentType: 'application/json',
data: JSON.stringify( {
mydata
} ),
success: function(data){
>>>>this data response, send it to the another js file<<<<<<
}
and how can i recive that data from the GM js