How to draw my stored polygon from database onto the google map
<p>For angular google maps I want it possible for me to draw my stored polygon array of markers onto the map.</p>

<p>The tech I'm using is: Angular version 1 with JavaScript, using an angular directive and templateUrl.</p>

<p><strong>This is my html directive template:</strong></p>

<pre><code>&lt;ui-gmap-google-map center="config.map.center" zoom="config.map.zoom" options="config.map.options" events="config.map.events" draggable="true"&gt;

        &lt;ui-gmap-polygon path="compatiblePolygon" stroke="polygonConfig.stroke" fill="polygonConfig.fill" fit="true" static="true" visible="polygonConfig.visible" editable="polygonConfig.editable" draggable="polygonConfig.draggable" clickable="true" events="polygonConfig.events"&gt;
        &lt;/ui-gmap-polygon&gt;

        &lt;ui-gmap-markers models="compatiblePoints" coords="'self'" idKey="'id'"
            options="pointsConfig.options"
            clickable="true"&gt;
        &lt;/ui-gmap-markers&gt;

        &lt;ui-gmap-drawing-manager options="config.drawing.options" static="true" control="drawingManagerControl" events="config.drawing.events"&gt;&lt;/ui-gmap-drawing-manager&gt;

    &lt;/ui-gmap-google-map&gt;
</code></pre>