<br><br>Hi:<br><br>Through the document in the ol&#39;s website,I know that there are so many layers in ol. And Some of them have the inherit chain.<br><br>For example, the <br><br>layer.Layer-&gt;layer.HttpRequest-&gt;layer.Grid-&gt;layer.WMS<br>

<br><br>layer.Grid-&gt;layer.TileCache<br>              -&gt;layer.WMS<br>              -&gt;layer.XYZ<br><br>However, when say inherit,I often think the &quot;polymorphic&quot;,But I do not find it in the source codes.<br>

<br>In my opinion,the class who is inherited should own some not-implemented method which will be override by its sub class.<br><br><br>Suppose,the layer.Layer have a method &quot;draw(xxxx)&quot; which is not implementd,then all its sub-class will override this method,when the map need to re-draw,it call the &#39;draw()&#39; of each layer.<br>

<br>But in ol&#39;s source codes,I did not find anything like this.<br><br>So,I wonder what is the inheritance structure in ol?<br>