I have got a drop down of State and cities . Upon selection of a State , corresponding cities will be displayed and once clicked on Go button , i am showning that particular city uisng Google Map.
Could you please let me know if how is it posible to show that city in a different color ?
I was trying to follow this website , in which the author shows the city in red color .
http://www.encodedna.com/2014/05/drawing-circles-with-google-maps-javascript-api.htm
But when i tried to represent the same its not working in fiddle
The second option i see that , i need to use Polygon to do so , but to so how can i get the area , because every example i see the area coordinates are hardcoded as shown here
var triangleCoords = [
new google.maps.LatLng(25.774252, -80.190262),
new google.maps.LatLng(18.466465, -66.118292),
new google.maps.LatLng(32.321384, -64.75737),
new google.maps.LatLng(25.774252, -80.190262)
];
https://developers.google.com/maps/documentation/javascript/examples/polygon-simple
Could you please let em know how to approach this requirement .