<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My first thought here is that you seem to be making things overly complicated. My code for OSM is simply<br>



<br>
</blockquote></div>Phil: Thanks for your attention. In fact, I know I can use the sub domains when create the OSM layer.<div><br></div><div>However I just taken the osm layer as examples. In fact I am trying to add WMTS layers which are served by different server, but the server are depolyed localled, so I use the OSM here.<br>

<div class="gmail_extra"><br></div></div></div>