how to display label in google.maps.Polygon()????

34 views
Skip to first unread message

Sanjith

unread,
May 29, 2017, 1:50:06 AM5/29/17
to Google Maps JavaScript API v3
hi,

I am trying to display label in google.maps.Polygon using google api v3. my code are mention below, buts label is not visible. how can i solve this issue???


var polygonData = new google.maps.Polygon({
           paths : stringData,
           strokeColor : 'red',
           strokeOpacity : 1,
           strokeWeight : 2,
           fillColor : '#FFFFFF',
           fillOpacity : 0.2,
           label: 'Country Name'
         });
polygonData
.setMap(map);


 
Reply all
Reply to author
Forward
0 new messages