From 147d7a1339ac322041bbbff71bebe87f951aec62 Mon Sep 17 00:00:00 2001 From: mapsjs Date: Thu, 17 Oct 2013 11:04:10 -0400 Subject: [PATCH 1/2] Added setBackground --- mapsjs/mapsjs.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mapsjs/mapsjs.d.ts b/mapsjs/mapsjs.d.ts index ef921d27c..f90126770 100644 --- a/mapsjs/mapsjs.d.ts +++ b/mapsjs/mapsjs.d.ts @@ -2611,6 +2611,12 @@ declare module 'mapsjs' { * @param {number} cem The content extent margin in pixels. */ setContentExtentsMarginInPixels(cem: number): void; + + /** + * Sets the background color of the map using a css color string + * @param {number} b- a css color string + */ + setBackground(b: string): void; } } From 360a60d46fefb3edfa528a18d4dbcd976b7c12b2 Mon Sep 17 00:00:00 2001 From: mapsjs Date: Tue, 22 Oct 2013 16:33:40 -0400 Subject: [PATCH 2/2] Added tile layer functions --- mapsjs/mapsjs.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mapsjs/mapsjs.d.ts b/mapsjs/mapsjs.d.ts index f90126770..c43fd5d56 100644 --- a/mapsjs/mapsjs.d.ts +++ b/mapsjs/mapsjs.d.ts @@ -2380,6 +2380,17 @@ declare module 'mapsjs' { * @returns {tile.layer} The removed tile layer. */ popTileLayer(): tile.layer; + + /** + * Removes a tile layer off the display stack by reference + * @param {tile.layer} tl - a tile layer + */ + removeTileLayer(tl: tile.layer): void; + + /** + * Removes all tile layers off the display stack + */ + removeAllTileLayers(): void; /** * Gets the current number of tile layers in the display stack.