Answer the question
In order to leave comments, you need to log in
How to remove parentheses from the result of a function?
Good evening.
We have a fragment of a function that determines the latitude and longitude on google maps
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(49.053676508106875,33.423500061035156),
zoom: 12,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
google.maps.event.addListener(map, "click", function(event) {
GetLocalWeather();
if (markersArray) {
for (i in markersArray) {
markersArray[i].setMap(null);
}
}
placeMarker(event.latLng);
var query= event.latLng;
Answer the question
In order to leave comments, you need to log in
If you look at the Google Maps Javascript API , then the most correct thing would bevar query = event.latLng.toUrlValue(15);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question