diff --git a/build/docs-index.leafdoc b/build/docs-index.leafdoc index 67e75a4a6ce..89865b32853 100644 --- a/build/docs-index.leafdoc +++ b/build/docs-index.leafdoc @@ -13,6 +13,7 @@ This file just defines the order of the classes in the docs. @class TileLayer.WMS @class ImageOverlay @class VideoOverlay +@class SVGOverlay @class Path @class Polyline diff --git a/build/leafdoc-templates/html.hbs b/build/leafdoc-templates/html.hbs index 97814753253..0a52ccc9943 100644 --- a/build/leafdoc-templates/html.hbs +++ b/build/leafdoc-templates/html.hbs @@ -60,6 +60,7 @@
  • Rectangle
  • Circle
  • CircleMarker
  • +
  • SVGOverlay
  • SVG
  • Canvas
  • diff --git a/src/layer/SVGOverlay.js b/src/layer/SVGOverlay.js index 7333ab9f95a..1d2f79e1f0d 100644 --- a/src/layer/SVGOverlay.js +++ b/src/layer/SVGOverlay.js @@ -9,12 +9,12 @@ import * as Util from '../core/Util'; * * Used to load, display and provide DOM access to an SVG file over specific bounds of the map. Extends `ImageOverlay`. * - * An SVG overlay uses the [``](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element + * An SVG overlay uses the [``](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element. * * @example * * ```js - * var element = ', + * var element = '', * elementBounds = [ [ 32, -130 ], [ 13, -100 ] ]; * L.svgOverlay(element, elementBounds).addTo(map); * ```