title: JSF PrimeFaces 6.1 p:gmap does not render polylines using Google Maps
body: <p>For a project requirement, I need to render polylines using the primefaces 6.1 p:gmap tag but only the map gets rendered. Here is my XHTML file:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://xmlns.jcp.org/jsf/html"
        xmlns:p="http://primefaces.org/ui" xmlns:f="http://xmlns.jcp.org/jsf/core"&gt;
  &lt;h:head&gt;
      &lt;title&gt;Facelet Title&lt;/title&gt;
      &lt;script src="https://maps.google.com/maps/api/js?key=SOME_KEY" defer="defer"
              type="text/javascript"&gt;&lt;/script&gt;
  &lt;h:outputScript library="primefaces" name="gmap/gmap.js" /&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;f:view contentType="text/html"&gt;
          &lt;h:form id="form1"&gt;
              &lt;p:gmap center="36.883707, 30.689216" zoom="15" type="MAP" style="width:900px;height:800px;"
                      model="#{mapBean.model}" id="myMap"/&gt;
          &lt;/h:form&gt;
      &lt;/f:view&gt;
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and here is my Bean</p>
  
  <pre><code>import org.primefaces.model.map.DefaultMapModel;
  import org.primefaces.model.map.LatLng;
  import org.primefaces.model.map.MapModel;
  import org.primefaces.model.map.Polyline;
  
  import javax.annotation.PostConstruct;
  import javax.faces.bean.ManagedBean;
  import java.io.Serializable;
  
  @RequestScoped
  @ManagedBean(name = "mapBean")
  public class MapBean implements Serializable {
  
      private MapModel model;
  
      @PostConstruct
      public void MapBean() {
          model = new DefaultMapModel();
          Polyline polyline = new Polyline();
          polyline.getPaths().add(new LatLng(36.879466, 30.667648));
          polyline.getPaths().add(new LatLng(36.883707, 30.689216));
          polyline.getPaths().add(new LatLng(36.879703, 30.706707));
          polyline.getPaths().add(new LatLng(36.885233, 30.702323));
  
          polyline.setStrokeWeight(8);
          polyline.setStrokeColor("#FF9900");
          polyline.setStrokeOpacity(0.9);
  
          model.addOverlay(polyline);
      }
  
      public MapModel getModel() {
          return this.model;
      }
  }
  </code></pre>
  
  <p>The polylines added to the MapBean model do not get displayed by the p:gmap attribute. Only the map gets displayed. I am running primefaces 6.1 with Mojarra 2.2.11 using Spring Boot 1.2.3. Any ideas / pointers to anything I may be missing or is it a genuine issue with p:gmap and polyline rendering ? I have also looked in the Chrome Javascript console and there is no error displayed.</p>