Closed jitendra-kr closed 7 years ago
Lat Long can be passed like '51.06199,4.362622' note the '. for the center if you use static map just remove the center and zoom tags and google will auto search for the best center and zoom for your call. documented here
example:
var params = {
size: '640x640',
maptype: 'roadmap',
markers: [
{
location: LatLong1,
label : '1',
color : 'green',
shadow : true
},
{
location: LatLong2,
label : '2',
color : 'blue',
shadow : true
},
{
location: LatLong3,
label : '3',
color : 'red',
shadow : true
}
],
style: [
{
feature: 'road',
element: 'all',
rules: {
hue: '0x00ff00'
}
}
]
};
Thanks Liamdelee
Hi,
I am working on car tracking application in nodeJs.
How can i pass lat, long instead of address
markers: [ { location: 'C-20/1, Sector-62, Noida, Uttar Pradesh 201301', label : 'S', color : 'green', shadow : true,
}
is there a way use only lat, long instead of (C-20/1, Sector-62, Noida, Uttar Pradesh 201301).