You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divstyle="break-before: page; page-break-before: always;"></div><h2id="using-with-maplibre"><aclass="header" href="#using-with-maplibre">Using with MapLibre</a></h2>
1119
-
<p><ahref="https://maplibre.org/projects/maplibre-gl-js/">MapLibre</a> is an Open-source JavaScript library for showing maps on a website. MapLibre can accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and applies <ahref="https://maplibre.org/maplibre-gl-js-docs/style-spec/">a style</a> to them to draw a map using Web GL.</p>
1120
-
<p>You can add a layer to the map and specify Martin <ahref="https://github.com/mapbox/tilejson-spec">TileJSON</a> endpoint as a vector source URL. You should also specify a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it is <code>{table_name}</code> by default.</p>
1119
+
<p><ahref="https://maplibre.org/maplibre-gl-js/docs/">MapLibre</a> is an Open-source JavaScript library for showing maps on a
1120
+
website. MapLibre can accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and
1121
+
applies <ahref="https://maplibre.org/maplibre-style-spec/">a style</a> to them to draw a map using Web GL.</p>
1122
+
<p>You can add a layer to the map and specify Martin <ahref="https://github.com/mapbox/tilejson-spec">TileJSON</a> endpoint as a
1123
+
vector source URL. You should also specify a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it
<p>You can also combine multiple sources into one source with <ahref="sources-composite.html">Composite Sources</a>. Each source in a composite source can be accessed with its <code>{source_name}</code> as a <code>source-layer</code> property.</p>
1152
+
<p>You can also combine multiple sources into one source with <ahref="sources-composite.html">Composite Sources</a>. Each source in a
1153
+
composite source can be accessed with its <code>{source_name}</code> as a <code>source-layer</code> property.</p>
<divstyle="break-before: page; page-break-before: always;"></div><h2id="using-with-mapbox"><aclass="header" href="#using-with-mapbox">Using with Mapbox</a></h2>
1215
-
<p><ahref="https://github.com/mapbox/mapbox-gl-js">Mapbox GL JS</a> is a JavaScript library for interactive, customizable vector maps on the web. Mapbox GL JS v1.x was open source, and it was forked as MapLibre, so using Martin with Mapbox is similar to MapLibre described <ahref="using-with-maplibre.html">here</a>. Mapbox GL JS can accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and applies <ahref="https://docs.mapbox.com/mapbox-gl-js/style-spec/">a style</a> to them to draw a map using Web GL.</p>
1216
-
<p>You can add a layer to the map and specify Martin TileJSON endpoint as a vector source URL. You should also specify a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it is <code>{table_name}</code> by default.</p>
1220
+
<p><ahref="https://github.com/mapbox/mapbox-gl-js">Mapbox GL JS</a> is a JavaScript library for interactive, customizable vector maps
1221
+
on the web. Mapbox GL JS v1.x was open source, and it was forked as MapLibre, so using Martin with Mapbox is similar to
1222
+
MapLibre described <ahref="using-with-maplibre.html">here</a>. Mapbox GL JS can
1223
+
accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and
1224
+
applies <ahref="https://maplibre.org/maplibre-style-spec/">a style</a> to them to draw a map using Web GL.</p>
1225
+
<p>You can add a layer to the map and specify Martin TileJSON endpoint as a vector source URL. You should also specify
1226
+
a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it is <code>{table_name}</code> by default.</p>
1217
1227
<pre><codeclass="language-js">map.addLayer({
1218
-
id: 'points',
1219
-
type: 'circle',
1220
-
source: {
1221
-
type: 'vector',
1222
-
url: 'http://localhost:3000/points'
1223
-
},
1224
-
'source-layer': 'points',
1225
-
paint: {
1226
-
'circle-color': 'red'
1227
-
}
1228
+
id: 'points',
1229
+
type: 'circle',
1230
+
source: {
1231
+
type: 'vector',
1232
+
url: 'http://localhost:3000/points'
1233
+
},
1234
+
'source-layer': 'points',
1235
+
paint: {
1236
+
'circle-color': 'red'
1237
+
}
1228
1238
});
1229
1239
</code></pre>
1230
1240
<divstyle="break-before: page; page-break-before: always;"></div><h2id="using-with-openlayers"><aclass="header" href="#using-with-openlayers">Using with OpenLayers</a></h2>
Copy file name to clipboardexpand all lines: using-with-mapbox.html
+17-12
Original file line number
Diff line number
Diff line change
@@ -180,19 +180,24 @@ <h1 class="menu-title">Martin Tile Server Documentation</h1>
180
180
<divid="content" class="content">
181
181
<main>
182
182
<h2id="using-with-mapbox"><aclass="header" href="#using-with-mapbox">Using with Mapbox</a></h2>
183
-
<p><ahref="https://github.com/mapbox/mapbox-gl-js">Mapbox GL JS</a> is a JavaScript library for interactive, customizable vector maps on the web. Mapbox GL JS v1.x was open source, and it was forked as MapLibre, so using Martin with Mapbox is similar to MapLibre described <ahref="using-with-maplibre.html">here</a>. Mapbox GL JS can accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and applies <ahref="https://docs.mapbox.com/mapbox-gl-js/style-spec/">a style</a> to them to draw a map using Web GL.</p>
184
-
<p>You can add a layer to the map and specify Martin TileJSON endpoint as a vector source URL. You should also specify a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it is <code>{table_name}</code> by default.</p>
183
+
<p><ahref="https://github.com/mapbox/mapbox-gl-js">Mapbox GL JS</a> is a JavaScript library for interactive, customizable vector maps
184
+
on the web. Mapbox GL JS v1.x was open source, and it was forked as MapLibre, so using Martin with Mapbox is similar to
185
+
MapLibre described <ahref="using-with-maplibre.html">here</a>. Mapbox GL JS can
186
+
accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and
187
+
applies <ahref="https://maplibre.org/maplibre-style-spec/">a style</a> to them to draw a map using Web GL.</p>
188
+
<p>You can add a layer to the map and specify Martin TileJSON endpoint as a vector source URL. You should also specify
189
+
a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it is <code>{table_name}</code> by default.</p>
Copy file name to clipboardexpand all lines: using-with-maplibre.html
+43-38
Original file line number
Diff line number
Diff line change
@@ -180,59 +180,64 @@ <h1 class="menu-title">Martin Tile Server Documentation</h1>
180
180
<divid="content" class="content">
181
181
<main>
182
182
<h2id="using-with-maplibre"><aclass="header" href="#using-with-maplibre">Using with MapLibre</a></h2>
183
-
<p><ahref="https://maplibre.org/projects/maplibre-gl-js/">MapLibre</a> is an Open-source JavaScript library for showing maps on a website. MapLibre can accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and applies <ahref="https://maplibre.org/maplibre-gl-js-docs/style-spec/">a style</a> to them to draw a map using Web GL.</p>
184
-
<p>You can add a layer to the map and specify Martin <ahref="https://github.com/mapbox/tilejson-spec">TileJSON</a> endpoint as a vector source URL. You should also specify a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it is <code>{table_name}</code> by default.</p>
183
+
<p><ahref="https://maplibre.org/maplibre-gl-js/docs/">MapLibre</a> is an Open-source JavaScript library for showing maps on a
184
+
website. MapLibre can accept <ahref="https://github.com/mapbox/vector-tile-spec">MVT vector tiles</a> generated by Martin, and
185
+
applies <ahref="https://maplibre.org/maplibre-style-spec/">a style</a> to them to draw a map using Web GL.</p>
186
+
<p>You can add a layer to the map and specify Martin <ahref="https://github.com/mapbox/tilejson-spec">TileJSON</a> endpoint as a
187
+
vector source URL. You should also specify a <code>source-layer</code> property. For <ahref="sources-pg-tables.html">Table Sources</a> it
<p>You can also combine multiple sources into one source with <ahref="sources-composite.html">Composite Sources</a>. Each source in a composite source can be accessed with its <code>{source_name}</code> as a <code>source-layer</code> property.</p>
216
+
<p>You can also combine multiple sources into one source with <ahref="sources-composite.html">Composite Sources</a>. Each source in a
217
+
composite source can be accessed with its <code>{source_name}</code> as a <code>source-layer</code> property.</p>
0 commit comments