Skip to content
Snippets Groups Projects
Commit 36e431c1 authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

export layer legend directly

parent 3e46a0ee
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ export interface iLegendOptions { ...@@ -15,7 +15,7 @@ export interface iLegendOptions {
/** /**
* a wrapper to make a legend * a wrapper to make a legend
*/ */
declare class LayerLegend { export declare class LayerLegend {
$divElement: JQuery; $divElement: JQuery;
_legendItems: Array<iLegendItem | LayerBase>; _legendItems: Array<iLegendItem | LayerBase>;
layerGroup: any; layerGroup: any;
......
...@@ -282,6 +282,7 @@ var LayerLegend = (function () { ...@@ -282,6 +282,7 @@ var LayerLegend = (function () {
}; };
return LayerLegend; return LayerLegend;
}()); }());
exports.LayerLegend = LayerLegend;
nm.LayerLegend = LayerLegend; nm.LayerLegend = LayerLegend;
exports.default = LayerLegend; exports.default = LayerLegend;
//# sourceMappingURL=LayerLegend.js.map //# sourceMappingURL=LayerLegend.js.map
\ No newline at end of file
This diff is collapsed.
...@@ -10,8 +10,6 @@ let nm = provide('collections'); ...@@ -10,8 +10,6 @@ let nm = provide('collections');
import $ = require('jquery'); import $ = require('jquery');
import {LayerBase} from "../layers"; import {LayerBase} from "../layers";
export interface iLegendItem{ export interface iLegendItem{
groupName: string; groupName: string;
collapse?: boolean; collapse?: boolean;
...@@ -227,7 +225,7 @@ class LayerGroup { ...@@ -227,7 +225,7 @@ class LayerGroup {
/** /**
* a wrapper to make a legend * a wrapper to make a legend
*/ */
class LayerLegend { export class LayerLegend {
$divElement: JQuery; $divElement: JQuery;
_legendItems: Array<iLegendItem|LayerBase>; _legendItems: Array<iLegendItem|LayerBase>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment