I am new to Google maps api v3. In the Google maps official tutorial, some of the sample code using
new google.maps.Marker({
map: map //Map option
});
or
new google.maps.Marker({
//some options here
}).setMap(map);
What are the difference between each other?
Off the top of head:
setMap()setMap()setMap(null)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With