javascript - Is it possible to paint any country with any color in google maps by country name? -


i want paint country color , cover in google maps. find way draw polygon coordinates:

    var mypolygon;     var polycoords = [       new google.maps.latlng(40.96985437850034, 45.871337890625),         new google.maps.latlng(40.936664923030236, 49.00244140625),         new google.maps.latlng(39.76454453848205, 47.50830078125)     ];     mypolygon = new google.maps.polygon({         paths: polycoords,         strokecolor: "#ff0000",         strokeopacity: 1,         strokeweight: 2,         fillcolor: "#ff0000",         fillopacity: 1     });     mypolygon.setmap(map); 

it works, not possible (or difficult) find border coordinates of country. asume possible. approximately, not exactly.

is there way cover country color it's name? example, our country - azerbaijan: "az".


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -