<div dir="ltr">Make sure to pass the baseUrl argument to osmLayer as well (see below).<div><br></div><div><table class="" style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:14.5600004196167px"><tbody><tr><td id="LC60" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"><br class=""> <span class="" style="color:rgb(167,29,93)">if</span> (arg <span class="" style="color:rgb(167,29,93)">&&</span> arg.baseUrl <span class="" style="color:rgb(167,29,93)">!==</span> <span class="" style="color:rgb(0,134,179)">undefined</span>) {</td></tr><tr><td id="L61" class="" style="padding:0px 10px;width:50.4000015258789px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC61" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> m_baseUrl <span class="" style="color:rgb(167,29,93)">=</span> arg.baseUrl;</td></tr><tr><td id="L62" class="" style="padding:0px 10px;width:50.4000015258789px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC62" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> }</td></tr></tbody></table></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 28, 2015 at 6:51 PM, Madhav Sharan <span dir="ltr"><<a href="mailto:msharan@usc.edu" target="_blank">msharan@usc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<p><span>HI Aashish, Using tileUrl API I am able to handle "</span><zoom>/<x>/<y> " part but this was also working with "baseUrl". I am trying to focus the <span style="background-color:rgb(0,255,255)">{s}</span> part, in other map APIs {s} gets replaced with a,b,c etc..</p><p><span><span> </span><span> </span>tileUrl : </span>'http://<span style="background-color:rgb(0,255,255)">{s}</span>.<a href="http://basemaps.cartocdn.com/light_all/" target="_blank">basemaps.cartocdn.com/light_all/</a><zoom>/<x>/<y>.png'</p></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">--</div><div dir="ltr"><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Madhav Sharan</div><div><div><br></div></div></font></span></div></div></div></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Wed, Oct 28, 2015 at 6:15 AM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is. Please have a look at <a href="https://github.com/OpenGeoscience/geojs/blob/master/src/core/osmLayer.js" target="_blank">https://github.com/OpenGeoscience/geojs/blob/master/src/core/osmLayer.js</a> line 167 (tileUrl) API. <div><br></div><div>Let me know how it goes. </div><div><br></div><div>- Aashish</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Wed, Oct 28, 2015 at 5:04 AM, Madhav Sharan <span dir="ltr"><<a href="mailto:msharan@usc.edu" target="_blank">msharan@usc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Dan/Aashish,</div><div><br></div><div>I was trying different base maps for GeoParser and most of the tile layers I came across support multiple subdomains. I tried using {s} notation in GeoJS too but that didn't worked out so I hardcoded it to one of the domains. Just curious if there is an alternative to achieve it?</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:18px;border:0px;font-stretch:inherit;font-size:15px;line-height:19px;font-family:inherit;vertical-align:baseline;overflow:auto;color:rgb(102,102,102)"><code style="margin:18px 0px;padding:0px;border:none;font-stretch:normal;font-size:13px;line-height:normal;font-family:Consolas,Menlo,Courier,monospace;vertical-align:baseline;border-radius:3px"><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(163,80,100)"><span style="background-color:rgb(255,255,0)">http://</span><span style="background-color:rgb(0,255,255)">a</span><span style="background-color:rgb(255,255,0)">.<a href="http://basemaps.cartocdn.com/light_all" target="_blank">basemaps.cartocdn.com/light_all</a></span></span></code></pre></div><pre style="margin-top:0px;margin-bottom:0px;padding:18px;border:0px;font-stretch:inherit;font-size:15px;line-height:19px;font-family:inherit;vertical-align:baseline;overflow:auto;color:rgb(102,102,102)"><code style="margin:18px 0px;padding:0px;border:none;font-stretch:normal;font-size:13px;line-height:normal;font-family:Consolas,Menlo,Courier,monospace;vertical-align:baseline;border-radius:3px"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34)">From <a href="https://cartodb.com/basemaps/" target="_blank">https://cartodb.com/basemaps/</a> :</span></code></pre><pre style="margin-top:0px;margin-bottom:0px;padding:18px;border:0px;font-stretch:inherit;font-size:15px;line-height:19px;font-family:inherit;vertical-align:baseline;overflow:auto;color:rgb(102,102,102)"><code style="margin:18px 0px;padding:0px;border:none;font-stretch:normal;font-size:13px;line-height:normal;font-family:Consolas,Menlo,Courier,monospace;vertical-align:baseline;border-radius:3px"><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:700;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(57,125,186);background-color:rgb(249,249,249)">new</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">ol</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">.</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">layer</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">.</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">Tile</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">({</span><span style="background-color:rgb(249,249,249)">
</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:teal;background-color:rgb(249,249,249)">source</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">:</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:700;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(57,125,186);background-color:rgb(249,249,249)">new</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">ol</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">.</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">source</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">.</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">XYZ</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">({</span><span style="background-color:rgb(249,249,249)">
</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:teal;background-color:rgb(249,249,249)">url</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">:</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(163,80,100)"><span style="background-color:rgb(249,249,249)">'</span><span style="background-color:rgb(255,255,0)">http://</span><span style="background-color:rgb(0,255,255)">{s}</span><span style="background-color:rgb(255,255,0)">.<a href="http://basemaps.cartocdn.com/light_all/%7Bz%7D/%7Bx%7D/%7By%7D.png" target="_blank">basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png</a>'</span></span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">,</span><span style="background-color:rgb(249,249,249)">
</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:teal;background-color:rgb(249,249,249)">attributions</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">:</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">[</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:700;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(57,125,186);background-color:rgb(249,249,249)">new</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">ol</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">.</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">Attribution</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">({</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:teal;background-color:rgb(249,249,249)">html</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">:</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">[</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(163,80,100);background-color:rgb(249,249,249)">'© <a href="<a href="http://www.openstreetmap.org/copyright" target="_blank">http://www.openstreetmap.org/copyright</a>">OpenStreetMap</a> contributors, © <a href="<a href="http://cartodb.com/attributions" target="_blank">http://cartodb.com/attributions</a>">CartoDB</a>'</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">]</span><span style="background-color:rgb(249,249,249)"> </span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">})]</span><span style="background-color:rgb(249,249,249)">
</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">})</span><span style="background-color:rgb(249,249,249)">
</span><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:rgb(249,249,249)">})</span></code></pre><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">--</div><div dir="ltr"><div>Thanks</div><span><font color="#888888"><div>Madhav Sharan</div><div><div><br></div></div></font></span></div></div></div></div></div></div></div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>