Google Maps API V3 - need help with multiple markers?

Your problem is how you initialized your map_markers array. You probably should be doing the following: var map_markers = 52.951946, 1.018124, 52.955311, 0.987997 Otherwise, with your map_markers you would have had to reference it as follows: var m = map_markersi; var myLatLng = new google.maps. LatLng(m00, m01) Let's break down your map_markers array to help you understand the problem: var map_markers = 52.951946, 1.018124 , 52.955311, 0.987997 ; console.

Log(map_markers0); // 52.951946, 1.018124 Object.prototype.toString. Call(map_markers0); // "object Array" console. Log(map_markers00); // 52.951946 Object.prototype.toString.

Call(map_markers00); // "object Array" console. Log(map_markers000); // 52.951946 Object.prototype.toString. Call(map_markers000); // "object Number Therefore the problem you were having boils down to the fact that the parameters you were passing to the google.maps.LatLng() constructor were an Array instead of a Number.

Your problem is how you initialized your map_markers array. You probably should be doing the following: var map_markers = 52.951946, 1.018124, 52.955311, 0.987997; Otherwise, with your map_markers you would have had to reference it as follows: var m = map_markersi; var myLatLng = new google.maps. LatLng(m00, m01); Let's break down your map_markers array to help you understand the problem: var map_markers = 52.951946, 1.018124 , 52.955311, 0.987997 ; console.

Log(map_markers0); // 52.951946, 1.018124 Object.prototype.toString. Call(map_markers0); // "object Array" console. Log(map_markers00); // 52.951946 Object.prototype.toString.

Call(map_markers00); // "object Array" console. Log(map_markers000); // 52.951946 Object.prototype.toString. Call(map_markers000); // "object Number" Therefore the problem you were having boils down to the fact that the parameters you were passing to the google.maps.LatLng() constructor were an Array instead of a Number.

Thanks, this is an excellently explained answer – Haroldo Jun 24 '10 at 17:23.

Your problem is how you initialized your map_markers array. Var myLatLng = new google.maps. Therefore the problem you were having boils down to the fact that the parameters you were passing to the google.maps.LatLng() constructor were an Array instead of a Number.

Terms of service. Not the answer you're looking for?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions