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

Docs for EPSG:3857 WMS support in Mapbox GL JS #464

Merged
merged 1 commit into from
Jul 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions docs/_generate/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,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 @@ -179,6 +179,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 @@ -241,7 +258,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