From 673d88c7ccd2fea65faa7dc09a08de448174ab6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20S=C3=A1nchez=20Ortega?= Date: Tue, 30 Apr 2019 06:51:53 -0300 Subject: [PATCH] Tweaking documentation for SVGOverlay, add links to the docs index. (#6631) --- build/docs-index.leafdoc | 1 + build/leafdoc-templates/html.hbs | 1 + src/layer/SVGOverlay.js | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) 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); * ```