diff src/econnect/wp3_3/client/widgets/map/StiMap.java @ 75:d69066d16e45 trimmed_data

load overlays from data-file
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Tue, 15 Jan 2013 16:32:25 +0100
parents eac73bf1ce6e
children
line wrap: on
line diff
--- a/src/econnect/wp3_3/client/widgets/map/StiMap.java	Mon Jan 14 14:37:26 2013 +0100
+++ b/src/econnect/wp3_3/client/widgets/map/StiMap.java	Tue Jan 15 16:32:25 2013 +0100
@@ -65,6 +65,24 @@
 	}-*/;
 
 	/**
+	 * Getter for number of overlays
+	 * 
+	 * @return the number of overlays
+	*/
+	public final native int getOverlayCount() /*-{
+		return this.core.overlays.length;
+	}-*/;	
+	
+	/**
+	 * Getter for the name of a specific base layer
+	 * 
+	 * @return the name of a specific base layer
+	*/
+	public final native String getOverlayName( int index ) /*-{
+		return this.core.overlays[index].label;
+	}-*/;
+	
+	/**
 	 * Setter for the top base layer
 	 * 
 	 * @param index the index of the base layer to set