com.google.gwt.maps.client.overlay
Class Layer

java.lang.Object
  extended by com.google.gwt.maps.client.overlay.Overlay
      extended by com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
          extended by com.google.gwt.maps.client.overlay.Layer

public class Layer
extends Overlay.ConcreteOverlay

This class instantiates a predefined "layer" overlay consisting of a collection of related items. It implements the Overlay interface and thus is added to the map using the MapWidget.addOverlay(Overlay) method. For example: map.addOverlay(Layer.newInstance("com.panoramio.all"));


Nested Class Summary
static class Layer.LayerJso
          Native methods to access the Glayer object.
 
Nested classes/interfaces inherited from class com.google.gwt.maps.client.overlay.Overlay
Overlay.ConcreteOverlay
 
Field Summary
 
Fields inherited from class com.google.gwt.maps.client.overlay.Overlay
jsoPeer
 
Constructor Summary
Layer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
           
 
Method Summary
 void hide()
          Hides this overlay so it is not visible, but maintains its position in the stack of overlays
static boolean isHidden(java.lang.String layerId)
          returns true if the named layer is currently hidden.
static Layer newInstance(java.lang.String layerId)
          Create a new layer instance
 void show()
          Shows a previously hidden Layer.
 
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
copy, initialize, redraw, remove
 
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay
createPeer, getZIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
Method Detail

isHidden

public static boolean isHidden(java.lang.String layerId)
returns true if the named layer is currently hidden.


newInstance

public static Layer newInstance(java.lang.String layerId)
Create a new layer instance

Parameters:
layerId - unique Layer ID. http://spreadsheets.google.com/pub?key=p9pdwsai2hDN-cAocTLhnag contains a list of the currently supported layers.

hide

public void hide()
Hides this overlay so it is not visible, but maintains its position in the stack of overlays


show

public void show()
Shows a previously hidden Layer.