Skip to content
This repository was archived by the owner on Mar 30, 2021. It is now read-only.

Commit 7b87bb4

Browse files
author
prushforth
committed
Add projection attribute and values
1 parent e6a5151 commit 7b87bb4

File tree

1 file changed

+170
-1
lines changed

1 file changed

+170
-1
lines changed

spec/index.html

Lines changed: 170 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ <h5 id="the-map-element"><em><span class="secno">4.1</span> The <dfn><code>map</
286286
<dd id="attr-map-zoom"><em><code><a href="#attr-map-zoom">zoom</a></code> - a positive integer zoom (scale) value</em></dd>
287287
<dd id="attr-map-lat"><em><code><a href="#attr-map-lat">lat</a></code> - a decimal WGS84 latitude value for the map center</em></dd>
288288
<dd id="attr-map-lon"><em><code><a href="#attr-map-lon">lon</a></code> - a decimal WGS84 longitude value for the map center</em></dd>
289+
<dd id="attr-map-projection"><em><code><a href="#attr-map-projection">projection</a></code> - a string <a href="#projections">identifier</a> of the MapML coordinate reference system used by the map. Default is 'OSMTILE'.</em></dd>
289290
<dd id="attr-map-width"><em><code><a href="http://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html#attr-dim-width">width</a></code> - Horizontal dimension</em></dd>
290291
<dd id="attr-map-height"><em><code><a href="http://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html#attr-dim-height">height</a></code> - Vertical dimension</em></dd>
291292
<dt><span>Tag omission in text/html</span>:</dt>
@@ -301,6 +302,7 @@ <h5 id="the-map-element"><em><span class="secno">4.1</span> The <dfn><code>map</
301302
<em> readonly attribute unsigned long <a href="#attr-map-zoom">zoom</a>;</em>
302303
<em> readonly attribute double <a href="#attr-map-lat">lat</a>;</em>
303304
<em> readonly attribute double <a href="#attr-map-lon">lon</a>;</em>
305+
<em> readonly attribute string <a href="#attr-map-projection">projection</a>;</em>
304306
<em> readonly attribute unsigned long <a href="#attr-map-width">width</a>;</em>
305307
<em> readonly attribute unsigned long <a href="#attr-map-height">height</a>;</em>
306308
};</pre>
@@ -325,7 +327,7 @@ <h5 id="the-layer-element"><em><span class="secno">4.1.1</span> The <dfn><code>l
325327
<dd id="attr-layer-label"></dd>
326328
<dd id="attr-layer-src"></dd>
327329
<dt><span>Tag omission in text/html</span>:</dt>
328-
<dd>Neither tag is omissible</dd>
330+
<dd>No end tag</dd>
329331
<dt>Allowed <a href="http://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attribute">ARIA role attribute</a> values:</dt>
330332
<dd>None</dd>
331333
<dt>Allowed <a href="http://www.w3.org/TR/2014/REC-html5-20141028/dom.html#state-and-property-attributes">ARIA state and property attributes</a>:</dt>
@@ -338,6 +340,173 @@ <h5 id="the-layer-element"><em><span class="secno">4.1.1</span> The <dfn><code>l
338340
};</pre>
339341
</dd>
340342
</dl>
343+
<h4 id="projections"><span class="secno">4.1.2 </span>Projection identifiers</h4>
344+
<p>The following table summarizes the <a href="#attr-map-projection"><code>projection</code></a> identifier values that are defined by this specification.</p>
345+
346+
<table>
347+
<thead>
348+
<tr>
349+
<th>Projection value</th>
350+
<th>Description</th>
351+
<th>Base CRS / Projection system</th>
352+
<th>Origin (x,y)</th>
353+
<th>Tile row/column size (px)</th>
354+
<th>Projected Bounds / LatLng Bounds</th>
355+
<th>Zoom level</th>
356+
<th>Resolution</th>
357+
</tr>
358+
</thead>
359+
<tbody>
360+
361+
<tr>
362+
<td><code>OSMTILE</code></td>
363+
<td>Default value of the <a href="#attr-map-projection">projection</a> attribute. Web Mercator-based tiled coordinate reference system.</td>
364+
<td><code>EPSG::3857 / Spherical Mercator</code></td>
365+
<td>-20037508.342787, 20037508.342787</td>
366+
<td>256/256</td>
367+
<td>LatLng(-85.0511287798,-180), LatLng(85.0511287798,180)</td>
368+
<td> 0<br>
369+
1<br>
370+
2<br>
371+
3<br>
372+
4<br>
373+
5<br>
374+
6<br>
375+
7<br>
376+
8<br>
377+
9<br>
378+
10<br>
379+
11<br>
380+
12<br>
381+
13<br>
382+
14<br>
383+
15<br>
384+
16<br>
385+
17<br>
386+
18<br>
387+
388+
</td>
389+
<td> 156543.0339<br>
390+
78271.51695<br>
391+
39135.758475<br>
392+
19567.8792375<br>
393+
9783.93961875<br>
394+
4891.969809375<br>
395+
2445.9849046875<br>
396+
1222.9924523438<br>
397+
611.49622617188<br>
398+
305.74811308594<br>
399+
152.87405654297<br>
400+
76.437028271484<br>
401+
38.218514135742<br>
402+
19.109257067871<br>
403+
9.5546285339355<br>
404+
4.7773142669678<br>
405+
2.3886571334839<br>
406+
1.1943285667419<br>
407+
0.59716428337097<br>
408+
</td>
409+
</tr>
410+
<tr>
411+
<td><code>CBMTILE</code></td>
412+
<td>Lambert Conformal Conic-based tiled coordinate reference system for Canada.</td>
413+
<td><code>EPSG::3978 / Lambert Conformal Conic</code></td>
414+
<td>-34655800, 39310000</td>
415+
<td>256/256</td>
416+
<td>-7786476.885838887, -5153821.09213678, 7148753.233541353, 7928343.534071138</td>
417+
<td>0<br>
418+
1<br>
419+
2<br>
420+
3<br>
421+
4<br>
422+
5<br>
423+
6<br>
424+
7<br>
425+
8<br>
426+
9<br>
427+
10<br>
428+
11<br>
429+
12<br>
430+
13<br>
431+
14<br>
432+
15<br>
433+
16<br>
434+
17<br></td>
435+
<td> 38364.660062653464<br>
436+
22489.62831258996<br>
437+
13229.193125052918<br>
438+
7937.5158750317505<br>
439+
4630.2175937685215<br>
440+
2645.8386250105837<br>
441+
1587.5031750063501<br>
442+
926.0435187537042<br>
443+
529.1677250021168<br>
444+
317.50063500127004<br>
445+
185.20870375074085<br>
446+
111.12522225044451<br>
447+
66.1459656252646<br>
448+
38.36466006265346<br>
449+
22.48962831258996<br>
450+
13.229193125052918<br>
451+
7.9375158750317505<br>
452+
4.6302175937685215<br>
453+
454+
</td>
455+
</tr>
456+
<tr>
457+
<td><code>APSTILE</code></td>
458+
<td>Alaska Polar Stereographic-based tiled coordinate reference system for the Arctic region.</td>
459+
<td><code>EPSG::5936 / Polar Stereographic</code></td>
460+
<td>-28567784.109255, 32567784.109255</td>
461+
<td>256/256</td>
462+
<td>-28567784.109254867, -28567784.109254755, 32567784.109255023, 32567784.10925506</td>
463+
<td>
464+
0<br>
465+
1<br>
466+
2<br>
467+
3<br>
468+
4<br>
469+
5<br>
470+
6<br>
471+
7<br>
472+
8<br>
473+
9<br>
474+
10<br>
475+
11<br>
476+
12<br>
477+
13<br>
478+
14<br>
479+
15<br>
480+
16<br>
481+
17<br>
482+
18<br>
483+
19<br></td>
484+
<td> 238810.813354<br>
485+
119405.406677<br>
486+
59702.7033384999<br>
487+
29851.3516692501<br>
488+
14925.675834625<br>
489+
7462.83791731252<br>
490+
3731.41895865639<br>
491+
1865.70947932806<br>
492+
932.854739664032<br>
493+
466.427369832148<br>
494+
233.213684916074<br>
495+
116.606842458037<br>
496+
58.3034212288862<br>
497+
29.1517106145754<br>
498+
14.5758553072877<br>
499+
7.28792765351156<br>
500+
3.64396382688807<br>
501+
1.82198191331174<br>
502+
0.910990956788164<br>
503+
0.45549547826179<br>
504+
505+
</td>
506+
</tr>
507+
</tbody>
508+
</table>
509+
341510

342511
<h4 id="web-maps"><span class="secno">4.2 </span>Web maps</h4>
343512
<div class="impl">

0 commit comments

Comments
 (0)