Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

Commit

Permalink
Docs for EPSG:3857 WMS support in Mapbox GL JS (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel authored and tmcw committed Jul 22, 2016
1 parent 9a20405 commit 1097f25
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions docs/_generate/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h2><a href='#sources' title='link to sources'>Sources</a></h2>
<p>
Tiled sources (vector and raster) must specify
their details in terms of the <a href="https://github.com/mapbox/tilejson-spec">TileJSON specification</a>.
This can be done in two ways:
This can be done in several ways:
</p>
<ul>
<li>
Expand Down Expand Up @@ -174,6 +174,23 @@ <h2><a href='#sources' title='link to sources'>Sources</a></h2>
{% endhighlight %}
</div>
</li>
<li>
By providing a url to a WMS server that supports
EPSG:3857 (or EPSG:900913) as a source of tiled data.
The server url should contain a <code>"{bbox-epsg-3857}"</code>
replacement token to supply the <code>bbox</code> parameter.
<em>(This feature is currently supported only in Mapbox GL JS.)</em>
{% highlight json%}
"wms-imagery": {
"type": "raster",
"tiles": [
'http://a.example.com/wms?bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&width=256&height=256&layers=example'
],
"tileSize": 256
}
{% endhighlight %}
</li>

</ul>

<div class='space-bottom4 fill-white keyline-all'>
Expand Down Expand Up @@ -272,7 +289,7 @@ <h3 class='space-bottom1'><a href='#sources-geojson' title='link to geojson'>geo
</div>
<p>
This example of a GeoJSON source refers to an external GeoJSON document via its URL. The
GeoJSON document must be on the same domain or accessible using
GeoJSON document must be on the same domain or accessible using
<a href='http://enable-cors.org/'>CORS</a>.
</p>
<div class='space-bottom1 clearfix'>
Expand Down

0 comments on commit 1097f25

Please sign in to comment.