Codebase list leaflet / d9a4c66
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
3 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1212 @class TileLayer.WMS
1313 @class ImageOverlay
1414 @class VideoOverlay
15 @class SVGOverlay
1516
1617 @class Path
1718 @class Polyline
5959 <li><a href="#rectangle">Rectangle</a></li>
6060 <li><a href="#circle">Circle</a></li>
6161 <li><a href="#circlemarker">CircleMarker</a></li>
62 <li><a href="#svgoverlay">SVGOverlay</a></li>
6263 <li><a href="#svg">SVG</a></li>
6364 <li><a href="#canvas">Canvas</a></li>
6465 </ul>
88 *
99 * Used to load, display and provide DOM access to an SVG file over specific bounds of the map. Extends `ImageOverlay`.
1010 *
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.
1212 *
1313 * @example
1414 *
1515 * ```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>',
1717 * elementBounds = [ [ 32, -130 ], [ 13, -100 ] ];
1818 * L.svgOverlay(element, elementBounds).addTo(map);
1919 * ```