Tweaking documentation for SVGOverlay, add links to the docs index. (#6631)
Iván Sánchez Ortega authored 5 years ago
Andrew Cherniavskii committed 5 years ago
12 | 12 |
@class TileLayer.WMS
|
13 | 13 |
@class ImageOverlay
|
14 | 14 |
@class VideoOverlay
|
|
15 |
@class SVGOverlay
|
15 | 16 |
|
16 | 17 |
@class Path
|
17 | 18 |
@class Polyline
|
59 | 59 |
<li><a href="#rectangle">Rectangle</a></li>
|
60 | 60 |
<li><a href="#circle">Circle</a></li>
|
61 | 61 |
<li><a href="#circlemarker">CircleMarker</a></li>
|
|
62 |
<li><a href="#svgoverlay">SVGOverlay</a></li>
|
62 | 63 |
<li><a href="#svg">SVG</a></li>
|
63 | 64 |
<li><a href="#canvas">Canvas</a></li>
|
64 | 65 |
</ul>
|
8 | 8 |
*
|
9 | 9 |
* Used to load, display and provide DOM access to an SVG file over specific bounds of the map. Extends `ImageOverlay`.
|
10 | 10 |
*
|
11 | |
* An SVG overlay uses the [`<svg>`](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element
|
|
11 |
* An SVG overlay uses the [`<svg>`](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element.
|
12 | 12 |
*
|
13 | 13 |
* @example
|
14 | 14 |
*
|
15 | 15 |
* ```js
|
16 | |
* var element = '<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image xlink:href="https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png" height="200" width="200"/></svg>,
|
|
16 |
* var element = '<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image xlink:href="https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png" height="200" width="200"/></svg>',
|
17 | 17 |
* elementBounds = [ [ 32, -130 ], [ 13, -100 ] ];
|
18 | 18 |
* L.svgOverlay(element, elementBounds).addTo(map);
|
19 | 19 |
* ```
|