<div dir="ltr">Madhav, <div><br></div><div>I pushed a fix here: <a href="https://github.com/OpenGeoscience/geojs/pull/463">https://github.com/OpenGeoscience/geojs/pull/463</a></div><div><br></div><div>You can merge locally in your geojs checkout and then run </div><div>> grunt</div><div><br></div><div>---</div><div><br></div><div>And this is how you would do it for cartodb tiles. </div><div><div>map.createLayer(</div><div>    'osm', {'tileUrl': 'http://{s}.<a href="http://api.cartocdn.com/base-midnight/">api.cartocdn.com/base-midnight/</a><zoom>/<x>/<y>.png'}</div><div>  );</div></div><div><br></div><div>- Aashish</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 3, 2015 at 8:28 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">Madhav,<div><br></div><div>Sorry, the {s} part is not handled right now for parsing. However, it would be easy to add. I am going to push a a fix for it. </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>- Aashish</div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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></span><div><div class="h5"><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><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>
<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)">'&copy; <a href="<a href="http://www.openstreetmap.org/copyright" target="_blank">http://www.openstreetmap.org/copyright</a>">OpenStreetMap</a> contributors, &copy; <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></div></div><div><div class="h5"><br><br clear="all"><div><br></div>-- <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>
</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>