/****code to get map label***/
var bounds = new google.maps.LatLngBounds();

    
      var multi = feature.getGeometry().getArray();
      for (var k = 0; k < multi.length; k++) {
        var polys = multi[k].getArray();
        for (var i = 0; i < polys.length; i++) {
          for (var j = 0; j < polys[i].getLength(); j++) {
            bounds.extend(polys[i].getAt(j));
          }
        }
      }
	
//alert(bounds.getCenter());
var newcenter=bounds.getCenter();
/*******infobox********/
let name = feature.getProperty('name');//Gambela
if (typeof name == "undefined") name= feature.getProperty('name_1');
var riyadh = new google.maps.LatLng(24.375112, 44.912084);
var labelText = name;
var myOptions = {
			 content: labelText
			,boxStyle: {
			   border: "1px solid black"
			  ,textAlign: "center"
			  ,fontSize: "9pt"
			  ,background: "white"
			  ,width: "80px"
			  ,opacity: 0.7
			 }
			,disableAutoPan: true
			,pixelOffset: new google.maps.Size(-25, 0)
			,position: newcenter
			//,position: place.geometry.location,
			,closeBoxURL: ""
			,isHidden: false
			,pane: "floatPane"
			,enableEventPropagation: true
		};
		var ibLabel = new InfoBox(myOptions);
		ibLabel.open(map);
/*******end infobox*****/
/*******end code to get map label******/