I am new to JavaScript and the Google Maps API. Is there a way to use the values of the variables latitude and longitude for coordinates in google.maps.LatLng? I cannot get this to work as is. Thanks!
var latitude = 46.000000
var longitude = -124.000000
myLocation = new google.maps.LatLng(latitude, longitude);
var marker = new google.maps.Marker({
position: myLocation,
map: map,
title:"Here I am!"
});
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/Gt-75r8dpKIJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.